/* Layout: 왼쪽 입력 카드 + 오른쪽 실시간 휴대폰 미리보기. 디자인 고르기와 공유하기도 같은 2단 구성 */
:root {
  color-scheme: light;
  --bg: #faf9f6;            /* 아이보리 바탕 */
  --card: #ffffff;
  --ink: #3d3431;           /* 따뜻한 갈색 글자 */
  --muted: #8a7f7a;
  --line: #ece6e1;
  --accent: #efb3a6;        /* 피치 핑크: 버튼 바탕, 선택 표시 */
  --accent-deep: #b35f55;   /* 진한 피치: 글자, 테두리 */
  --accent-ink: #4a2c27;    /* 피치 바탕 위 글자 */
  --accent-soft: #fdf1ed;
  --ok: #6b8f6e;
  --warn: #a8742a; --warn-soft: #fbf3e3;
  --ui: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --serif: var(--ui);       /* 사이트 화면은 Pretendard 하나로 통일 */
  --r: 18px;
  --shadow: 0 1px 2px rgba(120,90,80,.05), 0 10px 28px rgba(120,90,80,.07);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 15px; line-height: 1.65; letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: break-word; }
.wrap { max-width: 1140px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.demo { background: var(--accent-soft); color: var(--accent-deep); font-size: 12.5px; border-bottom: 1px solid var(--line); }
.demo .wrap { padding-block: 7px; }
.demo b { letter-spacing: .1em; margin-right: 6px; }
header.top { padding-block: 24px 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.brand small { font-family: var(--ui); font-weight: 400; font-size: 12px; color: var(--muted); }

.steps { list-style: none; margin: 16px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; border-bottom: 2px solid var(--line);
  background: transparent; padding: 8px 2px 12px; cursor: pointer; color: var(--muted); }
.steps .no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 13px; border: 1px solid currentColor; flex: none; }
.steps b { font-size: 14px; font-weight: 500; }
.steps button[aria-current="step"] { color: var(--ink); border-color: var(--accent-deep); }
.steps button[aria-current="step"] b { font-weight: 700; }
.steps button[aria-current="step"] .no { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.steps button.done .no { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.btn:disabled { opacity: .5; pointer-events: none; }
/* 저장 전 "청첩장 열어 보기": 눌리면 안내를 띄워야 해서 클릭은 받아요 */
a.btn[aria-disabled] { opacity: .5; cursor: not-allowed; }
.warnline { margin: 0; font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 8px 12px; }

/* 바닥 링크, 하객 안내 */
.sitefoot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 22px 48px; font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.sitefoot a { color: inherit; }
.inv .fine { margin: 2px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--im); }
.inv .fine a { color: inherit; }

/* 배경음악: 고른 분위기 안의 곡 버튼 (분위기 묶음 .qmoods 는 보통 화면에선 그냥 이어서 흘러요) */
.qmoods { display: contents; }
.qsub { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--line); }
.qchip.sm { font-size: 12px; padding: 3px 10px; }

/* 비밀번호 */
.hlogin { margin: 14px 0 0; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent-deep); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.loginbox { margin-top: 12px; max-width: 460px; }
.pwchange { display: grid; gap: 4px; }
.pwchange label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.pwrow { display: flex; gap: 6px; }
.pwrow input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 12px; font-size: 16px; }
.keylink summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.keylink[open] { display: grid; gap: 8px; }

/* 첫 화면: "청첩장 만들기, 한번에." — ① 한 번 적기 → ② 디자인 12가지 → ③ 링크 하나로 보내기를 그림으로 */
/* 소개 영역은 연한 분홍 바탕 한 덩어리로 (아래 입력하는 곳과 구분) */
.hero { margin: 8px 0 0; padding: 34px 32px 32px; border-radius: 32px; background: linear-gradient(180deg, #fdf0eb, #fbf4ef 60%, #f9f2ec); }
.hero .h-send-in, .hero .h-card { border-color: #f3e3dc; }
.hero .h-show { margin: 0 -32px; } /* 흐르는 줄은 분홍 바탕 끝까지 */
/* 입력하는 곳 시작: 큰 제목으로 확실하게 */
.mk-head { margin: 52px 0 6px; }
.mk-head h2 { margin: 0 0 6px; font-size: 26px; font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.mk-head > p:last-child { margin: 0; color: var(--muted); }
.h-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: center; }
.h-eye { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--accent-deep); }
.hero h1 { margin: 0 0 14px; font-size: 40px; font-size: clamp(36px, 5.6vw, 58px); font-weight: 800; line-height: 1.16; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent-deep); }
.hsub { max-width: 520px; margin: 0 0 22px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.h-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.h-trust { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.h-trust span::before { content: "✓"; margin-right: 5px; color: var(--ok); font-weight: 800; }
.h-step { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.h-step b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; }
/* ① 한 번 적는 칸: 실제로 적은 내용(처음엔 예시)이 들어가요 */
.h-input { width: 100%; max-width: 440px; justify-self: end; }
.h-card { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.h-card-h { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.h-card-h svg { width: 16px; height: 16px; }
#heroCard { display: grid; gap: 8px; margin: 0; }
#heroCard > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; }
#heroCard dt { font-size: 12.5px; color: var(--muted); }
#heroCard dd { min-width: 0; margin: 0; padding: 9px 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 14.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
#heroCard dd i { font-style: normal; font-weight: 400; color: var(--muted); }
#heroCard > div:last-child dd::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent-deep); animation: hCaret 1.1s steps(1) infinite; }
@keyframes hCaret { 50% { opacity: 0; } }
/* ② 디자인 12가지: 실제 표지가 천천히 흘러가요. 누르면 그 디자인으로 시작 */
.h-step2 { margin-top: 34px; }
.h-show { position: relative; margin: 0 -16px; padding: 6px 0 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.h-track { display: flex; width: max-content; padding-left: 16px; animation: hMarq 90s linear infinite; }
.h-show:hover .h-track, .h-show:focus-within .h-track { animation-play-state: paused; }
@keyframes hMarq { to { transform: translateX(-50%); } }
.hcard { flex: none; display: grid; gap: 8px; width: 150px; margin-right: 16px; padding: 0; border: 0; background: none; color: var(--ink); text-align: center; cursor: pointer; }
.hcard .thumb { display: block; max-width: none; transition: transform .25s ease, box-shadow .25s ease; }
.hcard:hover .thumb, .hcard:focus-visible .thumb { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(120,90,80,.06), 0 16px 34px rgba(120,90,80,.16); }
.hcard .thumb-in { display: block; transform: scale(.4167); }
.hcard .thumb-in > .inv { min-height: 700px; } /* 표지가 짧은 디자인도 그림 칸 끝까지 디자인 바탕색 */
.hcard b { font-size: 13.5px; font-weight: 700; }
/* ③ 링크 하나로: 카카오톡 미리보기 카드 모양 */
.h-send { margin-top: 26px; }
.h-send-in { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.h-kakao { overflow: hidden; border-radius: 14px; background: #ffffff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.08); }
.hk-img { aspect-ratio: 1.6; background: var(--accent-soft) center / cover no-repeat; }
.hk-t { display: grid; gap: 2px; padding: 10px 12px 8px; }
.hk-t b { font-size: 13.5px; }
.hk-t span { font-size: 12px; color: #777777; }
.hk-btn { margin: 0 10px 10px; padding: 7px; border-radius: 8px; background: #f3f3f3; font-size: 12.5px; font-weight: 600; text-align: center; }
.h-send-pt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.h-send-pt li { display: grid; gap: 2px; padding-left: 26px; font-size: 13.5px; line-height: 1.55; color: var(--muted); background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px) 4px 6px / 10px 10px no-repeat; }
.h-send-pt b { font-size: 15px; color: var(--ink); }
/* 처음 열 때 ①의 칸이 하나씩 채워지고, ②·③이 이어서 나타나요 */
.hero .h-copy > * { animation: hUp .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .h-copy > :nth-child(2) { animation-delay: .06s; } .hero .h-copy > :nth-child(3) { animation-delay: .14s; } .hero .h-copy > :nth-child(n+4) { animation-delay: .22s; }
.h-input { animation: hUp .7s cubic-bezier(.2,.7,.2,1) .25s both; }
#heroCard > div { animation: hFill .5s ease both; }
#heroCard > div:nth-child(1) { animation-delay: .55s; } #heroCard > div:nth-child(2) { animation-delay: .75s; } #heroCard > div:nth-child(3) { animation-delay: .95s; } #heroCard > div:nth-child(4) { animation-delay: 1.15s; }
.h-step2, .h-show { animation: hUp .8s cubic-bezier(.2,.7,.2,1) 1.2s both; }
@keyframes hUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes hFill { from { opacity: 0; transform: translateX(-8px); } }

.h-demo { margin: 12px 0 0; text-align: right; }
.h-demo a { font-size: 14px; font-weight: 700; color: var(--accent-deep); text-underline-offset: 3px; }
/* 예시 청첩장(/w/sample) 아래 작은 안내 */
.demo-pill { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px;
  background: rgba(40,32,28,.86); color: #ffffff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.2); }

/* 첫 화면 아래: 편의 기능 · 가입과 비용 안내 */
.feats { margin: 64px 0 8px; padding-top: 44px; border-top: 1px solid var(--line); }
.feats h2 { margin: 0 0 6px; font-size: 26px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.fsub { margin: 0 0 22px; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fgrid li { display: grid; align-content: start; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.fgrid b { font-size: 16px; }
.fgrid span:not(.fi) { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.fi { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); }
.fi svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fnote { display: grid; gap: 4px; margin-top: 14px; padding: 18px 20px; border-radius: 18px; background: var(--accent-soft); }
.fnote b { font-size: 15px; color: var(--accent-deep); }
.fnote span { font-size: 13.5px; line-height: 1.65; color: var(--ink); }

@media (max-width: 860px) {
  .h-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .h-input { justify-self: stretch; max-width: none; }
  .h-send-pt { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero { margin: 4px -8px 0; padding: 24px 16px 20px; border-radius: 24px; }
  .hero .h-show { margin: 0 -16px; }
  .mk-head { margin-top: 40px; }
  .hsub { font-size: 15px; }
  .h-cta .btn { flex: 1 1 auto; }
  .h-step2 { margin-top: 28px; }
  .hcard { width: 124px; margin-right: 12px; }
  .hcard .thumb-in { transform: scale(.3444); }
  .h-send-in { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px; }
  .h-kakao { max-width: 230px; }
  .hk-img { aspect-ratio: 1.9; }
  .feats { margin-top: 48px; padding-top: 34px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fgrid li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .fgrid li .fi { grid-row: span 2; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::after { animation: none !important; }
  .h-show { overflow-x: auto; }
  .hcard[aria-hidden] { display: none; }
}

/* 휴대폰: 예시 청첩장을 맨 위에, 아래로 내려가면 '미리보기' 버튼 */
.pvclose, .pvfab, .pvnote.m-only { display: none; }
@media (max-width: 900px) {
  .layout1 > #pv1 { order: -1; position: relative; top: auto; }
  #pv1 .phone { height: min(600px, 68vh); }
  #pv1 .pvnote { display: none; }
  #pv1 .pvnote.m-only { display: block; text-align: center; }
  .pvfab { display: inline-flex; align-items: center; gap: 6px; position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    border: 0; border-radius: 999px; padding: 12px 18px; background: var(--accent-deep); color: #ffffff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 22px rgba(120,60,50,.28); cursor: pointer; }
  #pv1.full { position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px; overflow: auto; align-content: start; }
  #pv1.full .phone { height: calc(100dvh - 110px); }
  #pv1.full .pvclose { display: inline-flex; justify-self: start; }
  #pv1.full .pvnote.m-only { display: none; }
}
.toast { z-index: 50; }

/* 휴대폰: 번호를 글자 위로 올려서 세 단계가 한 줄에 들어가게 */
@media (max-width: 520px) {
  .steps { gap: 6px; }
  .steps button { flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
  .steps b { font-size: 12.5px; white-space: nowrap; }
}

h1 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.35; margin: 0 0 6px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.lead { margin: 0 0 22px; color: var(--muted); }

/* ① 입력 */
.layout1, .layout2, .layout3 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .layout1, .layout2, .layout3 { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 14px; min-width: 0; }
.exbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--warn-soft); color: var(--warn);
  border-radius: 14px; padding: 10px 14px; font-size: 13.5px; font-weight: 500; }
.ghost { border: 1px solid currentColor; background: transparent; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 12.5px; font-weight: 500; color: inherit; }
fieldset { margin: 0; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 18px 20px 20px; display: grid; gap: 12px; min-width: 0; box-shadow: var(--shadow); }
legend { float: left; width: 100%; font-family: var(--serif); font-weight: 800; font-size: 17px; padding: 0; margin: 0; }
legend small { font-family: var(--ui); font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
@media (max-width: 560px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.side { display: grid; gap: 8px; align-content: start; }
.side h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.f { display: grid; gap: 4px; min-width: 0; }
.f label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
/* 입력칸 글씨는 16px 이상: 아이폰은 이보다 작으면 칸을 누를 때 화면이 확대된 채로 남아요 */
.f input, .f select, .f textarea { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; background: var(--card); }
.f textarea { resize: vertical; min-height: 110px; line-height: 1.75; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.btn { border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; font-weight: 500; cursor: pointer; background: var(--card); color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.accent:hover { background: #eaa596; }
.btn.line { background: var(--card); }
.btn.big { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.tick { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; flex-wrap: wrap; }
.tick input { width: 18px; height: 18px; accent-color: var(--accent-deep); margin: 0; }
.rowbtn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: end; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.pt { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--bg); }
.pt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-main { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: flex-start; justify-content: flex-start; padding: 4px; }
.pt-main span { background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.pt-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(60,45,40,.55); color: #ffffff; cursor: pointer; font-size: 13px; line-height: 1; }
/* 엔딩 사진 고르기 */
.pt-end { position: absolute; left: 3px; bottom: 3px; border: 0; border-radius: 999px; padding: 1px 7px; font-size: 10.5px; font-weight: 700; cursor: pointer;
  background: rgba(60,45,40,.5); color: #ffffff; }
.pt-end[aria-pressed="true"] { background: var(--accent-deep); }
.pt.is-end { box-shadow: 0 0 0 2px var(--accent-deep); }
/* 엔딩 사진이 없을 때: 글씨로 끝내기 */
.inv .ending.txt { padding: 56px 26px 24px; display: grid; gap: 6px; border-top: 1px solid var(--il); }
.inv .ending.txt p { position: static; color: var(--ia); text-shadow: none; }
.inv .ending.txt span { font-family: var(--ih); font-size: 17px; }
.inv .ending.txt small { font-size: 13px; color: var(--im); }
.pt-ghost { opacity: .35; }
.pt-chosen { box-shadow: 0 0 0 3px var(--accent); }
.pgrid .pt { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.file { position: relative; overflow: hidden; display: inline-block; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.opts { display: grid; gap: 8px; }
.opt { border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; display: grid; gap: 8px; }
.opt:has(> .tick input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt .tick b { font-size: 14px; font-weight: 700; }
.opt .tick small { color: var(--muted); font-size: 12px; }
.opt .f input, .opt .f select, .opt .f textarea { background: var(--card); }
.fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fopt { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; background: var(--card); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt:hover { border-color: var(--accent); }
.fopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.fopt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.fopt .sample { font-size: 19px; color: var(--ink); line-height: 1.45; letter-spacing: 0; }
.fopt small { font-size: 12px; color: var(--muted); }

/* 꼭 필요한 정보: 진행 막대 + 빈 칸으로 가는 링크 (예전 동그란 알약 모양은 버튼처럼 보여서 바꿈) */
.check { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.check h2 { font-size: 14px; margin: 0; font-weight: 700; white-space: nowrap; }
.ck-top { display: flex; align-items: center; gap: 12px; }
.ck-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ck-bar b { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .3s ease; }
.ck-n { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ck-todo { margin: 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ck-todo a { color: var(--accent-deep); font-weight: 600; text-underline-offset: 3px; }
.ck-done { margin: 0; font-size: 13px; color: var(--ok); font-weight: 600; }
.adslot { border: 1px dashed #dcd3cc; border-radius: var(--r); padding: 18px 14px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 500; display: grid; gap: 2px; background: var(--card); }
.adslot small { font-weight: 400; font-size: 12px; }
.next { display: flex; justify-content: flex-end; }

/* ② 디자인 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, 168px); gap: 20px 14px; justify-content: start; }
@media (max-width: 420px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.tcard { position: relative; display: grid; gap: 6px; min-width: 0; }
/* 좁은 화면에서는 칸에 맞게 줄어들어요. 안쪽 청첩장 크기는 app.js 의 fitThumbs() 가 맞춰요 */
.thumb { width: 100%; max-width: 168px; aspect-ratio: 168 / 300; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.thumb-in { width: 360px; transform: scale(.4667); transform-origin: 0 0; pointer-events: none; }
.tcard b { font-family: var(--serif); font-size: 15px; font-weight: 800; }
.tcard small { font-size: 12px; color: var(--muted); margin-top: -6px; }
.tpick { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; border-radius: 16px; }
.tcard.on .thumb { border: 3px solid var(--accent); }
.tcard.on b { color: var(--accent-deep); }
.tcard .sel { position: absolute; top: 9px; left: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }

.preview { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 14px); display: grid; gap: 12px; justify-items: center; }
.preview .cap { font-size: 13px; color: var(--muted); text-align: center; }
.preview .cap b { color: var(--ink); font-family: var(--serif); font-weight: 800; }
.pvnote { margin: 0; font-size: 12.5px; color: var(--muted); }
.phone { width: min(360px, 100%); height: min(700px, 80vh); padding: 10px; border: 1px solid var(--line); border-radius: 46px; background: #ffffff; position: relative;
  box-shadow: 0 24px 60px rgba(150,110,95,.18), 0 3px 8px rgba(150,110,95,.08); }
.screen { position: relative; width: 100%; height: 100%; overflow-y: auto; border-radius: 36px; scrollbar-width: none; background: var(--bg); }
.screen::-webkit-scrollbar { display: none; }
.fx { position: absolute; inset: 10px; pointer-events: none; overflow: hidden; border-radius: 36px; z-index: 3; }
.fx i { position: absolute; top: -24px; display: block; animation: fall linear infinite; font-style: normal; line-height: 1; }
.fx .fx-petal { width: 11px; height: 11px; border-radius: 60% 0 60% 0; background: #f6b9c9; opacity: .85; }
.fx .fx-rose { width: 13px; height: 11px; border-radius: 70% 30% 70% 30%; background: #d9536a; opacity: .8; }
.fx .fx-snow { width: 6px; height: 6px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 3px rgba(60,70,90,.35); }
.fx .fx-leaf { width: 12px; height: 9px; border-radius: 0 70% 0 70%; background: #d9853b; opacity: .85; }
.fx .fx-sparkle { width: 7px; height: 7px; border-radius: 50%; background: #fff8e6; box-shadow: 0 0 6px 2px rgba(255,214,150,.85); animation-name: rise; top: auto; bottom: -20px; }
.fx .fx-heart { color: #f2a2b3; font-size: 13px; }
.fx .fx-bubble { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(160,190,220,.7); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(200,225,245,.25) 60%, rgba(255,255,255,0)); animation-name: rise; top: auto; bottom: -24px; }
.fx .fx-star { width: 4px; height: 4px; border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 8px 2px rgba(255,220,140,.8); animation-name: twinkle; animation-timing-function: ease-in-out; top: var(--y); }
@keyframes fall { to { transform: translate(var(--dx), 760px) rotate(var(--rot)); } }

/* 계절 효과 (봄 꽃잎 · 여름 빛망울 · 가을 잎 · 겨울 눈): 심도 표현 — 크기·흐림·투명도는 app.js 가 한 알씩 정해요.
   떨어지는 길(translate)과 팔랑임(transform)을 따로 움직여서 자연스럽게 흔들려요. */
.fx i.fx-d { top: -30px; width: var(--w); height: var(--h); opacity: var(--o); filter: blur(var(--b)); will-change: translate, transform;
  animation: fxfall var(--t) linear var(--dl) infinite, fxflip var(--f) ease-in-out var(--dl) infinite alternate; }
@keyframes fxfall { from { translate: 0 0; } to { translate: var(--dx) calc(max(760px, 100vh) + 60px); } }
@keyframes fxflip { from { transform: rotate3d(1, .35, .15, 0deg); } to { transform: rotate3d(1, .35, .15, var(--rot)); } }
.fx i.k-petal { border-radius: 100% 0 100% 0; background: linear-gradient(135deg, #fff0f3 5%, #f4b9c7 55%, #e695aa); box-shadow: 0 1px 4px rgba(190,100,125,.25); }
.fx i.k-leaf { border-radius: 0; background: center / 100% 100% no-repeat; }
.fx i.k-leaf.c0 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'%3E%3Cpath d='M10 1C15.5 6 18.5 12 17 18.5 15.8 23.5 12.8 26.2 10 27 7.2 26.2 4.2 23.5 3 18.5 1.5 12 4.5 6 10 1Z' fill='%23d9a752'/%3E%3Cpath d='M10 4.5V27M10 12l3.5-3M10 17l4-3.2M10 12 6.5 9M10 17l-4-3.2' stroke='%239c6a26' stroke-width='.9' fill='none' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E"); }
.fx i.k-leaf.c1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'%3E%3Cpath d='M10 1C15.5 6 18.5 12 17 18.5 15.8 23.5 12.8 26.2 10 27 7.2 26.2 4.2 23.5 3 18.5 1.5 12 4.5 6 10 1Z' fill='%23c97b42'/%3E%3Cpath d='M10 4.5V27M10 12l3.5-3M10 17l4-3.2M10 12 6.5 9M10 17l-4-3.2' stroke='%238a4a22' stroke-width='.9' fill='none' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E"); }
.fx i.k-leaf.c2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'%3E%3Cpath d='M10 1C15.5 6 18.5 12 17 18.5 15.8 23.5 12.8 26.2 10 27 7.2 26.2 4.2 23.5 3 18.5 1.5 12 4.5 6 10 1Z' fill='%23a95a3b'/%3E%3Cpath d='M10 4.5V27M10 12l3.5-3M10 17l4-3.2M10 12 6.5 9M10 17l-4-3.2' stroke='%236e3420' stroke-width='.9' fill='none' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E"); }
/* 바람에 날리는 꽃잎·낙엽: 떨어지는 길(translate) · 좌우 진자(transform) · 뒤집힘(rotate)을 따로 움직여요 */
.fx i.fx-w { --fd: calc(max(760px, 100vh) + 60px); will-change: translate, transform, rotate;
  animation: fxwind var(--t) linear var(--dl) infinite, fxpend var(--f) ease-in-out var(--dl) infinite alternate, fxtumble calc(var(--t) * .8) linear var(--dl) infinite; }
@keyframes fxwind { 0% { translate: 0 0; } 34% { translate: calc(var(--dx) * .14) calc(var(--fd) * .36); } 50% { translate: calc(var(--dx) * .58) calc(var(--fd) * .45); }
  68% { translate: calc(var(--dx) * .74) calc(var(--fd) * .64); } 100% { translate: var(--dx) var(--fd); } }
@keyframes fxpend { from { transform: translateX(calc(var(--sw) * -1)) rotate(calc(var(--sa) * -1)); } to { transform: translateX(var(--sw)) rotate(var(--sa)); } }
@keyframes fxtumble { from { rotate: 1 .3 0 0deg; } to { rotate: 1 .3 0 var(--rot); } }
.fx i.k-snow { border-radius: 50%; background: radial-gradient(circle, #ffffff 50%, rgba(255,255,255,.6) 65%, rgba(255,255,255,0) 72%); box-shadow: 0 0 4px rgba(110,130,160,.35);
  animation: fxfall var(--t) linear var(--dl) infinite, fxsway var(--f) ease-in-out var(--dl) infinite alternate; }
@keyframes fxsway { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
.fx i.k-glow { top: var(--y); border-radius: 50%; background: radial-gradient(circle, rgba(255,236,190,1), rgba(255,196,110,.6) 42%, rgba(255,190,110,0) 70%);
  animation: fxrise var(--t) ease-in-out var(--dl) infinite, fxbreath var(--f) ease-in-out var(--dl) infinite alternate; }
@keyframes fxrise { 0% { translate: 0 40px; opacity: 0; } 25%, 70% { opacity: var(--o); } 100% { translate: var(--dx) -160px; opacity: 0; } }
@keyframes fxbreath { from { transform: scale(.85); } to { transform: scale(1.15); } }
@keyframes rise { to { transform: translate(var(--dx), -760px); opacity: .2; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.music { position: absolute; top: 22px; right: 22px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: #4a3a35; font-size: 16px; box-shadow: 0 2px 10px rgba(80,50,40,.15); display: grid; place-items: center; }
.music.on { background: var(--accent); color: var(--accent-ink); }
.music.on span { display: inline-block; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.opening { position: absolute; inset: 10px; z-index: 5; display: grid; place-items: center; text-align: center; border-radius: 36px; pointer-events: none; }
.opening p { margin: 0; font-family: 'Great Vibes', 'Gowun Batang', cursive; font-size: 40px; line-height: 1.25; }
.opening small { display: block; font-family: 'Gowun Batang', serif; font-size: 15px; margin-top: 10px; letter-spacing: .1em; }
.opening.play { animation: openfade 2.6s ease forwards; }
.opening.play p { animation: openrise 1.2s ease both; }
@keyframes openfade { 0%, 70% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes openrise { from { opacity: 0; transform: translateY(10px); } }
.replay { border: 0; background: none; color: var(--accent-deep); font-weight: 500; cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.quick { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.quick h2 { margin: 0; font-size: 15px; font-weight: 700; }
.qrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; }
/* 줄마다 구분선: 글꼴 · 배경 효과 · 배경음악 · 사진 끝이 한 묶음씩 보이게 */
.qrow + .qrow { border-top: 1px solid var(--line); padding-top: 14px; }
.quick { gap: 14px; }
.qrow > .ql { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); padding-top: 3px; white-space: nowrap; }
.qrow > .ql i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent-deep); font-style: normal; font-size: 12px; font-weight: 700; }
@media (max-width: 520px) { .qrow { grid-template-columns: minmax(0, 1fr); gap: 6px; } .qrow > span { padding-top: 0; } }
.qchips { display: flex; flex-wrap: wrap; gap: 6px; }
.qchip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.qchip:hover { border-color: var(--accent); }
.qchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ③ 공유 */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.panel h2 { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 800; }
.urlbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.urlbox code { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; overflow-x: auto; white-space: nowrap; user-select: all; }
.chat { background: #eef1f4; border-radius: 16px; padding: 16px; display: grid; gap: 8px; justify-items: start; }
.chat .who { font-size: 12px; color: var(--muted); }
.bubble { width: 250px; max-width: 100%; background: #ffffff; border-radius: 4px 16px 16px 16px; overflow: hidden; border: 1px solid var(--line); }
.bubble .og { height: 160px; overflow: hidden; }
.bubble .og img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bubble .og .thumb-in { transform: scale(.6945); }
.bubble .txt { padding: 10px 12px; display: grid; gap: 2px; }
.bubble .txt b { font-size: 14px; }
.bubble .txt span { font-size: 12.5px; color: var(--muted); }
.bubble .cta { border-top: 1px solid var(--line); text-align: center; padding: 9px; font-size: 13px; font-weight: 700; }
.list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.list b { color: var(--ink); }
.panel h2 .tag { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 0; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat small { font-size: 11.5px; color: var(--muted); }
.stat.hi { background: var(--accent-soft); border-color: var(--accent); }
.stat.hi b { color: var(--accent-deep); }
.rtable-w { overflow-x: auto; }
.gbm { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow-y: auto; border-top: 1px solid var(--line); }
.gbm li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.gbm li > div { min-width: 0; }
.gbm b { font-size: 14px; }
.gbm small { margin-left: 8px; font-size: 12px; color: var(--muted); }
.gbm p { margin: 3px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.gbm .btn { flex: none; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
.rtable th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rtable td { padding: 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rtable tr.me td { background: var(--accent-soft); }
.rtable .bus-y { color: var(--accent-deep); font-weight: 700; }
/* 사진 칸: 넣고 빼기 버튼 한 줄 + 꾸미기(가장자리)는 구분선 아래 따로 */
.pbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.pstyle { display: grid; gap: 6px; padding-top: 14px; margin-top: 2px; border-top: 1px dashed var(--line); }
.okline { margin: 0; font-size: 12.5px; color: var(--ok); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* 공유하기: 보내기 두 개는 한 줄에 같은 크기, 고치기는 아래에 작게 */
.actions.share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions.share .btn { padding: 12px 8px; white-space: nowrap; text-align: center; }
.btn.kakao { background: #fee500; border-color: #fee500; color: #191919; font-weight: 700; }
.btn.kakao:hover { background: #f5dc00; border-color: #f5dc00; }
.actions.edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.actions.edit > span { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
footer.pad { height: 56px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--accent-deep); color: #ffffff;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 20; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }

/* ===================== 청첩장 (디자인마다 고정된 종이 색) ===================== */
.inv { --ia: var(--auto, var(--ia0)); width: 100%; background: var(--ib); color: var(--it); font-family: var(--if); text-align: center; line-height: 1.8; font-size: 15px; overflow: hidden; letter-spacing: 0;
  word-break: keep-all; overflow-wrap: break-word;
  /* 큰 제목 글씨를 청첩장 너비(cqw)에 맞춰 줄이려고 써요. 좁은 휴대폰에서 넘치지 않게 */
  container-type: inline-size; }
.inv h2, .inv .big, .inv .script, .inv .mt { text-wrap: balance; }
.inv .sec { position: relative; padding: 60px 26px; }
.inv .sec + .sec, .inv .cover + .sec { border-top: 1px solid var(--il); }
.inv .eb { font-family: 'Cormorant Garamond', var(--if); font-size: 13px; font-weight: 500; letter-spacing: .32em; color: var(--ia); margin: 0 0 18px; text-transform: uppercase; }
.inv .cover .d { font-family: 'Cormorant Garamond', var(--if); font-size: 15.5px; letter-spacing: .04em; }
.inv .eb, .inv .cover .d, .inv .dd b, .inv .cover .top { font-variant-numeric: lining-nums; }
.inv.f-hand { font-size: 16px; }
.inv .msg { white-space: pre-line; margin: 0 0 28px; }
.inv .parents { display: grid; gap: 4px; }
.inv .parents p { margin: 0; }
.inv .parents span { color: var(--im); font-size: 14px; }
.inv .parents b { font-family: var(--ih); font-size: 17px; margin-left: 4px; }
.inv .kuk { color: var(--im); margin-right: 2px; }
.inv .big { font-family: var(--ih); font-size: 20px; margin: 0; line-height: 1.5; }
.inv .sub { color: var(--im); margin: 0; font-size: 14px; }
.inv .cal { margin: 22px auto 0; max-width: 252px; }
.inv .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 13px; line-height: 1; }
.inv .cal-g span { height: 32px; display: grid; place-items: center; }
.inv .cal-g .w { font-size: 11px; color: var(--im); }
.inv .cal-g .sun { color: var(--isun); }
.inv .cal-g .on { background: var(--ia); color: var(--ion); border-radius: 50%; font-weight: 700; width: 32px; margin: 0 auto; }
.inv .dd { margin: 22px 0 0; display: grid; gap: 2px; }
.inv .dd b { font-family: 'Cormorant Garamond', var(--ih); font-weight: 600; font-size: 36px; color: var(--ia); line-height: 1.1; letter-spacing: .04em; }
.inv .dd span { font-size: 13.5px; color: var(--im); }
.inv .ibtn { border: 1px solid var(--il); background: var(--icard); color: var(--it); border-radius: 10px; padding: 9px 12px; font-size: 13px; cursor: pointer; text-decoration: none; font-family: inherit; }
.inv .ibtn.solid { background: var(--ia); border-color: var(--ia); color: var(--ion); }
.inv .btnrow { display: flex; gap: 8px; margin-top: 12px; }
.inv .btnrow > * { flex: 1; }
.inv .addr { color: var(--im); font-size: 13.5px; margin: 4px 0 0; }
.inv .info { text-align: left; background: var(--icard); border: 1px solid var(--il); border-radius: 12px; padding: 14px 16px; margin-top: 16px; font-size: 13.5px; white-space: pre-line; line-height: 1.75; }
.inv .info b { display: block; font-size: 12px; color: var(--ia); letter-spacing: .1em; margin-bottom: 4px; }
.inv .info p { margin: 0; }
.inv .info .i-lead { font-weight: 700; }
.inv .info .i-note { margin-top: 6px; font-size: 12.5px; color: var(--im); }
.inv details { border: 1px solid var(--il); border-radius: 10px; margin-top: 10px; text-align: left; background: var(--icard); }
.inv summary { padding: 12px 16px; cursor: pointer; font-size: 14px; }
.inv .acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 14px; font-size: 13.5px; }
.inv .acc span { display: grid; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.inv .acc small { color: var(--im); }
.inv .acc .ibtn { padding: 5px 10px; font-size: 12px; flex: none; }
.inv .credit { padding: 24px 0 34px; font-size: 11px; color: var(--im); }
.inv .ph { display: grid; place-items: center; font-size: 12px; color: var(--im); background: var(--iph); line-height: 1.6; }

/* 스토리형 사진 넘김 */
.inv .story { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #111111; touch-action: pan-y; user-select: none; border-radius: var(--irad, 0); }
.inv .story.full { aspect-ratio: 9 / 16; border-radius: 0; }
.inv .story .slides img, .inv .story .slides .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.inv .story .slides .on { opacity: 1; }
.inv .story .bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.inv .story .bars i { flex: 1; height: 2.5px; background: rgba(255,255,255,.4); border-radius: 2px; overflow: hidden; }
.inv .story .bars b { display: block; height: 100%; width: 0; background: #ffffff; }
.inv .story .nav { position: absolute; top: 0; bottom: 0; width: 45%; background: transparent; border: 0; z-index: 1; cursor: pointer; padding: 0; }
.inv .story .prev { left: 0; } .inv .story .next { right: 0; }
/* 넘기기 화살표: 안내 문장 대신 ‹ › 만 (사진이 한 장이면 숨김) */
.inv .story .nav { z-index: 3; }
.inv .story .nav i { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: rgba(0,0,0,.24);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s ease; }
.inv .story .nav i::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border: solid #ffffff; border-width: 0 0 2px 2px; }
.inv .story .prev i { left: 10px; } .inv .story .prev i::before { transform: translate(-30%, -50%) rotate(45deg); }
.inv .story .next i { right: 10px; } .inv .story .next i::before { transform: translate(-70%, -50%) rotate(-135deg); }
.inv .story .nav:hover i { background: rgba(0,0,0,.4); }
.inv .story.one .nav i { display: none; }
.inv .story .count { position: absolute; right: 12px; bottom: 12px; font-size: 11px; color: #ffffff; background: rgba(0,0,0,.4); padding: 1px 8px; border-radius: 999px; z-index: 3; font-family: 'Space Grotesk', sans-serif; }
.inv .story .ov { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #ffffff; display: flex; flex-direction: column; justify-content: flex-end; text-align: left;
  padding: 26px 24px 40px; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); }
/* 6칸 격자에 보통 사진은 2칸씩(= 3열). 남는 사진은 마지막 줄을 꽉 채워요 */
.inv .mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-top: 14px; }
.inv .mosaic > button { grid-column: span 2; }
.inv .mosaic > .m-full { grid-column: span 6; aspect-ratio: 3 / 2; }
.inv .mosaic > .m-half { grid-column: span 3; }
.inv .mosaic button { position: relative; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: var(--il); border-radius: 3px; aspect-ratio: 1; min-width: 0; }
.inv .mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.inv .rhythm .more, .inv .mosaic .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #ffffff; font-size: 18px; font-weight: 700; }

/* 영상 */
.inv .vid { width: 100%; max-height: 520px; border-radius: 12px; display: block; background: #111111; }
.inv .video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #111111; display: block; }
.inv .video img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); display: block; }
.inv .video span { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.inv .video span::after { content: ""; border-left: 16px solid #222222; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }

/* 참석 여부 · 방명록 */
.inv form { display: grid; gap: 10px; text-align: left; }
.inv form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--im); }
.inv form input, .inv form select, .inv form textarea { border: 1px solid var(--il); background: var(--icard); color: var(--it); border-radius: 10px; padding: 9px 11px; font-family: inherit; font-size: 16px; width: 100%; }
.inv .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.inv .seg button { border: 1px solid var(--il); background: var(--icard); color: var(--it); border-radius: 10px; padding: 9px; cursor: pointer; font-family: inherit; font-size: 14px; }
.inv .seg button[aria-pressed="true"] { background: var(--ia); border-color: var(--ia); color: var(--ion); }
.inv .thanks { background: var(--icard); border: 1px solid var(--il); border-radius: 12px; padding: 18px; font-size: 14px; }
.inv .gb-list { display: grid; gap: 8px; text-align: left; margin-bottom: 14px; }
.inv .gb { background: var(--icard); border: 1px solid var(--il); border-radius: 12px; padding: 11px 14px; }
.inv .gb b { font-size: 12.5px; color: var(--ia); }
.inv .gb p { margin: 2px 0 0; font-size: 14px; line-height: 1.6; }
.inv .gb.new { animation: pop .5s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.inv .heart { position: absolute; bottom: 90px; font-size: 18px; color: var(--ia); animation: floatup 1.6s ease-out forwards; pointer-events: none; }
@keyframes floatup { to { transform: translate(var(--hx), -220px) scale(1.4); opacity: 0; } }
.inv .ending { position: relative; }
.inv .ending img, .inv .ending .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: grid; }
.inv .ending p { position: absolute; left: 0; right: 0; bottom: 30px; margin: 0; color: #ffffff; font-family: 'Great Vibes', var(--ih); font-size: 40px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* 1. 레터링 */
.t-lettering { --ib: #faf7f2; --it: #3d3631; --im: #8d8278; --ia0: #9c7b5b; --il: #ece5db; --icard: #fffdf9; --ion: #ffffff; --isun: #b65a4a;
  --iph: linear-gradient(160deg, #e9dfd2, #d8c8b4); --if: 'Gowun Batang', serif; --ih: 'Gowun Batang', serif; --irad: 4px; }
.t-lettering .eb { font-family: 'Great Vibes', 'Gowun Batang', cursive; font-size: 30px; letter-spacing: 0; text-transform: none; margin-bottom: 14px; }
.t-lettering .cover .cv { position: relative; height: 560px; overflow: hidden; }
.t-lettering .cover .cv img, .t-lettering .cover .cv .ph { width: 100%; height: 100%; object-fit: cover; display: grid; }
.t-lettering .cover .script { position: absolute; left: 0; right: 0; bottom: 30px; margin: 0; font-family: 'Great Vibes', cursive; font-size: 54px; font-size: clamp(42px, 15cqw, 56px); line-height: 1; color: #ffffff; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.t-lettering .cover .cvi { padding: 30px 24px 40px; }
.t-lettering .cover h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.t-lettering .cover h2 i { font-style: normal; color: var(--ia); margin: 0 6px; }
.t-lettering .cover .d { margin: 8px 0 0; color: var(--im); font-size: 13.5px; }

/* 2. 스토리 */
.t-story { --ib: #ffffff; --it: #333333; --im: #7d7d7d; --ia0: #e2577a; --il: #eeeeee; --icard: #f7f7f7; --ion: #ffffff; --isun: #d64545;
  --iph: linear-gradient(170deg, #6d6670, #2b282e); --if: 'Pretendard', sans-serif; --ih: 'Pretendard', sans-serif; --irad: 14px; }
.t-story .cover .ov .k { font-size: 12px; letter-spacing: .25em; opacity: .85; margin: 0 0 6px; }
.t-story .cover .ov h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.t-story .cover .ov .d { margin: 8px 0 0; font-size: 13px; opacity: .9; }
.t-story .eb { letter-spacing: .2em; font-weight: 700; }

/* 3. 미니멀 */
.t-minimal { --ib: #ffffff; --it: #333333; --im: #8b8b8b; --ia0: #333333; --il: #efefef; --icard: #fafafa; --ion: #ffffff; --isun: #333333;
  --iph: linear-gradient(160deg, #e6e6e6, #c9c9c9); --if: 'Noto Serif KR', serif; --ih: 'Noto Serif KR', serif; }
.t-minimal .sec { padding: 88px 34px; }
.t-minimal .sec + .sec, .t-minimal .cover + .sec { border-top: 0; }
.t-minimal .eb { letter-spacing: .36em; }
.t-minimal .cover { padding: 70px 34px 80px; }
.t-minimal .cover .top { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 500; letter-spacing: .3em; margin: 0 0 40px; }
.t-minimal .cover .pic { width: 64%; aspect-ratio: 3 / 4; margin: 0 auto 40px; object-fit: cover; display: grid; }
.t-minimal .cover h2 { margin: 0; font-weight: 300; font-size: 22px; letter-spacing: .3em; line-height: 2; }
.t-minimal .cover .d { margin: 26px 0 0; font-size: 12px; letter-spacing: .2em; color: var(--im); }
.t-minimal .parents b, .t-minimal .big { font-weight: 500; }

/* 4. 매거진 */
.t-magazine { --ib: #ece7e0; --it: #2b2522; --im: #7f746a; --ia0: #7b4a35; --il: #d9d1c6; --icard: #f5f1eb; --ion: #ffffff; --isun: #a6402f;
  --iph: linear-gradient(160deg, #d6cbbd, #b8a894); --if: 'Nanum Myeongjo', serif; --ih: 'Nanum Myeongjo', serif; }
.t-magazine .eb { font-family: 'Playfair Display', 'Nanum Myeongjo', serif; font-style: italic; text-transform: none; letter-spacing: .04em; font-size: 17px; }
.t-magazine .cover { text-align: left; padding: 22px 22px 40px; }
.t-magazine .cover .mtop { display: flex; justify-content: space-between; font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: .2em; border-bottom: 1px solid var(--it); padding-bottom: 8px; }
.t-magazine .cover .mt { font-family: 'Playfair Display', serif; font-size: 68px; font-size: clamp(50px, 19cqw, 68px); line-height: .92; margin: 22px 0 18px; font-weight: 500; letter-spacing: -.02em; }
.t-magazine .cover .mt em { display: block; padding-left: 38px; color: var(--ia); }
.t-magazine .cover .pic { width: 80%; margin-left: 20%; aspect-ratio: 4 / 5; object-fit: cover; display: grid; }
.t-magazine .cover .cap { display: grid; gap: 2px; margin-top: 16px; }
.t-magazine .cover .cap b { font-size: 21px; font-weight: 800; }
.t-magazine .cover .cap span { font-size: 13px; color: var(--im); }

/* 5. 필름 */
.t-film { --ib: #f2ebe0; --it: #4a3f35; --im: #8f8275; --ia0: #b4623a; --il: #e2d8c8; --icard: #faf6ef; --ion: #ffffff; --isun: #b4623a;
  --iph: linear-gradient(160deg, #d9c9b2, #bfa98b); --if: 'Gowun Dodum', sans-serif; --ih: 'Gowun Dodum', sans-serif; --irad: 2px; }
.t-film .cover { position: relative; padding: 44px 24px 40px; }
.t-film .pola { background: #ffffff; padding: 10px 10px 38px; box-shadow: 0 8px 22px rgba(74,63,53,.18); position: relative; }
.t-film .pola img, .t-film .pola .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: grid; filter: sepia(.18) saturate(1.05) contrast(1.02); }
/* 두 장을 같은 칸에 겹쳐요. 예전엔 -230px 로 겹쳐서 화면 너비에 따라 어긋났어요 */
.t-film .pstack { display: grid; }
.t-film .pstack .pola { grid-area: 1 / 1; }
.t-film .pola.back { width: 62%; transform: rotate(-7deg); justify-self: start; align-self: start; margin-left: 2%; }
.t-film .pola.front { width: 72%; transform: rotate(4deg); justify-self: end; margin-right: 2%; margin-top: 22%; }
.t-film .pola .stamp { position: absolute; right: 18px; bottom: 46px; font-family: 'Space Grotesk', monospace; font-weight: 700; color: #ff8a2a; font-size: 14px; letter-spacing: .06em; text-shadow: 0 0 4px rgba(255,120,30,.6); }
.t-film .pola .pcap { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; font-family: 'Nanum Pen Script', cursive; font-size: 22px; color: #4a3f35; }
.t-film .cover h2 { margin: 30px 0 0; font-size: 24px; font-weight: 400; }
.t-film .cover .d { margin: 6px 0 0; color: var(--im); font-size: 13.5px; }

/* 6. 편지 */
.t-letter { --ib: #f2e8d6; --it: #4b3b2b; --im: #8c7a63; --ia0: #b4513b; --il: #e1d3ba; --icard: #faf4e8; --ion: #ffffff; --isun: #b4513b;
  --iph: linear-gradient(160deg, #e6d6ba, #d6c2a0); --if: 'Gowun Dodum', sans-serif; --ih: 'Gamja Flower', 'Gowun Dodum', cursive; --iscript: 'Nanum Pen Script', cursive; --irad: 4px; }
.t-letter .parents b, .t-letter .big { font-size: 21px; }
.t-letter .cover { padding: 40px 22px 44px; }
.t-letter .paper { background: #fffaf0; border-radius: 4px; padding: 26px 22px 24px; text-align: left; position: relative;
  box-shadow: 0 1px 0 #e1d3ba, 0 10px 24px rgba(75,59,43,.12); background-image: repeating-linear-gradient(180deg, transparent 0 33px, #efe3cc 33px 34px); }
.t-letter .stamp { position: absolute; top: 18px; right: 18px; width: 64px; height: 76px; border: 2px dashed var(--ia); background: #fff3ec; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; color: var(--ia); font-weight: 700; font-size: 16px; line-height: 1.1; text-align: center; transform: rotate(4deg); }
.t-letter .stamp small { display: block; font-size: 9px; letter-spacing: .1em; }
.t-letter .to, .t-letter .from, .t-letter .cover .d { font-family: var(--ih); font-size: 19px; margin: 0; line-height: 1.6; }
.t-letter .to { color: var(--im); }
.t-letter .from { text-align: right; margin-top: 10px; }
.t-letter .cover h2 { font-family: var(--iscript, var(--ih)); font-size: 44px; font-size: clamp(34px, 12.5cqw, 44px); line-height: 1.12; margin: 8px 0 16px; font-weight: 400; padding-right: 78px; }

/* 사진 가장자리를 종이색으로 은은하게 (fd 표시가 붙은 사진만) */
.inv.pf-bottom .fd { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.inv.pf-all .fd {
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 8%, #000 92%, rgba(0,0,0,.35)), linear-gradient(180deg, rgba(0,0,0,.35), #000 8%, #000 92%, rgba(0,0,0,.35));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 8%, #000 92%, rgba(0,0,0,.35)), linear-gradient(180deg, rgba(0,0,0,.35), #000 8%, #000 92%, rgba(0,0,0,.35));
  mask-composite: intersect; }
.inv.pf .story.fd { border-radius: 0; }
.inv.pf .story.fd .count, .inv.pf-all .story.fd .bars { display: none; }
.t-lettering.pf .cover .cv { height: auto; }
.t-lettering.pf .cover .cv img, .t-lettering.pf .cover .cv .ph { height: 500px; }
.t-lettering.pf .cover .script, .inv.pf .ending p { position: static; color: var(--ia); text-shadow: none; }
.t-lettering.pf .cover .script { margin-top: -12px; }
.inv.pf .ending p { margin-top: -6px; padding-bottom: 10px; }

/* 사진이 없을 때: 글씨 위주 표지 */
.inv .ph-t { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 34px; line-height: 1.05; color: #ffffff; letter-spacing: .02em; }
.t-lettering .cover.np { padding-top: 96px; }
.t-lettering .cover.np .script { position: static; color: var(--ia); text-shadow: none; font-size: 58px; }
.t-lettering .cover.np .cvi { padding-top: 26px; }
.t-story .story .ph { background: linear-gradient(165deg, var(--ia), #2b282e 85%); }
.t-minimal .cover .vline { display: block; width: 1px; height: 96px; background: var(--ia); margin: 0 auto 40px; }
.t-magazine .cover .bigd { font-family: 'Playfair Display', serif; font-size: 92px; font-size: clamp(68px, 26cqw, 92px); line-height: 1; color: var(--ia); text-align: right; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--it); font-variant-numeric: lining-nums; }

/* 대절 버스 질문 */
.inv .busq { display: grid; gap: 4px; }
.inv .busq > span { font-size: 12.5px; color: var(--im); }

@media (prefers-reduced-motion: reduce) {
  .fx, .opening { display: none; }
  .inv .story .slides img, .inv .story .slides .ph { transition: none; }
  .inv .gb.new, .inv .heart, .music.on span { animation: none; }
}

/* 실제 사이트에서 더한 것 */
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.panel h2 .btn.sm { float: right; font-size: 12.5px; padding: 4px 10px; font-weight: 500; }
.keyp { border-color: var(--accent); background: var(--accent-soft); }
.keyp .urlbox code { background: var(--card); }
.btn.danger { color: #a33a2f; border-color: #e7c4bd; }
.savebar { position: sticky; top: 0; z-index: 15; background: var(--warn-soft); color: var(--warn); font-size: 13px; text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--line); }

/* 하객 화면 (/w/아이디): 휴대폰 틀 없이 화면 가득 */
body.view { margin: 0; background: #e9e4dd; }
.viewer { position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); box-shadow: 0 0 40px rgba(0,0,0,.08); }
.viewer .screen { height: auto; overflow: visible; border-radius: 0; }
.viewer .fx, .viewer .opening { position: fixed; inset: 0; left: 50%; width: min(480px, 100%); transform: translateX(-50%); border-radius: 0; }
.viewer .music { position: fixed; top: 14px; right: max(14px, calc(50% - 226px)); }
.inv iframe.video { border: 0; }

/* 마음 전하실 곳: 부모님 계좌 추가 칸 */
.accp { display: grid; gap: 8px; }
.addacc { border: 1px dashed var(--line); border-radius: 12px; padding: 0 12px; }
.addacc summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--accent-deep); padding: 10px 0; list-style: none; }
.addacc summary::-webkit-details-marker { display: none; }
.addacc[open] { padding-bottom: 12px; }

/* 청첩장 안 계좌·연락처 한 줄 */
.inv .acc + .acc { border-top: 1px dashed var(--il); padding-top: 12px; }
.inv .acc em { font-style: normal; font-size: 12px; color: var(--ia); }
.inv .acc .accb { display: flex; gap: 6px; flex: none; }
.inv .acc .ibtn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 52px; padding: 5px 10px; font-size: 12.5px; }
.inv .acc .kpay { background: #ffeb00; border-color: #ffeb00; color: #191919; }
.inv .contact { margin-top: 22px; }

/* 하객이 누르기 쉽게: 버튼은 48px 이상 */
.inv .ibtn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.inv .seg button { min-height: 46px; }
.inv summary { min-height: 48px; display: flex; align-items: center; }
.inv .btnrow.maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inv .credit a { display: inline-block; padding: 12px 4px; }
.inv .calhd { margin: 20px 0 -4px; font-size: 12.5px; color: var(--im); }

/* 글씨 크게 보기 */
.textsize { position: absolute; top: 22px; right: 64px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: #4a3a35; font-size: 15px; font-weight: 700; box-shadow: 0 2px 10px rgba(80,50,40,.15); display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; font-family: var(--ui); }
.textsize small { font-size: 11px; margin-left: 1px; }
.textsize[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.textsize:has(+ .music[hidden]) { right: 22px; }
.viewer .textsize { position: fixed; top: 14px; right: max(60px, calc(50% - 180px)); width: 40px; height: 40px; }
.viewer .textsize:has(+ .music[hidden]) { right: max(14px, calc(50% - 226px)); }
.viewer .music { width: 40px; height: 40px; }
.inv.lg { font-size: 18px; }
.inv.lg .msg, .inv.lg .gb p, .inv.lg .thanks { font-size: 18px; }
.inv.lg .parents span, .inv.lg .sub, .inv.lg .addr, .inv.lg .info, .inv.lg .acc, .inv.lg summary, .inv.lg .dd span { font-size: 16.5px; }
.inv.lg .parents b, .inv.lg .big { font-size: 22px; }
.inv.lg .ibtn, .inv.lg .seg button, .inv.lg form input, .inv.lg form select, .inv.lg form textarea { font-size: 16px; }
.inv.lg form label, .inv.lg .fine, .inv.lg .busq > span, .inv.lg .acc em, .inv.lg .acc small { font-size: 14.5px; }
.inv.lg .cal-g { font-size: 15px; }
.inv.lg .info b, .inv.lg .gb b { font-size: 14px; }

/* 사진 크게 보기 */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(12,10,10,.94); color: #ffffff; }
.lb-img { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 8px; touch-action: pinch-zoom; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; user-select: none; }
.lb-n { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: 0; right: 0; text-align: center; font-size: 14px; pointer-events: none; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #ffffff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; display: grid; place-items: center; }
.lb-x { top: calc(6px + env(safe-area-inset-top, 0px)); right: 8px; }
.lb-p, .lb-nx { top: 50%; margin-top: -24px; }
.lb-p { left: 8px; } .lb-nx { right: 8px; }

/* ===================== 공통 다듬기 ===================== */
/* 스크롤 리빌: 섹션이 부드럽게 올라와요 (app.js initReveal) */
.inv .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.inv .rv.rv-in { opacity: 1; transform: none; }
/* 표지 사진이 아주 천천히 다가와요 */
@keyframes kb { from { transform: scale(1.07); } to { transform: scale(1); } }
.t-lettering .cover .cv img, .t-editorial .ed-ph img, .t-noir .nr-ph img, .t-aurora .au-card img { animation: kb 18s ease-out both; }
/* 하객 화면 고정 버튼: 아이폰 노치 아래로 */
.viewer .music, .viewer .textsize { top: calc(14px + env(safe-area-inset-top, 0px)); }
/* 새 디자인들은 버튼·카드 모서리를 작게 (디자인마다 --ir) */
:is(.t-editorial, .t-arch, .t-noir, .t-hanji, .t-aurora, .t-ticket) :is(.ibtn, details, .info, .seg button, form input, form select, form textarea, .thanks, .gb, .mosaic button) { border-radius: var(--ir); }

/* ===================== 새 디자인 ===================== */
/* 7. 에디토리얼: 포토북 매거진. 웜 아이보리 · 차콜 · 샴페인 골드, 왼쪽 정렬과 헤어라인 */
.t-editorial { --ib: #faf8f5; --it: #222222; --im: #85807a; --ia0: #a88b5e; --ia: #a88b5e; --il: #e6e1d9; --icard: #ffffff; --ion: #ffffff; --isun: #a88b5e;
  --iph: linear-gradient(160deg, #ebe5dc, #d9cfc1); --if: 'Noto Serif KR', serif; --ih: 'Noto Serif KR', serif; --irad: 2px; --ir: 2px; }
.t-editorial .sec { padding: 76px 28px; text-align: left; }
.t-editorial .eb { display: flex; align-items: center; gap: 14px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 34px; line-height: 1;
  letter-spacing: 0; text-transform: none; color: var(--it); margin: 0 0 30px; }
.t-editorial .eb::after { content: ""; flex: 1; height: 1px; background: #c5a880; opacity: .7; }
.t-editorial .msg { line-height: 2; letter-spacing: .01em; }
.t-editorial .parents p { padding: 8px 0; border-top: 1px solid var(--il); }
.t-editorial .parents p:last-child { border-bottom: 1px solid var(--il); }
.t-editorial .cal { margin-left: 0; }
.t-editorial .dd { justify-items: start; }
.t-editorial .dd b { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; }
.t-editorial .cover { padding: 22px 22px 56px; text-align: left; }
.t-editorial .ed-top { display: flex; justify-content: space-between; gap: 8px; font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--it); font-variant-numeric: lining-nums; }
.t-editorial .ed-ph { position: relative; overflow: hidden; border-radius: 2px; }
/* 사진 아래쪽을 살짝 어둡게: 밝은 사진에서도 흰 레터링이 읽히게 */
.t-editorial .ed-ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.38)); }
.t-editorial.pf .ed-ph::after { display: none; }
.t-editorial .ed-script { z-index: 1; }
.t-editorial .ed-ph img, .t-editorial .ed-ph .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.t-editorial .ed-script { position: absolute; left: 20px; bottom: 16px; margin: 0; color: #faf8f5; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 28px; line-height: .95;
  text-shadow: 0 2px 18px rgba(0,0,0,.35); text-align: left; }
.t-editorial .ed-script em { display: block; font-style: italic; font-size: 56px; font-size: clamp(42px, 15cqw, 60px); letter-spacing: -.01em; }
.t-editorial.pf .ed-script, .t-editorial .ed-np .ed-script { position: static; color: var(--it); text-shadow: none; margin-top: 14px; }
.t-editorial .ed-np { padding: 36px 0 6px; }
.t-editorial .ed-np .ed-script em { font-size: 72px; font-size: clamp(56px, 20cqw, 80px); }
.t-editorial .cover h2 { margin: 30px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-family: var(--ih); font-weight: 500; font-size: 22px; letter-spacing: .2em; }
.t-editorial .cover h2 i { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 28px; color: #b0905f; letter-spacing: 0; }
.t-editorial .cover .d { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--il); color: var(--im); font-size: 16px; letter-spacing: .05em; line-height: 1.6; }
.t-editorial .cover .v { margin: 4px 0 0; font-size: 13.5px; color: var(--im); letter-spacing: .04em; }
/* 에디토리얼 갤러리: 넓게 · 반반 · 반반 · 가로로 길게 (사진 모양과 상관없이 칸이 정해져 있어 구멍이 안 생겨요) */
.inv .rhythm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.inv .rhythm button { position: relative; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: var(--il); aspect-ratio: 3 / 4; min-width: 0; border-radius: var(--ir, 2px); }
.inv .rhythm .r-full { grid-column: span 2; aspect-ratio: 4 / 5; }
.inv .rhythm .r-wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.inv .rhythm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.inv .rhythm .no { position: absolute; left: 12px; bottom: 8px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; color: #ffffff; letter-spacing: .06em; text-shadow: 0 1px 8px rgba(0,0,0,.45); font-variant-numeric: lining-nums; }

/* 8. 아치: 세이지 그린 · 아치 액자 */
.t-arch { --ib: #f3f2ec; --it: #3f4a3d; --im: #7d8679; --ia0: #6f8069; --ia: #6f8069; --il: #dfe2d6; --icard: #fbfbf7; --ion: #ffffff; --isun: #9a6b55;
  --iph: linear-gradient(170deg, #c9d2c2, #8fa087); --if: 'Noto Serif KR', serif; --ih: 'Noto Serif KR', serif; --irad: 6px; --ir: 6px; }
.t-arch .sec + .sec, .t-arch .cover + .sec { border-top: 0; }
.t-arch .sec::before { content: ""; display: block; width: 1px; height: 34px; background: var(--ia); opacity: .35; margin: -26px auto 26px; }
.t-arch .eb { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; text-transform: none; letter-spacing: .02em; font-size: 28px; line-height: 1.2; color: var(--ia); margin-bottom: 22px; }
.t-arch .cover { padding: 52px 30px 56px; }
.t-arch .ar-k { margin: 0 0 26px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 26px; color: var(--ia); }
.t-arch .ar-frame { position: relative; width: 74%; margin: 0 auto; }
.t-arch .ar-frame::before { content: ""; position: absolute; inset: -10px; border: 1px solid var(--ia); border-radius: 999px 999px 0 0; opacity: .5; pointer-events: none; }
.t-arch .ar-frame img, .t-arch .ar-frame .ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: grid; border-radius: 999px 999px 0 0; }
.t-arch .ar-frame .ph-t { font-size: 40px; }
.t-arch .cover h2 { margin: 36px 0 0; display: grid; gap: 2px; font-weight: 500; font-size: 21px; letter-spacing: .24em; }
.t-arch .cover h2 i { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 26px; color: var(--ia); letter-spacing: 0; line-height: 1.2; }
.t-arch .cover .d { margin: 18px 0 0; color: var(--im); font-size: 14px; letter-spacing: .08em; }

/* 9. 누아르: 다크 차콜 · 샴페인 골드 */
.t-noir { --ib: #121212; --it: #ece5d8; --im: #9a9185; --ia0: #c5a880; --ia: #c5a880; --il: rgba(236,229,216,.14); --icard: #1b1b1b; --ion: #121212; --isun: #c5a880;
  --iph: linear-gradient(160deg, #2a2723, #141414); --if: 'Noto Serif KR', serif; --ih: 'Noto Serif KR', serif; --irad: 2px; --ir: 2px; color-scheme: dark; }
.t-noir .sec { padding: 76px 28px; }
.t-noir .eb { font-family: 'Cormorant Garamond', serif; font-weight: 500; letter-spacing: .42em; font-size: 13px; color: var(--ia); }
.t-noir .eb::after { content: ""; display: block; width: 28px; height: 1px; background: var(--ia); opacity: .7; margin: 14px auto 0; }
.t-noir .cover { position: relative; padding: 0 0 60px; }
.t-noir .nr-ph { position: relative; overflow: hidden; }
.t-noir .nr-ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.t-noir .nr-ph::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,18,18,.4) 0%, rgba(18,18,18,0) 28%, rgba(18,18,18,0) 48%, #121212 97%); }
.t-noir .nr-in { position: relative; margin-top: -110px; margin-top: -30cqw; padding: 0 28px; }
.t-noir .cover.np .nr-in { margin-top: 0; padding-top: 120px; }
.t-noir .nr-k { margin: 0 0 6px; font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: .42em; text-transform: uppercase; color: var(--ia); }
.t-noir .nr-date { margin: 0; font-family: 'Playfair Display', serif; font-weight: 500; font-size: 84px; font-size: clamp(62px, 24cqw, 96px); line-height: 1; letter-spacing: .02em; font-variant-numeric: lining-nums; }
.t-noir .nr-date i { font-style: normal; color: var(--ia); }
.t-noir .cover h2 { margin: 22px 0 0; font-weight: 500; font-size: 19px; letter-spacing: .22em; }
.t-noir .cover h2 i { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--ia); margin: 0 10px; letter-spacing: 0; font-size: 22px; }
.t-noir .cover .d { margin: 16px auto 0; padding-top: 16px; border-top: 1px solid var(--il); max-width: 300px; font-size: 14px; letter-spacing: .06em; color: var(--im); }

/* 10. 모던 한지: 한지 질감 · 세로쓰기 · 囍 낙관 */
.t-hanji { --ib: #f4efe6; --it: #2b2a33; --im: #7a746b; --ia0: #34456b; --ia: #34456b; --il: #e2d9ca; --icard: #fbf8f2; --ion: #ffffff; --isun: #b23a2b;
  --iph: linear-gradient(160deg, #e3d9c8, #cbbca4); --if: 'Nanum Myeongjo', serif; --ih: 'Nanum Myeongjo', serif; --irad: 4px; --ir: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .27 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.t-hanji .eb { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: 15px; letter-spacing: .5em; text-transform: none; color: var(--ia); }
.t-hanji .eb::before, .t-hanji .eb::after { content: ""; width: 22px; height: 1px; background: var(--ia); opacity: .5; }
.t-hanji .cover { padding: 56px 26px 54px; }
.t-hanji .hj-row { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.t-hanji .hj-ph { position: relative; width: 66%; }
.t-hanji .hj-ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 4px; box-shadow: 0 10px 26px rgba(60,45,30,.14); }
.t-hanji .hj-v { margin: 0; writing-mode: vertical-rl; font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: 20px; letter-spacing: .42em; line-height: 1.9; color: var(--it); }
.t-hanji .hj-seal { position: absolute; right: -14px; bottom: -14px; width: 50px; height: 50px; display: grid; place-items: center; background: #b23a2b; color: #fbf5ea;
  font-size: 30px; line-height: 1; border-radius: 4px; transform: rotate(-6deg); box-shadow: 0 4px 12px rgba(120,30,20,.25); font-family: 'Noto Serif KR', serif; }
.t-hanji .cover.np .hj-row { align-items: center; gap: 26px; padding: 30px 0 10px; }
.t-hanji .cover.np .hj-seal { position: static; width: 74px; height: 74px; font-size: 44px; }
.t-hanji .cover.np .hj-v { font-size: 26px; }
.t-hanji .cover h2 { margin: 40px 0 0; font-weight: 800; font-size: 22px; letter-spacing: .26em; }
.t-hanji .cover h2 i { font-style: normal; color: #b23a2b; margin: 0 6px; }
.t-hanji .cover .d { margin: 14px 0 0; font-family: 'Nanum Myeongjo', serif; font-size: 14.5px; color: var(--im); letter-spacing: .06em; line-height: 1.9; }
.t-hanji .cal-g .on { border-radius: 3px; }

/* 11. 오로라: 파스텔 메시 그라데이션 · 유리 카드 */
.t-aurora { --ib: #f6f2fb; --it: #2a2540; --im: #7b7591; --ia0: #7b5ce6; --ia: #7b5ce6; --il: rgba(123,92,230,.16); --icard: rgba(255,255,255,.6); --ion: #ffffff; --isun: #e0567a;
  --iph: linear-gradient(150deg, #e6dcff, #ffd9e6 60%, #ffe9d6); --if: 'Pretendard', sans-serif; --ih: 'Pretendard', sans-serif; --irad: 22px; --ir: 14px;
  background-image: radial-gradient(60% 40% at 8% 6%, #f8d7ea 0, transparent 70%), radial-gradient(55% 35% at 95% 22%, #d6e2ff 0, transparent 70%), radial-gradient(70% 40% at 50% 70%, #ffe5d2 0, transparent 70%);
  background-size: 100% 1400px; background-repeat: repeat-y; }
.t-aurora .sec + .sec, .t-aurora .cover + .sec { border-top: 0; }
.t-aurora .eb { font-family: 'Pretendard', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .24em;
  background: linear-gradient(90deg, #7b5ce6, #e0567a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-aurora :is(details, .info, .gb, .thanks, form input, form select, form textarea, .seg button:not([aria-pressed="true"]), .ibtn:not(.solid):not(.kpay)) {
  background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.t-aurora .ibtn.solid, .t-aurora .seg button[aria-pressed="true"] { background: linear-gradient(120deg, #7b5ce6, #c55ab8); border-color: transparent; }
.t-aurora .big, .t-aurora .parents b { font-weight: 700; }
.t-aurora .cover { padding: 46px 22px 50px; }
.t-aurora .au-k { display: inline-block; margin: 0; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ia);
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.t-aurora .au-date { margin: 14px 0 22px; font-family: 'Space Grotesk', 'Pretendard', sans-serif; font-weight: 700; font-size: 52px; font-size: clamp(40px, 14.5cqw, 58px); line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(100deg, #7b5ce6 10%, #e0567a 55%, #f39a5b); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums; }
.t-aurora .au-card { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px rgba(110,80,180,.22); }
.t-aurora .au-card img, .t-aurora .au-card .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.t-aurora .au-glass { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; text-align: left;
  background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.7); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); color: #241f38; }
.t-aurora .au-glass b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.t-aurora .au-glass b i { font-style: normal; color: var(--ia); margin: 0 2px; }
.t-aurora .au-glass span { font-size: 12.5px; color: #4a4560; }

/* 12. 티켓: 입장권 · 절취선 · 바코드 */
.t-ticket { --ib: #f3ede2; --it: #1f1f1f; --im: #77706a; --ia0: #d6452f; --ia: #d6452f; --il: #e2d9c9; --icard: #fffaf1; --ion: #ffffff; --isun: #d6452f;
  --iph: linear-gradient(160deg, #e9dfcf, #d6c7ae); --if: 'Pretendard', sans-serif; --ih: 'Pretendard', sans-serif; --irad: 6px; --ir: 6px; }
.t-ticket .sec + .sec, .t-ticket .cover + .sec { border-top: 2px dashed var(--il); }
.t-ticket .eb { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .2em; font-size: 12.5px; color: var(--ia); }
.t-ticket .eb::before { content: "● "; font-size: 9px; vertical-align: 2px; }
.t-ticket .big, .t-ticket .parents b { font-weight: 800; }
.t-ticket .dd b { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: 0; }
.t-ticket .cover { padding: 40px 20px 46px; }
.t-ticket .tk { position: relative; background: #fffaf1; border-radius: 10px; box-shadow: 0 14px 34px rgba(80,60,30,.14); overflow: hidden; text-align: left; }
.t-ticket .tk-ph img, .t-ticket .tk-ph .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.t-ticket .tk-body { padding: 18px 20px 20px; }
.t-ticket .tk-k { display: flex; justify-content: space-between; margin: 0 0 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ia); }
.t-ticket .cover h2 { margin: 0 0 16px; font-weight: 800; font-size: 26px; font-size: clamp(22px, 7.6cqw, 28px); letter-spacing: -.01em; line-height: 1.3; }
.t-ticket .cover h2 i { font-style: normal; color: var(--ia); margin: 0 8px; font-size: .8em; }
.t-ticket .tk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 0; padding-top: 14px; border-top: 1px solid var(--il); }
.t-ticket .tk-grid .w { grid-column: 1 / -1; }
.t-ticket .tk-grid dt { font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--im); }
.t-ticket .tk-grid dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
/* 절취선: 점선 + 양쪽에 반원 홈 */
.t-ticket .tk-stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px 18px; border-top: 2px dashed var(--il); }
.t-ticket .tk-stub::before, .t-ticket .tk-stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--ib); }
.t-ticket .tk-stub::before { left: -10px; } .t-ticket .tk-stub::after { right: -10px; }
.t-ticket .tk-stub span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.t-ticket .tk-stub .bar { flex: 1; max-width: 160px; height: 34px;
  background: repeating-linear-gradient(90deg, #1f1f1f 0 2px, transparent 2px 4px, #1f1f1f 4px 5px, transparent 5px 8px, #1f1f1f 8px 11px, transparent 11px 13px); }

@media (prefers-reduced-motion: reduce) {
  .inv .rv { opacity: 1; transform: none; transition: none; }
  .t-lettering .cover .cv img, .t-editorial .ed-ph img, .t-noir .nr-ph img, .t-aurora .au-card img { animation: none; }
}

/* 부모님 성함 + "고인" 체크: 체크하면 청첩장에 국화(✿) 표시 */
/* 선택 항목 접기 (마음 전하실 곳 · 더 넣을 수 있어요 · 꾸미기): 카드 한 줄 + 요약 */
.fold { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 0 20px; min-width: 0; }
.fold > summary { display: flex; align-items: center; gap: 8px; padding: 16px 0; cursor: pointer; list-style: none; min-width: 0; }
.fold > summary::-webkit-details-marker { display: none; }
.fold-t { font-weight: 800; font-size: 16px; white-space: nowrap; }
.fold > summary small { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; flex: none; }
.fold-sum { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fold > summary::after { content: "›"; font-size: 18px; color: var(--muted); transition: transform .2s ease; flex: none; }
.fold[open] > summary::after { transform: rotate(90deg); }
.fold[open] { padding-bottom: 20px; }
.fold-in { display: grid; gap: 12px; }
/* 카카오페이 링크 같은 아주 작은 선택 칸 */
.mini summary { cursor: pointer; font-size: 12.5px; color: var(--accent-deep); list-style: none; padding: 2px 0; }
.mini summary::-webkit-details-marker { display: none; }
.mini[open] { display: grid; gap: 6px; }
/* 부모님 성함(선택): 접어 두고 한 줄로 요약 */
.par { border: 1px dashed var(--line); border-radius: 12px; padding: 0 12px; }
.par summary { display: flex; align-items: center; gap: 6px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.par summary::-webkit-details-marker { display: none; }
.par summary small { font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.par summary .par-sum { margin-left: auto; font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.par summary::after { content: "›"; font-size: 16px; color: var(--muted); transition: transform .2s ease; }
.par[open] summary::after { transform: rotate(90deg); }
.par[open] { padding-bottom: 12px; display: grid; gap: 8px; }
/* 이름 칸은 너비 그대로, "고인"은 칸 이름 줄 오른쪽에 */
.f-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.late { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.late input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-deep); }
/* 성 · 이름 칸: 성은 좁게, 이름은 넓게 */
.nm { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }

/* 디자인 고르기(②) 휴대폰: 화면 가득 미리보기 + 아래에 "분위기 바로 바꿔 보기" 붙이기 */
.dock:empty { display: none; }
@media (max-width: 900px) {
  #pv2.full { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
  #pv2.full .pvclose { display: inline-flex; align-self: flex-start; flex: none; }
  #pv2.full .cap { flex: none; }
  #pv2.full .phone { flex: 1 1 auto; min-height: 0; height: auto; width: min(340px, 100%); }
  #pv2.full .replay, #pv2.full #choose { display: none; }
  #pv2.full .dock { width: 100%; flex: none; max-height: 34dvh; overflow-y: auto; }
  #pv2.full .dock .quick { padding: 10px 12px; gap: 6px; box-shadow: none; border-radius: 14px; }
  #pv2.full .dock .quick h2 { display: none; }
  /* 줄마다 옆으로 밀어서 고르기: 미리보기를 크게 남기려고 한 줄씩만 */
  #pv2.full .dock .qrow { grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: center; }
  #pv2.full .dock .qrow + .qrow { padding-top: 8px; }
  #pv2.full .dock .qrow > .ql { padding-top: 0; font-size: 12px; gap: 5px; }
  #pv2.full .dock .qrow > .ql i { width: 18px; height: 18px; font-size: 10.5px; border-radius: 5px; }
  #pv2.full .dock .qchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  #pv2.full .dock .qchips::-webkit-scrollbar { display: none; }
  #pv2.full .dock .qchip { flex: none; }
  /* 배경음악: 분위기 한 줄 + 그 아래 고른 분위기의 곡 한 줄 (예전엔 곡 버튼이 줄 맨 끝에 붙어서 안 보였어요) */
  #pv2.full .dock #qMusic { display: grid; gap: 6px; overflow: visible; }
  #pv2.full .dock .qmoods, #pv2.full .dock .qsub { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  #pv2.full .dock .qmoods::-webkit-scrollbar, #pv2.full .dock .qsub::-webkit-scrollbar { display: none; }
  #pv2.full .dock .qsub { width: auto; margin: 0; padding: 6px 0 0; border-top: 1px dashed var(--line); border-left: 0; }
}

/* 혼주 줄: 부모님 성함은 오른쪽 정렬, 신랑·신부 이름은 왼쪽 정렬 → 두 이름이 같은 세로선에서 시작해요.
   (예전엔 줄마다 가운데 정렬이라 부모님 성함 길이에 따라 이름 위치가 달랐어요) */
.inv .parents { display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: center; align-items: baseline; column-gap: 6px; row-gap: 4px; }
.inv .parents p { display: contents; }
.inv .parents span { text-align: right; }
.inv .parents b { text-align: left; margin-left: 0; white-space: nowrap; }
/* 에디토리얼: 왼쪽 정렬 + 줄 사이 헤어라인이라, 이름을 오른쪽 끝에 맞춰 나란히 */
.t-editorial .parents { grid-template-columns: minmax(0, 1fr); justify-content: stretch; row-gap: 0; }
.t-editorial .parents p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.t-editorial .parents span { text-align: left; }

/* ===================== 새 컨셉 7개 (비교용, ?lab) =====================
   표지만이 아니라 섹션 제목·본문·갤러리·엔딩까지 컨셉에 맞춰요. (예전 디자인은 표지만 달라서 스크롤하면 다 비슷했어요) */
:is(.t-cinema, .t-extra, .t-passport, .t-exhibit, .t-chat, .t-scrap, .t-press) :is(.ibtn, details, .info, .seg button, form input, form select, form textarea, .thanks, .gb, .mosaic button) { border-radius: var(--ir); }
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- 시네마: 영화 포스터 + 엔딩 크레딧 ---------- */
.t-cinema { --ib: #0e0e10; --it: #efe9df; --im: #9a958c; --ia0: #e2b04a; --ia: #e2b04a; --il: rgba(239,233,223,.14); --icard: #18181b; --ion: #0e0e10; --isun: #e2b04a;
  --iph: linear-gradient(160deg, #26262b, #0e0e10); --if: 'Pretendard', sans-serif; --ih: 'Pretendard', sans-serif; --irad: 2px; --ir: 2px; color-scheme: dark; }
.t-cinema .cover { position: relative; padding: 0 0 54px; }
.t-cinema .cn-ph { position: relative; overflow: hidden; }
.t-cinema .cn-ph img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.t-cinema .cn-ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14,14,16,.55) 0%, rgba(14,14,16,0) 22%, rgba(14,14,16,0) 42%, #0e0e10 92%); }
.t-cinema .cn-in { position: relative; margin-top: -190px; margin-top: -52cqw; padding: 0 22px; }
.t-cinema .cover.np .cn-in { margin-top: 0; padding-top: 110px; }
.t-cinema .cn-tag { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .32em; color: var(--ia); }
.t-cinema .cover h2 { margin: 0; display: grid; font-weight: 900; font-size: 56px; font-size: clamp(42px, 15cqw, 64px); line-height: .98; letter-spacing: -.05em; }
.t-cinema .cover h2 i { font-style: normal; font-weight: 500; font-size: 13px; letter-spacing: .5em; color: var(--ia); margin: 8px 0 6px; line-height: 1; }
.t-cinema .cn-en { margin: 14px 0 0; font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: .5em; color: var(--ia); line-height: 1; padding-left: .5em; }
.t-cinema .cn-date { margin: 14px 0 0; font-family: 'Bebas Neue', 'Pretendard', sans-serif; font-size: 22px; letter-spacing: .12em; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-cinema .cn-date b { font-family: 'Pretendard', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .1em; background: var(--ia); color: #0e0e10; padding: 2px 9px; }
.t-cinema .cn-credit { margin: 22px auto 0; max-width: 300px; font-size: 11px; line-height: 1.55; letter-spacing: -.01em; color: var(--im); transform: scaleY(1.22); transform-origin: top; }
.t-cinema .cn-credit b { color: var(--it); font-weight: 700; }
.t-cinema .cn-rate { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-top: 18px; border-radius: 50%; background: #2eaa4b; color: #ffffff; font: 700 10px 'Space Grotesk', sans-serif; }
.t-cinema .sec { padding: 64px 24px; }
.t-cinema .eb { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: .3em; color: var(--ia); margin-bottom: 20px; padding-left: .3em; }
.t-cinema .dd b { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: .08em; }
.t-cinema .big { font-weight: 800; letter-spacing: -.02em; }
/* 필름 스트립: 넘기는 사진 위아래에 필름 구멍 */
.t-cinema .story:not(.full)::before, .t-cinema .story:not(.full)::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(90deg, #000 0 7px, #e9e3d8 7px 15px, #000 15px 20px) center / 100% 7px no-repeat, #000; }
.t-cinema .story:not(.full)::before { top: 0; } .t-cinema .story:not(.full)::after { bottom: 0; }
.t-cinema .story:not(.full) .bars { top: 24px; }
.t-cinema .story:not(.full) .count { bottom: 24px; }
.t-cinema .ending.txt p { font-family: 'Bebas Neue', sans-serif; font-size: 56px; letter-spacing: .3em; color: var(--it); padding-left: .3em; }
.t-cinema .ending.txt span { font-size: 13px; letter-spacing: .1em; }
.t-cinema .ending p { font-family: 'Bebas Neue', sans-serif; letter-spacing: .3em; }

/* ---------- 호외: 신문 1면 ---------- */
.t-extra { --ib: #efeadf; --it: #161616; --im: #5f5a52; --ia0: #b3261e; --ia: #b3261e; --il: #c9c2b3; --icard: #f6f2e9; --ion: #ffffff; --isun: #b3261e;
  --iph: linear-gradient(160deg, #ddd6c8, #bdb5a5); --if: 'Noto Serif KR', serif; --ih: 'Nanum Myeongjo', serif; --irad: 0px; --ir: 0px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3 0 0 0 0 .28 0 0 0 0 .24 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.t-extra .cover { padding: 20px 18px 34px; text-align: left; }
.t-extra .ex-mast { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--im); padding-bottom: 6px; border-bottom: 1px solid var(--it); }
.t-extra .ex-name { margin: 10px 0 8px; text-align: center; font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 44px; font-size: clamp(32px, 11.5cqw, 52px); line-height: 1.1; letter-spacing: -.04em; }
.t-extra .ex-bar { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-top: 4px double var(--it); border-bottom: 1px solid var(--it); font-size: 11.5px; }
.t-extra .ex-bar span:first-child { background: var(--ia); color: #ffffff; font-weight: 800; padding: 1px 8px; letter-spacing: .1em; }
.t-extra .ex-head { margin: 18px 0 10px; font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 36px; font-size: clamp(28px, 10cqw, 42px); line-height: 1.2; letter-spacing: -.05em; text-wrap: balance; }
.t-extra .ex-sub { margin: 0; padding-left: 10px; border-left: 4px solid var(--ia); font-weight: 600; font-size: 15px; line-height: 1.6; color: #2a2a2a; }
.t-extra .ex-fig { margin: 18px 0 0; }
.t-extra .ex-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: grayscale(.25) sepia(.1) contrast(1.05); }
.t-extra .ex-fig figcaption { font-size: 11.5px; color: var(--im); margin-top: 6px; }
.t-extra .ex-lead { margin: 14px 0 0; font-size: 14.5px; line-height: 1.85; text-align: justify; }
.t-extra .sec { padding: 34px 18px 40px; text-align: left; }
.t-extra .sec + .sec, .t-extra .cover + .sec { border-top: 4px double var(--it); }
.t-extra .eb { display: inline-block; margin-bottom: 16px; background: var(--it); color: var(--ib); font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 13px; letter-spacing: .14em; padding: 2px 12px; }
/* 기사 첫 글자를 크게 (신문 드롭캡). 두 단으로 나누면 짧은 인사말이 어색하게 끊겨서 한 단으로 */
.t-extra .msg { font-size: 15px; line-height: 1.85; }
.t-extra .msg::first-letter { float: left; font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 46px; line-height: .9; margin: 6px 8px 0 0; }
.t-extra .parents { justify-content: start; }
.t-extra .big { font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 22px; }
.t-extra .cal { margin-left: 0; border: 1px solid var(--it); padding: 10px; max-width: none; }
.t-extra .dd { justify-items: start; }
.t-extra .dd b { font-family: 'Nanum Myeongjo', serif; font-weight: 800; color: var(--ia); }
.t-extra .mosaic img, .t-extra .story img { filter: grayscale(.2) sepia(.08) contrast(1.04); }
.t-extra .ending.txt { text-align: center; border-top: 4px double var(--it); }
.t-extra .ending.txt p { font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 22px; color: var(--it); }

/* ---------- 웨딩 여권: 여권 표지 + 신원면 + 입국 도장 ---------- */
.t-passport { --ib: #f1ece1; --it: #1d2b3a; --im: #6b7480; --ia0: #1f4e79; --ia: #1f4e79; --il: #d8d0bf; --icard: #f8f4ea; --ion: #ffffff; --isun: #b8322a;
  --iph: linear-gradient(160deg, #cfd8df, #9fb0bf); --if: 'Pretendard', sans-serif; --ih: 'Noto Serif KR', serif; --irad: 4px; --ir: 4px;
  background-image: repeating-radial-gradient(circle at 50% 18%, transparent 0 10px, rgba(31,78,121,.045) 10px 11px), repeating-linear-gradient(45deg, rgba(31,78,121,.025) 0 1px, transparent 1px 7px);
  counter-reset: pg; }
.t-passport .cover { padding: 30px 20px 40px; }
.t-passport .pp-book { width: 80%; margin: 0 auto; padding: 30px 16px 26px; border-radius: 6px 16px 16px 6px; background: #16324a; color: #e7d3a1; text-align: center;
  box-shadow: inset 7px 0 0 rgba(0,0,0,.18), 0 20px 40px rgba(10,25,40,.35); }
.t-passport .pp-k { margin: 0; font-size: 10.5px; letter-spacing: .16em; opacity: .85; }
.t-passport .pp-emb { display: grid; place-items: center; width: 74px; height: 74px; margin: 22px auto; border-radius: 50%; border: 3px double #e7d3a1; }
.t-passport .pp-emb i { font-style: normal; font-size: 28px; }
.t-passport .pp-t { margin: 0; font-family: 'Playfair Display', serif; font-weight: 500; font-size: 25px; line-height: 1.15; letter-spacing: .14em; text-transform: uppercase; }
.t-passport .pp-kt { margin: 8px 0 0; font-family: 'Noto Serif KR', serif; font-size: 14px; letter-spacing: .3em; }
.t-passport .pp-chip { display: block; position: relative; width: 30px; height: 20px; margin: 22px auto 0; border: 2px solid #e7d3a1; border-radius: 4px; }
.t-passport .pp-chip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 2px solid #e7d3a1; border-radius: 50%; }
.t-passport .pp-data { position: relative; margin-top: 22px; padding: 14px; background: #f8f4ea; border: 1px solid var(--il); border-radius: 8px; text-align: left; box-shadow: 0 6px 18px rgba(30,40,60,.08); overflow: hidden; }
.t-passport .pp-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .1em; color: var(--im); padding-bottom: 6px; border-bottom: 1px solid var(--il); }
.t-passport .pp-row { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.t-passport .pp-row:not(:has(.pp-ph)) { grid-template-columns: minmax(0, 1fr); }
.t-passport .pp-ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; filter: grayscale(.35) contrast(1.05); border-radius: 2px; }
.t-passport .pp-row dl { margin: 0; display: grid; gap: 7px; }
.t-passport .pp-row dt { font-size: 9.5px; color: var(--im); letter-spacing: .03em; }
.t-passport .pp-row dd { margin: 0; font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 14px; line-height: 1.35; }
.t-passport .pp-mrz { margin: 12px 0 0; padding-top: 8px; border-top: 1px dashed var(--il); font-family: 'Courier New', monospace; font-size: 11px; letter-spacing: .06em; line-height: 1.5; overflow-wrap: anywhere; word-break: break-all; color: #2a3644; }
.t-passport .pp-stamp { position: absolute; right: 10px; top: 46px; display: grid; place-items: center; width: 98px; height: 66px; border: 2px solid #b8322a; border-radius: 50%;
  color: #b8322a; font: 700 10px/1.15 'Space Grotesk', sans-serif; letter-spacing: .1em; text-align: center; transform: rotate(-14deg); opacity: .8; mix-blend-mode: multiply; }
.t-passport .pp-stamp b { display: block; font-size: 12px; }
.t-passport .sec { counter-increment: pg; }
.t-passport .sec::after { content: counter(pg, decimal-leading-zero); position: absolute; right: 16px; bottom: 12px; font: 600 10px 'Space Grotesk', sans-serif; color: var(--im); }
.t-passport .sec + .sec, .t-passport .cover + .sec { border-top: 1px dashed var(--il); }
.t-passport .eb { display: inline-block; border: 2px solid var(--ia); color: var(--ia); padding: 3px 12px; border-radius: 4px; font: 700 12px 'Space Grotesk', 'Pretendard', sans-serif; letter-spacing: .1em; transform: rotate(-2deg); }
.t-passport .sec:nth-of-type(even) .eb { transform: rotate(2deg); border-color: #b8322a; color: #b8322a; border-radius: 999px; }
.t-passport .mosaic button { background: #ffffff; padding: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.t-passport .ending.txt p, .t-passport .ending p { font-family: 'Playfair Display', serif; font-style: italic; }

/* ---------- 전시: 두 사람의 2인전 ---------- */
.t-exhibit { --ib: #f6f5f2; --it: #111111; --im: #6f6f6f; --ia0: #111111; --ia: #111111; --il: #dcdad4; --icard: #ffffff; --ion: #ffffff; --isun: #c0392b;
  --iph: linear-gradient(160deg, #e6e4df, #cfccc5); --if: 'Pretendard', sans-serif; --ih: 'Pretendard', sans-serif; --irad: 0px; --ir: 0px; counter-reset: xs; }
.t-exhibit .cover { padding: 36px 24px 44px; text-align: left; }
.t-exhibit .xh-k { margin: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--im); }
.t-exhibit .cover h2 { margin: 10px 0 4px; font-weight: 800; font-size: 48px; font-size: clamp(38px, 13cqw, 58px); line-height: 1.02; letter-spacing: -.05em; }
.t-exhibit .cover h2 i { font-style: normal; font-weight: 200; color: var(--im); margin: 0 .12em; }
.t-exhibit .xh-t { margin: 0; font-size: 15px; font-weight: 500; }
.t-exhibit .xh-frame { margin: 32px 9% 0; padding: 14px; background: #ffffff; box-shadow: 0 0 0 6px #1a1a1a, 0 26px 44px rgba(0,0,0,.2), 0 6px 12px rgba(0,0,0,.12); }
.t-exhibit .xh-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.t-exhibit .xh-label { margin: 26px 0 0 auto; width: fit-content; max-width: 66%; background: #ffffff; padding: 10px 12px; font-size: 11px; line-height: 1.55; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.t-exhibit .xh-label b { display: block; font-size: 12px; }
.t-exhibit .xh-info { margin: 30px 0 0; border-top: 2px solid #111111; }
.t-exhibit .xh-info div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--il); }
.t-exhibit .xh-info dt { font-size: 11.5px; color: var(--im); }
.t-exhibit .xh-info dd { margin: 0; font-size: 14px; font-weight: 600; }
.t-exhibit .sec { padding: 56px 24px; text-align: left; }
.t-exhibit .sec:has(.eb) { counter-increment: xs; }
.t-exhibit .eb { display: flex; gap: 10px; align-items: baseline; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--it); padding-bottom: 8px; border-bottom: 2px solid #111111; margin-bottom: 22px; }
.t-exhibit .eb::before { content: counter(xs, decimal-leading-zero); font-weight: 400; color: var(--im); }
.t-exhibit .parents { justify-content: start; }
.t-exhibit .cal { margin-left: 0; }
.t-exhibit .dd { justify-items: start; }
.t-exhibit .dd b { font-weight: 800; letter-spacing: -.02em; }
.inv .frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
.inv .frames figure { margin: 0; min-width: 0; }
.inv .frames figure:last-child:nth-child(odd) { grid-column: span 2; width: 70%; justify-self: center; }
.inv .frames button { display: block; width: 100%; padding: 8px; border: 0; background: #ffffff; cursor: pointer; box-shadow: 0 0 0 1.5px #1a1a1a, 0 12px 20px rgba(0,0,0,.14); }
.inv .frames img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.inv .frames figcaption { margin-top: 10px; font-size: 11px; line-height: 1.4; color: var(--it); }
.inv .frames figcaption b { display: block; font-size: 10px; font-weight: 400; color: var(--im); }
.t-exhibit .ending.txt { text-align: left; padding-left: 24px; padding-right: 24px; }
.t-exhibit .ending.txt p, .t-exhibit .ending p { font-family: 'Pretendard', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.03em; }

/* ---------- 메시지: 잠금 화면 알림 → 대화 말풍선 ---------- */
/* ---------- 메시지: 표지는 휴대폰 잠금 화면 알림, 본문은 말을 거는 듯한 문구 + 차분한 청첩장 배치 ----------
   말풍선은 진짜 메시지인 방명록에만 써요. 날짜는 글씨와 달력, 장소는 한 장의 카드, 교통·버스는 안내 카드.
   글꼴(프리텐다드) · 카드(흰 바탕, 모서리 20px, 옅은 그림자) · 버튼(모서리 14px) · 섹션 간격(64px)을 전체에서 같게 써요. */
.t-chat { --ib: #f7f5f2; --it: #23252b; --im: #858079; --ia0: #4d6bf0; --ia: #4d6bf0; --il: #e8e3dc; --icard: #ffffff; --ion: #ffffff; --isun: #e5484d;
  --iph: linear-gradient(160deg, #d9dfec, #b4c0d8); --if: 'Pretendard', sans-serif; --ih: 'Pretendard', sans-serif; --irad: 20px; --ir: 14px;
  --csh: 0 1px 2px rgba(40,32,20,.04), 0 10px 28px rgba(40,32,20,.06); }
/* 표지: 시계는 위, 알림은 실제 잠금 화면처럼 아래에 모여서 사진 가운데가 가려지지 않아요 */
.t-chat .cover { position: relative; aspect-ratio: 9 / 17; overflow: hidden; color: #ffffff; }
.t-chat .ch-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.t-chat .cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 52%, rgba(0,0,0,.42)); }
.t-chat .ch-lock { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 48px 14px 36px; }
.t-chat .ch-date { margin: 0; font-size: 15px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.t-chat .ch-time { margin: 0; font-weight: 200; font-size: 80px; font-size: clamp(62px, 24cqw, 96px); line-height: 1; letter-spacing: -.03em; text-shadow: 0 2px 16px rgba(0,0,0,.25); font-variant-numeric: lining-nums; }
.t-chat .ch-noti { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-bottom: 8px; padding: 12px 14px; border-radius: 20px; text-align: left;
  background: rgba(245,245,247,.76); color: #111111; -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.t-chat .ch-noti[data-noti] { margin-top: auto; }
.t-chat .ch-noti.s { width: 94%; margin-bottom: 0; opacity: .94; }
.t-chat .ch-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #ffffff; font-size: 20px; }
.t-chat .ch-noti b { font-size: 14px; }
.t-chat .ch-noti p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; }
.t-chat .ch-noti small { font-size: 11.5px; color: #555555; }
.t-chat .ch-down { position: absolute; left: 50%; bottom: 14px; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgba(255,255,255,.85); }

/* 본문 공통: 작은 라벨 → 다정한 제목 → 내용 */
.t-chat .sec { padding: 64px 22px; text-align: center; }
.t-chat .sec + .sec, .t-chat .cover + .sec { border-top: 0; }
.t-chat .eb { margin: 0 0 8px; font: 600 12px 'Pretendard', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ia); }
.t-chat .st { margin: 0 0 26px; font-size: 23px; font-size: clamp(21px, 6.4cqw, 25px); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; color: var(--it); }
.t-chat .msg { margin: 0 0 32px; font-size: 15.5px; line-height: 1.95; color: #3b3d44; }
.t-chat .parents { padding-top: 30px; background: linear-gradient(var(--il), var(--il)) top center / 40px 1px no-repeat; }
.t-chat .parents span { font-size: 13.5px; }
.t-chat .parents b { font-size: 17px; font-weight: 700; }
.t-chat .ibtn { border: 1px solid var(--il); border-radius: var(--ir); background: var(--icard); color: var(--it); font-weight: 600; font-size: 13.5px; }
.t-chat .ibtn.solid { border-color: var(--ia); background: var(--ia); color: #ffffff; }
.t-chat :is(details, .thanks, .info, .place, .cal, form[data-rsvp], form[data-gb]) { border: 0; border-radius: var(--irad); background: var(--icard); box-shadow: var(--csh); }

/* 사진: 넘겨 보는 큰 사진과 아래 격자가 같은 너비로 딱 맞아요 */
.t-chat .story { border-radius: var(--irad); box-shadow: var(--csh); }
.t-chat .sec .mosaic { gap: 4px; margin-top: 8px; }
.t-chat .sec .mosaic button { border-radius: 8px; }
.t-chat .video { border-radius: var(--irad); overflow: hidden; }

/* 날짜: 글씨로 크게, 달력은 카드 한 장 */
.t-chat .big { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.t-chat .sub { margin-top: 2px; font-size: 14.5px; }
.t-chat .cal { max-width: none; margin: 26px 0 0; padding: 18px 16px 14px; }
.t-chat .cal::before { content: attr(data-m); display: block; margin-bottom: 10px; font: 700 13px 'Pretendard', sans-serif; letter-spacing: .08em; color: var(--it); }
.t-chat .dd { margin: 26px 0 0; justify-items: center; }
.t-chat .dd b { font: 700 30px 'Pretendard', sans-serif; letter-spacing: -.01em; color: var(--ia); }
.t-chat .dd span { font-size: 14px; }
.t-chat .calhd { margin-top: 28px; }

/* 장소: 핀 · 예식장 · 홀 · 주소 · 지도 버튼이 한 장의 카드 */
.t-chat .place { padding: 26px 18px 18px; }
.t-chat .place::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%;
  background: rgba(77,107,240,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d6bf0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E") center / 22px no-repeat; }
.t-chat .place .big { font-size: 20px; }
.t-chat .place .addr { margin: 10px 0 0; }
.t-chat .btnrow.maps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--il); }
.t-chat .btnrow.maps .ibtn { padding: 8px 4px; }
.t-chat .btnrow.maps [data-copy] { grid-column: 1 / -1; min-height: 40px; border: 0; background: transparent; color: var(--im); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* 교통·버스: 아이콘이 붙은 안내 카드. 줄마다 나눠서 읽기 쉽게 */
.t-chat .info { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: start; margin-top: 12px; padding: 18px 18px 18px 16px; white-space: normal; font-size: 14px; line-height: 1.7; color: #3b3d44; }
.t-chat .info::before { content: ""; grid-row: 1 / span 9; width: 36px; height: 36px; border-radius: 50%; background: rgba(77,107,240,.1) center / 20px no-repeat; }
.t-chat .info.traffic::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d6bf0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='3' width='12' height='14' rx='4'/%3E%3Cpath d='M6 10h12M9 13.5h.01M15 13.5h.01M8.5 21l1.5-4M15.5 21l-1.5-4'/%3E%3C/svg%3E"); }
.t-chat .info.bus::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d6bf0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12a2 2 0 0 1 2 2v12H4V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M4 10h16M8 13.5h.01M16 13.5h.01M7 17v3M17 17v3'/%3E%3C/svg%3E"); }
.t-chat .info > * { grid-column: 2; }
.t-chat .info b { margin: 7px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--it); }
.t-chat .info p + p { margin-top: 3px; }
.t-chat .info .i-lead { font-size: 15px; font-weight: 700; color: var(--it); }
.t-chat .info .i-note { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--il); font-size: 12.5px; color: var(--im); }

/* 참석 여부: 카드 한 장 안에 휴대폰 설정 화면 같은 선택 버튼 */
.t-chat form[data-rsvp], .t-chat form[data-gb] { gap: 14px; padding: 22px 18px; }
.t-chat form input, .t-chat form select, .t-chat form textarea { border: 1px solid var(--il); border-radius: 12px; background: #faf9f7; }
.t-chat .seg { gap: 4px; padding: 4px; border-radius: 14px; background: #f1eee9; }
.t-chat .seg button { min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: var(--im); font-weight: 600; }
.t-chat .seg button[aria-pressed="true"] { background: #ffffff; color: var(--it); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.t-chat .busq { display: grid; gap: 6px; }
.t-chat details { margin-top: 10px; }

/* 방명록: 여기만 진짜 메시지라 말풍선. 이름은 말풍선 위에 작게 */
.t-chat .gb-list { gap: 14px; margin-bottom: 22px; }
.t-chat .gb { justify-self: start; display: grid; gap: 4px; max-width: 86%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.t-chat .gb b { padding-left: 12px; font-size: 12px; font-weight: 600; color: var(--im); }
.t-chat .gb p { margin: 0; padding: 10px 15px; border-radius: 18px 18px 18px 6px; background: var(--icard); box-shadow: var(--csh); font-size: 14.5px; line-height: 1.6; color: var(--it); }

/* 마지막: "입력 중…" 말풍선 다음에 인사 */
.t-chat .ending.txt { justify-items: center; padding: 40px 22px 28px; border-top: 0; }
.t-chat .ending.txt::before { content: ""; width: 58px; height: 34px; margin-bottom: 14px; border-radius: 18px 18px 18px 6px; box-shadow: var(--csh);
  background: radial-gradient(circle, #b9b3aa 3.5px, transparent 4px) 15px 50% / 9px 9px no-repeat, radial-gradient(circle, #b9b3aa 3.5px, transparent 4px) 25px 50% / 9px 9px no-repeat,
    radial-gradient(circle, #b9b3aa 3.5px, transparent 4px) 35px 50% / 9px 9px no-repeat, var(--icard); }
.t-chat .ending.txt p { font: 700 24px 'Pretendard', sans-serif; letter-spacing: -.02em; color: var(--it); }
.t-chat .ending.txt span { font-size: 15px; color: var(--im); }
.t-chat .ending p { font-family: 'Pretendard', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.02em; }

/* ---------- 스크랩북: 크라프트지 + 테이프 + 폴라로이드 ---------- */
.t-scrap { --ib: #d6bf99; --it: #3b2f24; --im: #6b5843; --ia0: #c4553a; --ia: #c4553a; --il: rgba(59,47,36,.18); --icard: #fffaf0; --ion: #ffffff; --isun: #c4553a;
  --iph: linear-gradient(160deg, #efe4cf, #d8c6a6); --if: 'Gowun Dodum', sans-serif; --ih: 'Gamja Flower', 'Gowun Dodum', cursive; --irad: 2px; --ir: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.inv .tape { position: absolute; top: -11px; left: 50%; width: 74px; height: 22px; margin-left: -37px; rotate: -4deg; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, rgba(255,255,255,.12) 6px 12px), rgba(234,196,128,.62); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.t-scrap .cover { padding: 44px 18px 54px; }
.t-scrap .sc-board { position: relative; }
.t-scrap .sc-pola { position: relative; margin: 0; padding: 10px 10px 36px; background: #ffffff; box-shadow: 0 10px 20px rgba(60,40,20,.28); }
.t-scrap .sc-pola img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.t-scrap .sc-pola figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: 'Nanum Pen Script', cursive; font-size: 24px; color: var(--it); }
.t-scrap .sc-pola.a { width: 64%; margin-left: 4%; rotate: -4deg; }
.t-scrap .sc-pola.b { width: 44%; margin: -30% 2% 0 auto; rotate: 7deg; }
.t-scrap .sc-sticker { position: absolute; top: 0; right: 4%; z-index: 3; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; rotate: 12deg;
  background: #e8604c; color: #fff8ec; text-align: center; font: 700 12px/1.05 'Space Grotesk', sans-serif; letter-spacing: .08em; box-shadow: 0 3px 10px rgba(0,0,0,.22); outline: 2px dashed rgba(255,255,255,.55); outline-offset: -7px; }
.t-scrap .sc-hand { margin: 22px 0 0; font-family: 'Nanum Pen Script', cursive; font-size: 46px; font-size: clamp(36px, 12cqw, 54px); line-height: 1; rotate: -2deg; }
.t-scrap .sc-note { position: relative; display: grid; gap: 2px; margin: 18px 8% 0; padding: 18px 18px 14px; text-align: left; rotate: 1.5deg;
  background: #fffaf0 repeating-linear-gradient(180deg, transparent 0 25px, #eadfca 25px 26px); box-shadow: 0 6px 14px rgba(60,40,20,.2); }
.t-scrap .sc-note b { font-family: 'Gamja Flower', cursive; font-size: 22px; font-weight: 400; }
.t-scrap .sc-note span { font-size: 13.5px; color: var(--im); }
.t-scrap .sec { margin: 26px 16px; padding: 44px 20px 34px; background: #fffaf0; box-shadow: 0 6px 16px rgba(60,40,20,.2); }
.t-scrap .sec:nth-of-type(odd) { rotate: -.6deg; } .t-scrap .sec:nth-of-type(even) { rotate: .6deg; }
.t-scrap .sec + .sec, .t-scrap .cover + .sec { border-top: 0; }
.t-scrap .eb { display: inline-block; margin-bottom: 18px; padding: 0 14px; background: rgba(234,196,128,.62); font-family: 'Nanum Pen Script', cursive; font-size: 28px; letter-spacing: 0; text-transform: none; color: var(--it); rotate: -2deg; }
.inv .scraps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; padding-top: 8px; }
.inv .scraps button { position: relative; padding: 7px 7px 26px; border: 0; background: #ffffff; cursor: pointer; box-shadow: 0 6px 12px rgba(60,40,20,.22); min-width: 0; }
.inv .scraps button:nth-child(odd) { rotate: -3deg; } .inv .scraps button:nth-child(even) { rotate: 2.5deg; } .inv .scraps button:nth-child(3n) { rotate: 1deg; }
.inv .scraps button:last-child:nth-child(odd) { grid-column: span 2; width: 62%; justify-self: center; }
.inv .scraps img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.inv .scraps .more { position: absolute; inset: 7px 7px 26px; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #ffffff; font-size: 18px; font-weight: 700; }
.t-scrap .ending.txt { margin: 10px 16px 0; }
.t-scrap .ending.txt p, .t-scrap .ending p { font-family: 'Nanum Pen Script', cursive; font-size: 52px; }

/* ---------- 레터프레스: 코튼지 · 음각 · 금박 ---------- */
.t-press { --ib: #f5f1e9; --it: #3a3530; --im: #8a8279; --ia0: #a8843f; --ia: #a8843f; --il: #e3dccf; --icard: #fbf8f2; --ion: #ffffff; --isun: #a8843f;
  --iph: linear-gradient(160deg, #ebe4d6, #d8cdb9); --if: 'Noto Serif KR', serif; --ih: 'Noto Serif KR', serif; --irad: 2px; --ir: 2px;
  --foil: linear-gradient(115deg, #6e5220 8%, #b8954e 32%, #7d5f26 50%, #c9a965 68%, #6e5220 92%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.t-press .cover { padding: 24px 16px 34px; }
.t-press .lp-card { position: relative; padding: 42px 22px 36px; background: #fbf8f2; border: 1px solid #ece4d6; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 40px rgba(80,60,30,.14), 0 2px 6px rgba(80,60,30,.08); }
.t-press .lp-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(168,132,63,.45); pointer-events: none; }
.t-press .lp-mono { display: flex; align-items: center; justify-content: center; gap: 4px; width: 94px; height: 94px; margin: 0 auto 20px; border-radius: 50%; border: 1.5px solid #c9a95c; font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: 28px; }
.t-press .lp-mono span, .t-press .lp-mono i, .t-press .cover h2 i, .t-press .eb, .t-press .dd b, .t-press .ending.txt p, .t-press .ending p {
  background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 7s ease-in-out infinite alternate; }
.t-press .lp-mono i { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; }
/* 음각: 종이보다 살짝 진한 색 + 아래쪽 밝은 그림자 */
.t-press .lp-k { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #b9ae99; text-shadow: 0 1px 0 #ffffff, 0 -1px 0 rgba(0,0,0,.12); }
.t-press .cover h2 { margin: 18px 0 0; display: grid; gap: 4px; font-weight: 600; font-size: 25px; letter-spacing: .22em; color: #4a443d; text-shadow: 0 1px 0 rgba(255,255,255,.95), 0 -1px 0 rgba(0,0,0,.22); }
.t-press .cover h2 i { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 20px; letter-spacing: .04em; text-shadow: none; }
.t-press .lp-inv { margin: 16px 0 0; font-size: 13.5px; color: var(--im); }
.t-press .lp-ph { width: 72%; margin: 26px auto 0; padding: 8px; background: #ffffff; box-shadow: inset 0 0 0 1px #ece4d6, 0 6px 14px rgba(0,0,0,.08); }
.t-press .lp-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.t-press .lp-date { margin: 26px 0 0; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.t-press .lp-v { margin: 4px 0 0; font-size: 13.5px; color: var(--im); }
.t-press .sec + .sec, .t-press .cover + .sec { border-top: 0; }
.t-press .sec::before { content: ""; display: block; width: 46px; height: 1px; margin: -28px auto 30px; background: linear-gradient(90deg, transparent, #c9a95c, transparent); }
.t-press .eb { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 30px; letter-spacing: .02em; text-transform: none; line-height: 1.2; }
.t-press .cal-g .on { background: var(--foil); color: #ffffff; }
.t-press .dd b { font-family: 'Cormorant Garamond', serif; font-weight: 600; }
.t-press .ibtn { border-color: #d9cdb4; }
.t-press .ibtn.solid { background: #3a3530; border-color: #3a3530; color: #f5f1e9; }
.t-press .ending.txt p, .t-press .ending p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 44px; text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .t-press .lp-mono span, .t-press .lp-mono i, .t-press .cover h2 i, .t-press .eb, .t-press .dd b, .t-press .ending.txt p, .t-press .ending p { animation: none; }
}

/* ===================== 디자인마다 고유한 움직임 =====================
   원칙: 위치(transform)·투명도만 움직여서 저사양 폰에서도 부드럽게.
   등장 장면은 "처음 열 때"만 재생 (.still 은 입력 중 미리보기: 멈춘 완성 상태).
   모든 요소의 기본 모양 = 등장이 끝난 모습. 그래서 움직임이 꺼져도 정보는 다 보여요. */
.inv.still .cover, .inv.still .cover *, .inv.still .cover::before, .inv.still .cover::after, .inv.still .cover *::before, .inv.still .cover *::after { animation: none !important; }
@keyframes mvFade { from { opacity: 0; transform: translateY(10px); } }
@keyframes mvPop { from { opacity: 0; scale: .2; } }

/* ---------- 전시: 전시장 불이 켜지고, 작품이 하나씩 조명을 받아요 ---------- */
.t-exhibit .cover { position: relative; }
.t-exhibit .cover::before { content: ""; position: absolute; inset: 0; z-index: 3; background: #0b0b0b; opacity: 0; pointer-events: none; animation: xhLights 1.8s ease .1s both; }
@keyframes xhLights { 0%, 30% { opacity: .94; } 38% { opacity: .5; } 44% { opacity: .9; } 100% { opacity: 0; } }
.t-exhibit .xh-frame { position: relative; animation: xhHang 1.1s cubic-bezier(.2,.7,.2,1) 1.2s both; }
.t-exhibit .xh-frame::before { content: ""; position: absolute; left: -30%; right: -30%; top: -46%; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,246,222,.75), rgba(255,246,222,0) 70%); }
@keyframes xhHang { from { opacity: 0; transform: translateY(16px); } }
.t-exhibit .xh-label { animation: xhLabel .8s ease 1.9s both; }
@keyframes xhLabel { from { opacity: 0; transform: translateX(16px); } }
.t-exhibit .cover h2, .t-exhibit .xh-k, .t-exhibit .xh-t { animation: mvFade .8s ease 1s both; }
.t-exhibit .xh-info { animation: mvFade .8s ease 2.2s both; }
.t-exhibit .sec.rv-in .frames figure { animation: xhOn 1s ease both; }
.t-exhibit .sec.rv-in .frames figure:nth-child(2) { animation-delay: .25s; } .t-exhibit .sec.rv-in .frames figure:nth-child(3) { animation-delay: .5s; }
.t-exhibit .sec.rv-in .frames figure:nth-child(4) { animation-delay: .75s; } .t-exhibit .sec.rv-in .frames figure:nth-child(n+5) { animation-delay: 1s; }
@keyframes xhOn { from { filter: brightness(.25) saturate(.4); } }

/* ---------- 메시지: 알림이 아래에서 하나씩 도착하고, 본문은 내릴 때마다 부드럽게 떠올라요 ---------- */
.t-chat .ch-date, .t-chat .ch-time { animation: mvFade .8s ease .2s both; }
.t-chat .ch-noti { animation: chDrop .7s cubic-bezier(.2,1,.3,1) 1s both; cursor: pointer; transition: scale .15s ease; }
.t-chat .ch-noti.s { animation-delay: 1.6s; cursor: default; }
.t-chat .ch-noti[data-noti]:active { scale: .97; }
@keyframes chDrop { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.t-chat .rv { transform: none; }
.t-chat .sec.rv-in > * { animation: chUp .9s cubic-bezier(.2,.7,.2,1) both; }
.t-chat .sec.rv-in > :nth-child(2) { animation-delay: .08s; } .t-chat .sec.rv-in > :nth-child(3) { animation-delay: .18s; }
.t-chat .sec.rv-in > :nth-child(4) { animation-delay: .3s; } .t-chat .sec.rv-in > :nth-child(5) { animation-delay: .42s; } .t-chat .sec.rv-in > :nth-child(n+6) { animation-delay: .54s; }
.t-chat .sec.rv-in .gb { animation: chUp .7s cubic-bezier(.2,.7,.2,1) both; }
.t-chat .sec.rv-in .gb:nth-child(2) { animation-delay: .15s; } .t-chat .sec.rv-in .gb:nth-child(n+3) { animation-delay: .3s; }
@keyframes chUp { from { opacity: 0; transform: translateY(16px); } }
.t-chat .ending.txt.rv-in::before { animation: chType 1.4s ease-in-out 3; }
@keyframes chType { 50% { opacity: .45; } }

/* ---------- 시네마: 암전 → 사진 → 타이틀이 모여들며 등장 (영화 오프닝) ---------- */
.t-cinema .cover::before { content: ""; position: absolute; inset: 0; z-index: 5; background: #000000; opacity: 0; pointer-events: none; animation: cnBlack 1.8s ease both; }
@keyframes cnBlack { 0%, 45% { opacity: 1; } 100% { opacity: 0; } }
/* 필름 그레인: 아주 옅게 지글거려요 */
.t-cinema .cn-ph::before { content: ""; position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: .14; animation: cnGrain 1s steps(5) infinite;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"); }
@keyframes cnGrain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -6%); } 60% { transform: translate(-4%, -3%); } 80% { transform: translate(6%, 5%); } }
.t-cinema .cn-tag { animation: mvFade 1s ease 1.5s both; }
.t-cinema .cover h2 span { animation: cnTitle 1.6s cubic-bezier(.2,.7,.2,1) 1.9s both; }
.t-cinema .cover h2 span:last-child { animation-delay: 2.2s; }
.t-cinema .cover h2 i { animation: mvFade 1s ease 2.5s both; }
@keyframes cnTitle { from { opacity: 0; letter-spacing: .35em; filter: blur(8px); } }
.t-cinema .cn-en { animation: mvFade 1.2s ease 2.9s both; }
.t-cinema .cn-date { animation: mvFade 1s ease 3.2s both; }
.t-cinema .cn-credit { animation: cnCredit 1s ease 3.5s both; }
@keyframes cnCredit { from { opacity: 0; } }
.t-cinema .cn-rate { animation: mvPop .4s ease 3.9s both; }
.t-cinema .sec.rv-in .eb { animation: cnTitle 1.3s cubic-bezier(.2,.7,.2,1) both; }
.t-cinema .ending.rv-in p { animation: cnTitle 2.2s cubic-bezier(.2,.7,.2,1) .3s both; }

/* ---------- 레터프레스: 카드가 올라오고, 금박 이니셜이 눌려 찍히고, 이름이 스며들어요 ---------- */
.t-press .lp-card { animation: lpRise 1.1s cubic-bezier(.2,.7,.2,1) .1s both; }
@keyframes lpRise { from { opacity: 0; transform: translateY(26px); } }
.t-press .lp-mono { animation: lpPress .9s cubic-bezier(.3,1.4,.5,1) .7s both; cursor: pointer; }
@keyframes lpPress { from { opacity: 0; scale: 1.25; } 60% { scale: .96; } }
.t-press .lp-k { animation: mvFade .8s ease 1.2s both; }
.t-press .cover h2 span { animation: lpInk 1.3s ease 1.4s both; }
.t-press .cover h2 span:last-child { animation-delay: 1.7s; }
@keyframes lpInk { from { opacity: 0; letter-spacing: .45em; } }
.t-press .lp-ph { animation: mvFade 1s ease 2s both; }
.t-press .lp-date, .t-press .lp-v, .t-press .lp-inv { animation: mvFade .8s ease 2.3s both; }

/* ---------- 웨딩 여권: 여권이 놓이고 → 신원면이 올라오고 → 도장이 쾅 ---------- */
.t-passport .pp-book { animation: ppIn 1s cubic-bezier(.2,.8,.2,1) .1s both; }
@keyframes ppIn { from { opacity: 0; transform: translateY(30px) rotate(-6deg) scale(.94); } }
.t-passport .pp-data { animation: ppUp .9s cubic-bezier(.2,.8,.2,1) .8s both; cursor: pointer; }
@keyframes ppUp { from { opacity: 0; transform: translateY(40px); } }
.t-passport .pp-stamp { animation: ppThunk .45s cubic-bezier(.3,1.6,.5,1) 1.8s both; }
@keyframes ppThunk { from { opacity: 0; scale: 2.3; } }
.t-passport .sec.rv-in .eb { animation: ppThunk .45s cubic-bezier(.3,1.6,.5,1) .25s both; }
/* 신원면을 누르면 그 자리에 입국 도장 */
.inv .stk { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); animation: ppThunk .4s cubic-bezier(.3,1.6,.5,1) both; }
.inv .stk-pp { padding: 6px 10px; border: 2px solid #b8322a; border-radius: 40%; color: #b8322a; font: 700 10.5px 'Space Grotesk', sans-serif; letter-spacing: .12em; opacity: .82; mix-blend-mode: multiply; white-space: nowrap; }

/* ---------- 스크랩북: 사진이 툭 떨어져 붙고, 테이프가 붙고, 손글씨가 써져요. 누르면 스티커 ---------- */
.t-scrap .sc-board { cursor: pointer; }
.t-scrap .sc-pola.a { animation: scDropA .8s cubic-bezier(.2,.9,.3,1.15) .2s both; }
@keyframes scDropA { from { opacity: 0; translate: 0 -46px; rotate: -16deg; } }
.t-scrap .sc-pola.b { animation: scDropB .8s cubic-bezier(.2,.9,.3,1.15) .65s both; }
@keyframes scDropB { from { opacity: 0; translate: 34px -30px; rotate: 20deg; } }
.t-scrap .sc-pola.a .tape { animation: scTape .35s ease 1s both; }
.t-scrap .sc-pola.b .tape { animation: scTape .35s ease 1.4s both; }
.t-scrap .sc-note .tape { animation: scTape .35s ease 2.4s both; }
@keyframes scTape { from { opacity: 0; scale: .15 1; } }
.t-scrap .sc-hand { animation: scWrite 1.3s steps(16) 1.3s both; }
@keyframes scWrite { from { clip-path: inset(0 100% 0 0); } }
.t-scrap .sc-sticker { animation: scSticker .5s cubic-bezier(.3,1.7,.5,1) 1.8s both; }
@keyframes scSticker { from { opacity: 0; scale: 0; } }
.t-scrap .sc-note { animation: scNote .7s ease 2s both; }
@keyframes scNote { from { opacity: 0; translate: 0 22px; } }
.t-scrap .sec.rv-in .scraps button { animation: scDropA .7s cubic-bezier(.2,.9,.3,1.15) both; }
.t-scrap .sec.rv-in .scraps button:nth-child(2) { animation-delay: .2s; } .t-scrap .sec.rv-in .scraps button:nth-child(3) { animation-delay: .4s; }
.t-scrap .sec.rv-in .scraps button:nth-child(4) { animation-delay: .6s; } .t-scrap .sec.rv-in .scraps button:nth-child(n+5) { animation-delay: .8s; }
.inv .stk-sc { font-size: 28px; line-height: 1; text-shadow: 0 2px 3px rgba(0,0,0,.18); animation-name: scSticker; }

/* ---------- 편지: 봉투를 누르면 덮개가 젖혀지고 편지가 나와요 ---------- */
/* 겉면에도 이름·날짜가 있어서 열지 않아도 누구 청첩장인지 보여요. 아래로 그냥 내려가면 알아서 열려요 */
.t-letter .env { position: relative; perspective: 900px; }
.t-letter .env-front { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 20px 9%;
  border-radius: 4px; text-align: center; cursor: pointer; box-shadow: 0 12px 26px rgba(75,59,43,.2);
  background: linear-gradient(to top right, transparent 49.7%, rgba(120,90,60,.16) 50%, transparent 50.3%), linear-gradient(to top left, transparent 49.7%, rgba(120,90,60,.16) 50%, transparent 50.3%), #ecdcbf;
  transition: transform .85s cubic-bezier(.5,0,.2,1) .35s, opacity .6s ease .5s; }
.t-letter .env-to { font-family: 'Nanum Pen Script', cursive; font-size: 22px; color: var(--im); }
.t-letter .env-front b { font-family: var(--ih); font-size: 23px; font-weight: 400; }
.t-letter .env-date { font-family: 'Space Grotesk', sans-serif; font-size: 13px; letter-spacing: .08em; color: var(--im); }
.t-letter .env-flap { position: absolute; left: 0; right: 0; top: 0; height: 38%; z-index: 4; background: #e2cda6; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top;
  transition: transform .6s ease, opacity .3s ease .45s; pointer-events: none; }
.t-letter .env-seal { position: absolute; left: 50%; top: 38%; z-index: 5; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #d65a4c, #9c2e24); color: #f8e1d6; font-size: 21px; box-shadow: 0 3px 9px rgba(80,20,10,.35), inset 0 0 0 4px rgba(0,0,0,.1);
  animation: envPulse 2.4s ease-in-out 1s infinite; transition: opacity .3s ease, scale .3s ease; }
@keyframes envPulse { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
.t-letter .paper { transition: transform 1s cubic-bezier(.2,.7,.2,1) .6s; }
.t-letter .env:not(.open) .paper { transform: scale(.96); }
.t-letter .env.open .env-flap { transform: rotateX(180deg); opacity: 0; }
.t-letter .env.open .env-seal { opacity: 0; scale: .5; pointer-events: none; animation: none; }
.t-letter .env.open .env-front { transform: translateY(65%); opacity: 0; pointer-events: none; }

/* ---------- 티켓: 기계에서 나오듯 올라오고, 바코드가 한 번 읽혀요. 절취선 아래를 누르면 뜯겨요 ---------- */
.t-ticket .tk { animation: tkIn .9s cubic-bezier(.2,.8,.2,1) .15s both; }
@keyframes tkIn { from { opacity: 0; transform: translateY(60px) rotate(3deg); } }
.t-ticket .tk-stub { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; transform-origin: 0 0;
  transition: transform .6s cubic-bezier(.5,0,.3,1), opacity .5s ease .1s; }
.t-ticket .tk-stub:not(.torn) { animation: tkWiggle 5s ease-in-out 2.6s infinite; }
@keyframes tkWiggle { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-1.2deg); } 96% { transform: rotate(.8deg); } }
.t-ticket .tk-stub.torn { transform: translateY(24px) rotate(6deg); opacity: .28; }
.t-ticket .tk-stub .bar { position: relative; overflow: hidden; }
.t-ticket .tk-stub .bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 110%; width: 22%; background: linear-gradient(90deg, transparent, rgba(214,69,47,.75), transparent); animation: tkScan 1.3s ease 1.2s both; }
@keyframes tkScan { from { left: -22%; } to { left: 110%; } }
.t-ticket .tk-ok { position: absolute; right: 16px; top: 44%; z-index: 3; padding: 6px 12px; border: 3px double #d6452f; color: #d6452f; text-align: center; pointer-events: none;
  font: 800 13px 'Space Grotesk', sans-serif; letter-spacing: .14em; mix-blend-mode: multiply; opacity: 0; transform: rotate(-12deg) scale(2.2); transition: opacity .2s ease, transform .35s cubic-bezier(.3,1.6,.5,1); }
.t-ticket .tk-ok b { display: block; font-family: 'Pretendard', sans-serif; font-size: 12px; letter-spacing: .3em; }
.t-ticket .tk-ok.on { opacity: .88; transform: rotate(-12deg) scale(1); }

/* ---------- 모던 한지: 붓글씨가 위에서부터 써지고, 낙관이 쿵. 낙관을 누르면 다시 찍혀요 ---------- */
.t-hanji .hj-ph img { animation: hjMist 1.4s ease .2s both; }
@keyframes hjMist { from { opacity: 0; filter: blur(6px); } }
.t-hanji .hj-v { animation: hjInk 1.8s steps(18) .6s both; }
@keyframes hjInk { from { clip-path: inset(0 0 100% 0); } }
.t-hanji .hj-seal { border: 0; padding: 0; cursor: pointer; animation: hjSeal .5s cubic-bezier(.3,1.6,.5,1) 2.3s both; }
.t-hanji .hj-seal.press { animation-delay: 0s; }
@keyframes hjSeal { from { opacity: 0; scale: 2.4; } }
.t-hanji .cover.np .hj-seal { position: relative; }
.t-hanji .hj-seal::after { content: ""; position: absolute; inset: -6px; border: 2px solid rgba(178,58,43,.45); border-radius: 8px; opacity: 0; pointer-events: none; }
.t-hanji .hj-seal.press::after { animation: hjRing .7s ease-out both; }
@keyframes hjRing { from { opacity: .9; scale: .8; } to { opacity: 0; scale: 1.5; } }
.t-hanji .cover h2, .t-hanji .cover .d { animation: mvFade .9s ease 2.6s both; }
.t-hanji .sec.rv-in .eb::before, .t-hanji .sec.rv-in .eb::after { animation: hjLine .9s ease .2s both; }
@keyframes hjLine { from { width: 0; } }

/* ---------- 호외: 영화 속 신문처럼 빙글빙글 돌며 날아와 멈춰요. 號外를 누르면 다시 ---------- */
/* 호외: 신문이 인쇄되듯 — 제호가 찍히고, 이중선이 그어지고, 헤드라인이 잉크처럼 스며들고, 사진이 현상돼요. 號外를 누르면 다시 */
.t-extra .ex-mast { animation: mvFade .6s ease .1s both; }
.t-extra .ex-name { animation: exInk 1s ease .3s both; }
@keyframes exInk { from { opacity: 0; filter: blur(3px); transform: scale(1.04); } }
.t-extra .ex-bar { animation: exRule .8s cubic-bezier(.6,0,.2,1) .8s both; }
@keyframes exRule { from { clip-path: inset(0 100% 0 0); } }
.t-extra .ex-bar span[data-replay] { cursor: pointer; animation: ppThunk .45s cubic-bezier(.3,1.6,.5,1) 1.5s both; }
.t-extra .ex-head { animation: exInk 1.1s ease 1.2s both; }
.t-extra .ex-sub { animation: mvFade .7s ease 1.7s both; }
.t-extra .ex-fig img { animation: exDevelop 1.8s ease 1.6s both; }
@keyframes exDevelop { from { opacity: 0; filter: grayscale(1) contrast(1.8) brightness(1.5); } }
.t-extra .ex-fig figcaption, .t-extra .ex-lead { animation: mvFade .8s ease 2.4s both; }

/* 누를 수 있는 곳 알림 (글자 대신). 3번 톡톡 나타났다 사라져요 */
.t-chat .ch-noti { position: relative; }
.inv .tap-hint { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 6; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 6px, rgba(0,0,0,.18) 7px, transparent 8.5px); animation: tapDot 1.3s ease-in-out 3 both; }
.inv .tap-hint::before, .inv .tap-hint::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.22); opacity: 0; animation: tapRing 1.3s ease-out 3 both; }
.inv .tap-hint::after { animation-delay: .35s; }
@keyframes tapRing { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes tapDot { 0%, 100% { opacity: 0; scale: .6; } 15%, 60% { opacity: 1; scale: 1; } 35% { scale: .85; } }

/* 만들기 화면: 접힌 칸을 펼칠 때 부드럽게 */
.fold[open] > .fold-in, .par[open] > .row2, details.addacc[open] > .accp, details.mini[open] > .f { animation: foldIn .3s ease both; }
@keyframes foldIn { from { opacity: 0; transform: translateY(-6px); } }
#pv1 .replay { display: inline; }

/* 움직임 줄이기 설정: 등장 장면·반복 움직임을 모두 끄고, 봉투·티켓은 바로 바뀌게 */
@media (prefers-reduced-motion: reduce) {
  .inv .cover, .inv .cover *, .inv .sec *, .inv .ending *, .inv .stk,
  .inv .cover::before, .inv .cover::after, .inv .cover *::before, .inv .cover *::after, .inv .sec *::before, .inv .sec *::after { animation: none !important; }
  .t-letter .env *, .t-ticket .tk-stub, .t-ticket .tk-ok, .t-chat .ch-noti { transition: none !important; }
  .inv .tap-hint { display: none; }
  .fold[open] > .fold-in, .par[open] > .row2, details.addacc[open] > .accp, details.mini[open] > .f { animation: none; }
}

/* ---------- 레코드: LP 앨범 + 플레이어. 재생 버튼을 누르면 레코드판이 돌고 배경음악이 나와요 ---------- */
.t-record { --ib: #efe7da; --it: #241f1a; --im: #7b7064; --ia0: #2f6f6a; --ia: #2f6f6a; --il: #ddd2c0; --icard: #f8f3ea; --ion: #ffffff; --isun: #c4553a;
  --iph: linear-gradient(150deg, #2f6f6a, #1d3f3c); --if: 'Pretendard', sans-serif; --ih: 'Pretendard', sans-serif; --irad: 10px; --ir: 10px; counter-reset: trk; }
.t-record :is(.ibtn, details, .info, .seg button, form input, form select, form textarea, .thanks, .gb, .mosaic button) { border-radius: var(--ir); }
.t-record .cover { padding: 30px 22px 40px; text-align: left; overflow: hidden; }
.t-record .rc-stage { position: relative; width: 70%; aspect-ratio: 1; margin-left: 2%; }
.t-record .rc-jacket { position: absolute; inset: 0; z-index: 2; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 36px rgba(36,31,26,.3), 0 2px 6px rgba(0,0,0,.14);
  animation: rcIn .9s cubic-bezier(.2,.8,.2,1) .1s both; }
.t-record .rc-jacket img, .t-record .rc-jacket .ph { width: 100%; height: 100%; object-fit: cover; display: grid; }
.t-record .rc-jacket .ph-t { font-size: 30px; }
@keyframes rcIn { from { opacity: 0; transform: translateX(-30px); } }
/* 레코드판: 홈이 파인 검은 판 + 가운데 라벨 (라벨 글씨도 같이 돌아요) */
.t-record .rc-disc { position: absolute; top: 3%; left: 3%; width: 94%; aspect-ratio: 1; z-index: 1; border-radius: 50%; translate: 36% 0;
  background: conic-gradient(from 20deg, rgba(255,255,255,0) 0, rgba(255,255,255,.13) 8%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 50%, rgba(255,255,255,.1) 58%, rgba(255,255,255,0) 68%),
    repeating-radial-gradient(circle, #151515 0 2px, #262626 2px 3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.3); animation: rcOut 1s cubic-bezier(.2,.8,.2,1) .8s both, rcSpin 3.6s linear 1.8s infinite; animation-play-state: running, paused; }
.t-record .cover.playing .rc-disc { animation-play-state: running, running; }
@keyframes rcOut { from { translate: 0 0; } }
@keyframes rcSpin { to { rotate: 360deg; } }
.t-record .rc-label { position: absolute; inset: 31%; border-radius: 50%; background: var(--ia); color: #f3ede2; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.t-record .rc-label b { font-size: 10px; font-weight: 800; }
.t-record .rc-label i { font-style: normal; font-size: 9px; opacity: .8; }
.t-record .rc-label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ib); }
.t-record .rc-now { margin: 28px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--ia); animation: mvFade .7s ease 1.2s both; }
/* 재생 중이면 "Now Playing" 옆에 작은 이퀄라이저 */
.t-record .cover.playing .rc-now::after { content: ""; display: inline-block; width: 13px; height: 10px; margin-left: 8px; vertical-align: -1px;
  background: linear-gradient(var(--ia), var(--ia)) 0 100% / 3px 40% no-repeat, linear-gradient(var(--ia), var(--ia)) 5px 100% / 3px 90% no-repeat, linear-gradient(var(--ia), var(--ia)) 10px 100% / 3px 60% no-repeat;
  animation: rcEq .8s ease-in-out infinite alternate; }
@keyframes rcEq { to { background-size: 3px 90%, 3px 30%, 3px 100%; } }
.t-record .cover h2 { margin: 0; font-weight: 800; font-size: 26px; font-size: clamp(22px, 7.4cqw, 28px); letter-spacing: -.02em; line-height: 1.25; animation: mvFade .8s ease 1.35s both; }
.t-record .rc-artist { margin: 2px 0 0; font-size: 13.5px; color: var(--im); animation: mvFade .8s ease 1.5s both; }
.t-record .rc-bar { position: relative; height: 4px; margin-top: 20px; border-radius: 2px; background: var(--il); }
.t-record .rc-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--it); animation: rcFill 1.6s cubic-bezier(.3,.7,.2,1) 1.6s both; }
.t-record .rc-knob { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--it); animation: rcKnob 1.6s cubic-bezier(.3,.7,.2,1) 1.6s both; }
@keyframes rcFill { from { width: 0; } }
@keyframes rcKnob { from { left: 0; } }
.t-record .rc-time { display: flex; justify-content: space-between; margin-top: 7px; font: 500 12px 'Space Grotesk', sans-serif; color: var(--im); font-variant-numeric: tabular-nums; }
.t-record .rc-ctrl { display: flex; justify-content: center; align-items: center; gap: 36px; margin-top: 14px; animation: mvFade .8s ease 2s both; }
.t-record .rc-ic { position: relative; width: 20px; height: 18px; opacity: .75; }
.t-record .rc-ic.prev { background: linear-gradient(var(--it), var(--it)) left center / 3px 16px no-repeat; }
.t-record .rc-ic.prev::after { content: ""; position: absolute; left: 5px; top: 1px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 14px solid var(--it); }
.t-record .rc-ic.next { background: linear-gradient(var(--it), var(--it)) right center / 3px 16px no-repeat; }
.t-record .rc-ic.next::after { content: ""; position: absolute; right: 5px; top: 1px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 14px solid var(--it); }
.t-record .rc-play { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border: 0; border-radius: 50%; background: var(--it); cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.22); transition: scale .15s ease; }
.t-record .rc-play:active { scale: .94; }
.t-record .rc-play i { width: 0; height: 0; margin-left: 5px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid var(--ib); }
.t-record .cover.playing .rc-play i { width: 18px; height: 20px; margin: 0; border: 0; background: linear-gradient(90deg, var(--ib) 0 6px, transparent 6px 12px, var(--ib) 12px 18px); }
/* 본문: 앨범 수록곡 목록처럼 "01 Invitation ♪" */
.t-record .sec { padding: 48px 22px; text-align: left; }
.t-record .sec:has(.eb) { counter-increment: trk; }
.t-record .eb { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--il); font: 800 16px 'Pretendard', sans-serif; letter-spacing: 0; text-transform: none; color: var(--it); }
.t-record .eb::before { content: counter(trk, decimal-leading-zero); font: 600 12px 'Space Grotesk', sans-serif; color: var(--ia); }
.t-record .eb::after { content: "♪"; margin-left: auto; font-size: 13px; color: var(--im); }
.t-record .parents { justify-content: start; }
.t-record .cal { margin-left: 0; max-width: none; }
.t-record .dd { justify-items: start; }
.t-record .dd b { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: 0; color: var(--ia); }
.t-record .mosaic button { border-radius: 4px; }
.t-record .ending.txt { text-align: left; padding-left: 22px; padding-right: 22px; }
.t-record .ending.txt p, .t-record .ending p { font-family: 'Pretendard', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.02em; }

/* ---------- 포토부스: 출력구에서 네 컷 사진이 인쇄돼 나오고, 누르면 뒤집혀요 ---------- */
.t-booth { --ib: #f2f0ee; --it: #151515; --im: #77726d; --ia0: #e94d7c; --ia: #e94d7c; --il: #e1ddd8; --icard: #ffffff; --ion: #ffffff; --isun: #e94d7c;
  --iph: linear-gradient(160deg, #f7d6e0, #f3e3c7); --if: 'Pretendard', sans-serif; --ih: 'Pretendard', sans-serif; --irad: 4px; --ir: 8px; counter-reset: cut; }
.t-booth :is(.ibtn, details, .info, .seg button, form input, form select, form textarea, .thanks, .gb) { border-radius: var(--ir); }
.t-booth .cover { position: relative; padding: 0 16px 40px; }
/* 찰칵: 플래시가 한 번 번쩍 */
.t-booth .cover::before { content: ""; position: absolute; inset: 0; z-index: 5; background: #ffffff; opacity: 0; pointer-events: none; animation: btFlash 1s ease .2s both; }
@keyframes btFlash { 0% { opacity: 0; } 10% { opacity: .95; } 100% { opacity: 0; } }
.t-booth .bt-slot { display: flex; align-items: center; justify-content: center; height: 26px; margin: 0 -16px; background: #1d1d1d; border-radius: 0 0 14px 14px; box-shadow: inset 0 -6px 10px rgba(0,0,0,.4); }
.t-booth .bt-slot i { width: 52%; height: 5px; border-radius: 3px; background: #000000; box-shadow: inset 0 1px 2px rgba(255,255,255,.15); }
.t-booth .bt-row { display: grid; grid-template-columns: 48% minmax(0, 1fr); gap: 16px; align-items: start; }
.t-booth .bt-out { overflow: hidden; margin: -4px -16px 0; padding: 0 16px 34px; }
.t-booth .bt-strip { position: relative; cursor: pointer; transform: perspective(1000px) rotateY(0deg); transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3,.7,.2,1);
  animation: btPrint 1.7s cubic-bezier(.35,.6,.2,1) .45s both; }
.t-booth .bt-strip.flip { transform: perspective(1000px) rotateY(180deg); }
@keyframes btPrint { from { translate: 0 -102%; } }
.t-booth .bt-front, .t-booth .bt-back { -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 3px; box-shadow: 0 10px 18px rgba(0,0,0,.2); }
.t-booth .bt-front { display: grid; gap: 6px; padding: 8px 8px 0; background: #111111; }
.t-booth .bt-front img, .t-booth .bt-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; }
.t-booth .bt-ph { background: var(--iph); color: #ffffff; font-size: 22px; }
.t-booth .bt-front img { animation: btDev 1.4s ease 1.3s both; }
.t-booth .bt-front img:nth-of-type(2) { animation-delay: 1.6s; } .t-booth .bt-front img:nth-of-type(3) { animation-delay: 1.9s; } .t-booth .bt-front img:nth-of-type(4) { animation-delay: 2.2s; }
@keyframes btDev { from { filter: brightness(2.4) saturate(0); } }
.t-booth .bt-brand { margin: 4px 0 0; color: #ffffff; font-size: 12px; font-weight: 700; text-align: center; letter-spacing: .04em; }
.t-booth .bt-date { margin: 0; padding-bottom: 9px; color: rgba(255,255,255,.7); font: 500 10px 'Space Grotesk', sans-serif; letter-spacing: .14em; text-align: center; }
.t-booth .bt-back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; border: 8px solid #111111; background: #ffffff; color: var(--it); text-align: center; }
.t-booth .bt-back p { margin: 0; font-size: 13px; line-height: 1.55; }
.t-booth .bt-back .bt-hand { margin-bottom: 8px; font-family: 'Nanum Pen Script', cursive; font-size: 36px; line-height: 1.05; }
.t-booth .bt-heart { color: var(--ia); font-size: 22px; }
.t-booth .bt-side { display: grid; gap: 10px; padding-top: 28px; text-align: left; animation: mvFade .8s ease 2.4s both; }
.t-booth .bt-k { margin: 0; font-family: 'Bebas Neue', sans-serif; font-size: 36px; line-height: .95; letter-spacing: .04em; color: var(--ia); }
.t-booth .cover h2 { margin: 0; font-weight: 800; font-size: 20px; font-size: clamp(17px, 5.6cqw, 22px); line-height: 1.3; letter-spacing: -.02em; }
.t-booth .cover h2 i { font-style: normal; font-weight: 400; color: var(--im); }
.t-booth .cover .d { margin: 0; font-family: 'Pretendard', sans-serif; font-size: 13px; line-height: 1.6; color: var(--im); }
/* 본문: 사진관 번호표처럼 "#1 초대" */
.t-booth .sec:has(.eb) { counter-increment: cut; }
.t-booth .eb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--it); color: #ffffff; font: 700 12px 'Pretendard', sans-serif; letter-spacing: .04em; text-transform: none; }
.t-booth .eb::before { content: "#" counter(cut); color: var(--ia); }
.t-booth .sec + .sec, .t-booth .cover + .sec { border-top: 1px dashed var(--il); }
.inv .strips { display: flex; gap: 14px; overflow-x: auto; padding: 6px 6px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.inv .strips::-webkit-scrollbar { display: none; }
.inv .strip { flex: none; width: 45%; display: grid; gap: 5px; padding: 6px 6px 0; background: #111111; border-radius: 3px; box-shadow: 0 10px 20px rgba(0,0,0,.2); scroll-snap-align: start; }
.inv .strip:nth-child(odd) { rotate: -1.5deg; } .inv .strip:nth-child(even) { rotate: 2deg; }
.inv .strip button { padding: 0; border: 0; cursor: pointer; background: #222222; }
.inv .strip img, .inv .strip .bt-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; }
.inv .strip .bt-ph { background: linear-gradient(160deg, #f7d6e0, #f3e3c7); color: #ffffff; font-size: 18px; }
.inv .strip p { margin: 2px 0 7px; color: #ffffff; font-size: 10px; font-weight: 700; text-align: center; }
.t-booth .sec.rv-in .strip { animation: btStrip 1.2s cubic-bezier(.35,.6,.2,1) both; }
.t-booth .sec.rv-in .strip:nth-child(2) { animation-delay: .3s; } .t-booth .sec.rv-in .strip:nth-child(3) { animation-delay: .6s; }
@keyframes btStrip { from { clip-path: inset(0 0 100% 0); } }
.t-booth .ending.txt p, .t-booth .ending p { font-family: 'Pretendard', sans-serif; font-weight: 900; font-size: 34px; letter-spacing: -.02em; }
.t-booth .tap-hint { transform: translateZ(1px); }

@media (prefers-reduced-motion: reduce) {
  .t-record .rc-disc { animation: none !important; }
  .t-booth .bt-strip { transition: none !important; }
}
/* 디데이 숫자도 디자인 글꼴로 (명조로 튀지 않게) */
.t-booth .dd b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 44px; letter-spacing: .04em; }
.t-scrap .dd b { font-family: var(--ih); font-weight: 400; font-size: 40px; letter-spacing: 0; }
