/* =====================================================================
   조범현 ♥ 김연경 모바일 청첩장
   레퍼런스(theirmood) 레이아웃 · 라이트 테마
   ===================================================================== */

:root {
  /* 레퍼런스 실측값 — 카드 배경은 순백(#fff)이 아니라 #fafafa 입니다 */
  --bg:        #fafafa;
  --ink:       #1a1a1a;   /* --label-primary   */
  --sub:       #4d4c4c;   /* --label-secondary */
  --mute:      #999999;   /* --label-tertiary  */
  --faint:     #b6b6bb;
  --line:      #eeeeee;
  --line-2:    rgba(64, 64, 64, .16);
  --sheet:     #faf8f5;
  --accent:    #627528;   /* 종이 청첩장 하트 초록 (실측) */
  --accent-dk: #4e5f1f;   /* 글자·아이콘용 진한 초록 */
  --sun:       #c0563f;   /* 달력 일요일 — 초록과 어울리는 벽돌빛 */

  --shell:     425px;   /* 데어무드 카드 폭 실측 (.phone max-width) */
  --drawer:    #ededed;   /* 메뉴 드로어 배경 */
  --open-bg:   #f9f4ee;   /* 오프닝 바탕 */

  /* 레퍼런스와 동일한 폰트 구성 */
  --ko:     'Gowun Dodum', 'Apple SD Gothic Neo', sans-serif;     /* 한글 본문 */
  --ui:     'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif; /* UI · 라벨 */
  --en:     'Crimson Pro', serif;                                  /* 영문 소제목 */
  --num:    'Inter', 'Pretendard Variable', sans-serif;            /* 배너 영문 · 숫자 */
  --serif:  'Noto Serif KR', 'Noto Serif', serif;
  --serif-en: 'Noto Serif', serif;
  --script: 'Great Vibes', 'Italianno', cursive;                   /* 필기체 — 레퍼런스 히어로 글씨와 가장 가까움 */

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 클래스의 display 값이 [hidden] 을 덮지 않도록 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ededed;
  font-family: var(--ko);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

img { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input, textarea { font-family: inherit; font-size: 15px; }
a { color: inherit; text-decoration: none; }

.shell {
  position: relative;
  width: 100%; max-width: var(--shell);
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 520px) {
  .shell { min-height: 100vh; box-shadow: 0 0 60px rgba(0, 0, 0, .12); }
}

/* =====================================================================
   섹션 공통
   ===================================================================== */
/* 여백은 레퍼런스 실측값 — 섹션 60/32, 배너 40/16 */
.sec { padding: 60px 32px; text-align: center; }
.sec--flush { padding-left: 0; padding-right: 0; }
.sec--flush > .sec-head, .sec--flush > .lead, .sec--flush > .btn-wrap { padding-left: 32px; padding-right: 32px; }

.eng-title {
  font-family: var(--en);
  font-size: 14px; font-weight: 400; letter-spacing: 2px; line-height: 22px;
  color: var(--ink); margin: 0; text-transform: uppercase;
}
.ko-title {
  font-family: var(--ko);
  font-size: 18px; font-weight: 400; line-height: 28px;
  color: var(--ink); margin: 0;
}
.lead {
  margin: 24px 0 0;
  font-size: 14px; line-height: 25px; color: var(--sub); word-break: keep-all;
}
.lead--sm { font-size: 14px; color: var(--sub); }
.btn-wrap { margin-top: 28px; }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.hr--short { width: 40px; margin: 0 auto; background: var(--ink); opacity: .85; }

/* 등장 애니메이션 — 레퍼런스가 쓰는 AOS fade-up 과 동일
   (translate3d(0,100px,0) → 0, opacity 0 → 1, 0.8s ease-in-out) */
.js .reveal {
  opacity: 0; transform: translate3d(0, 100px, 0);
  transition: opacity .8s ease-in-out, transform .8s ease-in-out;
}
.js .reveal.in { opacity: 1; transform: translateZ(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   버튼 — 레퍼런스와 동일 (흰 배경 · 얇은 테두리 · radius 12)
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 190px; padding: 12px 22px;
  background: #fff; color: var(--ink);
  border: .8px solid var(--line);
  border-radius: 12px;
  font-size: 14px; font-weight: 400; letter-spacing: -.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .16s var(--ease);
}
.btn:hover { background: #fafafa; border-color: #e0e0e0; }
.btn:active { transform: scale(.985); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn--block { width: 100%; }
.btn--wide { min-width: 240px; }
.btn--ink { border-color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: #fff; }
.btn--sm { min-width: 0; padding: 11px 6px; font-size: 12px; border-color: var(--line-2); border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: default; }

.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; min-width: 0; }

/* =====================================================================
   오프닝 모션 — 레퍼런스와 동일한 5초 인트로
   첫 장면이 좌로 흐르다 흰 플래시로 두 번째 장면으로 넘어가고,
   두 번째 장면이 천천히 확대되다 밝아지며 사라집니다.
   ===================================================================== */
.opening { display: none; }
.js .opening {
  display: block;
  position: fixed; inset: 0; z-index: 200;
  margin: auto; width: 100%; max-width: var(--shell);
  background: #fff; overflow: hidden;
}
.opening__bg { position: absolute; inset: 0; z-index: 10; overflow: hidden; }
.opening__bgdiv {
  position: relative; width: 100%; height: 100%;
  background: var(--open-bg); overflow: hidden; opacity: 1;
}
.opening__bgdiv > img {
  position: absolute; top: 0; left: 0; right: 0; margin: auto;
  max-width: none;                 /* 전역 img{max-width:100%} 무력화 */
  object-fit: cover; object-position: center center;
}
.opening__bgdiv > .img_01 { z-index: 2; width: 120%; height: 100%; opacity: 1; transform: translateX(0); }
.opening__bgdiv > .img_02 { z-index: 1; width: 100%;  height: 100%; opacity: 1; transform: scale(1); }
.opening__overlay {
  position: absolute; inset: 0; z-index: 11; margin: auto;
  width: 100%; height: 100%;
  background: var(--open-bg); opacity: .4;
}
/* 데어무드 .skip-btn 실측값 그대로 */
.opening__skip {
  position: absolute; top: calc(24px + env(safe-area-inset-top)); right: 20px; z-index: 999;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 4px 12px; border-radius: 8px;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  color: #fff; font-family: var(--ui); font-size: 14px; font-weight: 400; line-height: 22px;
  opacity: 0; animation: openTextIn .5s var(--ease) .6s forwards;
}
.opening__skip:active { transform: scale(.96); }

.opening__text {
  position: absolute; left: 0; right: 0; bottom: 4%; margin: auto;
  z-index: 20; width: 90%; text-align: center;
  color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.opening__text span {
  font-family: var(--script); font-size: 54px; line-height: 1.05;
  opacity: 0; animation: openTextIn 1.6s var(--ease) .5s forwards;
}

.opening.play .opening__bgdiv          { animation: op_wrap 5s linear forwards; }
.opening.play .opening__overlay        { animation: op_overlay 5s linear forwards; }
.opening.play .opening__bgdiv > .img_01 { animation: op_move_x 2s linear forwards, op_fade_1 5s linear forwards; }
.opening.play .opening__bgdiv > .img_02 { animation: op_scale_up 5s linear forwards, op_fade_2 5s linear forwards; }

@keyframes op_move_x   { 0% { transform: translateX(0); }   100% { transform: translateX(-10%); } }
@keyframes op_fade_1   { 0%, 40.3% { opacity: 1; } 40.4%, 100% { opacity: 0; } }
@keyframes op_scale_up { 0%, 40% { transform: scale(1); }   100% { transform: scale(1.15); } }
@keyframes op_fade_2   { 0%, 74% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes op_overlay  {
  0%, 25.3% { opacity: .4; } 40.3% { opacity: 1; } 44% { opacity: .4; }
  80% { opacity: .4; } 84.7% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes op_wrap     { 0%, 84.7% { opacity: 1; } 94.7% { opacity: .3; } 100% { opacity: 0; } }
@keyframes openTextIn  { to { opacity: 1; } }

.opening.done { opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .js .opening { display: none; } }

/* =====================================================================
   고정 UI — BGM · 메뉴
   ===================================================================== */
.fixed-ui {
  position: fixed; z-index: 70;
  top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--shell); pointer-events: none;
}
.bgm-btn {
  position: absolute; right: 15px; top: calc(15px + env(safe-area-inset-top));
  pointer-events: auto;
  width: 32px; height: 24px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  background: rgba(26, 26, 26, .4);
  transition: background .2s var(--ease);
}
.bgm-btn:hover { background: rgba(26, 26, 26, .62); }
.bgm-btn i { display: block; width: 2px; border-radius: 1px; background: #fff; height: 5px; transition: height .2s var(--ease); }
.bgm-btn.playing i { animation: eq .9s ease-in-out infinite; }
.bgm-btn.playing i:nth-child(1) { animation-delay: 0s; }
.bgm-btn.playing i:nth-child(2) { animation-delay: .18s; }
.bgm-btn.playing i:nth-child(3) { animation-delay: .36s; }
.bgm-btn.playing i:nth-child(4) { animation-delay: .12s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 13px; } }
.bgm-btn.muted i { height: 4px; opacity: .5; }

/* ---------- 플로팅 메뉴 버튼 ---------- */
.float-btn {
  pointer-events: auto;
  width: 48px; height: 48px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(250, 250, 250, .6);
  border: .8px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .12), 0 4px 12px -4px rgba(0, 0, 0, .12);
  transition: background .2s var(--ease);
}
.float-btn:hover { background: rgba(255, 255, 255, .9); }
.float-btn svg { width: 24px; height: 24px; color: var(--ink); }

.menu-btn {
  position: absolute; right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 31;
}
.menu-btn svg { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }

/* =====================================================================
   메뉴 드로어 — 레퍼런스와 동일 (전체 화면 · 좌측 미니 카드 · 하단 탭바)
   ===================================================================== */
.drawer {
  position: fixed; inset: 0; z-index: 1000;
  margin: auto; width: 100%; max-width: var(--shell);
  background: var(--drawer);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.drawer.open { opacity: 1; visibility: visible; }

.drawer__header {
  flex: none; height: 60px; padding: 0 16px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-top: env(safe-area-inset-top);
}
.drawer__close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.drawer__close svg { width: 20px; height: 20px; color: var(--sub); }

.drawer__body {
  flex: 1; min-height: 0;
  display: flex; gap: 24px; padding: 0 8px 8px;
}

/* 왼쪽 — 축소된 청첩장 카드 */
.drawer__card {
  flex: none; width: 131px; align-self: center;
  position: relative; aspect-ratio: 9 / 16;
  border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: opacity .45s var(--ease) .06s, transform .45s var(--ease) .06s;
}
.drawer.open .drawer__card { opacity: 1; transform: none; }
.drawer__card img { width: 100%; height: 100%; object-fit: cover; }
.drawer__card-txt {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 8px 10px; text-align: center; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
}
.drawer__card-txt span { display: block; font-size: 11px; letter-spacing: .4px; }
.drawer__card-txt i { font-style: normal; margin: 0 3px; opacity: .85; }
.drawer__card-txt small { display: block; margin-top: 2px; font-family: var(--ui); font-size: 8.5px; opacity: .8; }

/* 오른쪽 — 메뉴 */
.drawer__scroll {
  flex: 1; min-width: 0; overflow-y: auto; align-self: center;
  max-height: 100%; padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}
.drawer__scroll::-webkit-scrollbar { display: none; }

.action-list { display: flex; flex-direction: column; padding: 0 8px; }
.action-item {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 0; border-radius: 8px; text-align: left;
  opacity: 0; transform: translateX(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.drawer.open .action-item { opacity: 1; transform: none; }
.drawer.open .action-item:nth-child(2) { transition-delay: .05s; }
.action-icon { flex: none; width: 20px; height: 20px; display: flex; }
.action-icon svg { width: 20px; height: 20px; color: var(--ink); }
.action-label {
  font-family: var(--ui); font-size: 14px; font-weight: 500;
  line-height: 22px; color: #1a1a1a;
}

.menu-divider { height: 1px; margin: 8px; background: rgba(26, 26, 26, .12); }

.section-list { display: flex; flex-direction: column; padding: 0 8px; }
.section-item {
  padding: 8px 0; border-radius: 8px; text-align: left;
  font-family: var(--ui); font-size: 14px; font-weight: 500;
  line-height: 22px; color: rgba(26, 26, 26, .62);
  opacity: 0; transform: translateX(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s;
}
.drawer.open .section-item { opacity: 1; transform: none; }
.section-item:hover { color: #1a1a1a; }
.drawer.open .section-item:nth-child(1)  { transition-delay: .08s; }
.drawer.open .section-item:nth-child(2)  { transition-delay: .11s; }
.drawer.open .section-item:nth-child(3)  { transition-delay: .14s; }
.drawer.open .section-item:nth-child(4)  { transition-delay: .17s; }
.drawer.open .section-item:nth-child(5)  { transition-delay: .20s; }
.drawer.open .section-item:nth-child(6)  { transition-delay: .23s; }
.drawer.open .section-item:nth-child(7)  { transition-delay: .26s; }
.drawer.open .section-item:nth-child(8)  { transition-delay: .29s; }
.drawer.open .section-item:nth-child(9)  { transition-delay: .32s; }
.drawer.open .section-item:nth-child(10) { transition-delay: .35s; }
.drawer.open .section-item:nth-child(11) { transition-delay: .38s; }

/* 하단 탭바 — 리마인더 · 링크복사 · 카카오톡 공유 */
.drawer__tabbar {
  flex: none; height: 88px; padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; align-items: center; justify-content: center;
}
.tab-item {
  flex: 1; max-width: 110px; height: 88px; padding: 8px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.tab-icon { width: 16px; height: 16px; display: flex; }
.tab-icon svg { width: 16px; height: 16px; color: var(--ink); }
.tab-label {
  font-family: var(--ui); font-size: 12px; font-weight: 600;
  line-height: 18px; color: #1a1a1a; text-align: center;
}
.tab-item.done .tab-label { color: var(--accent-dk); }

/* =====================================================================
   히어로 — 사진 + 떨어지는 데이지 꽃잎 (오프닝: sticky 패럴랙스)
   본문이 히어로 위로 덮으며 올라옵니다.
   ===================================================================== */
.hero {
  position: sticky; top: 0; z-index: 0;
  width: 100%; aspect-ratio: 375 / 563; overflow: hidden; background: #ddd;
}
/* 히어로 아래 본문은 흰 배경을 깔고 위로 덮습니다 */
.sheet { position: relative; z-index: 1; background: var(--bg); }
.hero__media, .hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* 스크롤에 따라 표지가 살짝 확대되며 어두워지고, 시트가 위를 덮습니다 */
.hero__media {
  transform: scale(var(--hero-scale, 1));
  transform-origin: 50% 40%;
  will-change: transform;
}
.hero__dim {
  position: absolute; inset: 0; z-index: 12; pointer-events: none;
  background: #14160d; opacity: var(--hero-dim, 0);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,.30) 100%);
}
.hero__text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 13;
  padding: 0 12px 20px; color: #fff;
  transform: translateY(var(--hero-lift, 0px));
}
/* 레퍼런스처럼 화면 폭을 거의 채우는 큰 필기체.
   글자 크기를 화면 폭에 비례시켜 어떤 기기에서도 같은 비율로 보입니다. */
.hero__script {
  font-family: var(--script);
  font-size: clamp(58px, 26vw, 118px);
  line-height: .78; margin: 0 0 18px; text-align: center;
  padding: 0 8px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.hero__script span { display: block; }
/* 두 줄 모두 가운데 정렬.
   필기체 d 의 꼬리가 글자 폭 밖으로 튀어나와 오른쪽이 붙어 보이므로
   그만큼(약 0.16em) 오른쪽 여백을 줘서 눈에 보이는 좌우 여백을 맞춥니다. */
.hero__script span:last-child { padding-left: 0; margin-right: .186em; }
/* 레퍼런스의 txt-bottom 과 동일 — Noto Serif 15/700 · 자간 1px */
.hero__date {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 20px;
  font-family: var(--serif-en); font-size: 15px; font-weight: 700;
  letter-spacing: 1px; line-height: 25px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
/* 오프닝 — 아래에서 떠오르며 나타남 */
.js .hero__script, .js .hero__date { opacity: 0; transform: translateY(26px); }
.js .hero__text.in .hero__script { animation: fadeUp 1.1s var(--ease) .15s forwards; }
.js .hero__text.in .hero__date   { animation: fadeUp 1.1s var(--ease) .55s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* =====================================================================
   초대합니다
   ===================================================================== */
.quote { margin: 30px 0 0; font-size: 15px; line-height: 2.15; color: var(--ink); word-break: keep-all; }
.quote-src { margin: 16px 0 0; font-size: 12.5px; color: var(--mute); }
.invite-body { margin: 34px 0 0; font-size: 14.5px; line-height: 2.1; color: var(--sub); word-break: keep-all; }
.invite-body .gap { display: block; height: 14px; }

.parents { margin: 40px 0 0; padding: 30px 0 0; border-top: 1px solid var(--line); }
.parents p { margin: 0 0 12px; font-size: 14px; line-height: 25px; color: var(--sub); }
.parents p:last-child { margin-bottom: 0; }
.parents b { font-weight: 400; color: var(--ink); }
.parents .rel { color: var(--mute); font-size: 13px; margin: 0 3px; }
.parents .child { color: var(--ink); margin-left: 4px; }

/* =====================================================================
   인터뷰 · 프로필
   ===================================================================== */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }


/* 인터뷰 시트 */
.qa-list { display: flex; flex-direction: column; gap: 0; text-align: left; }
/* 질문 사이 옅은 구분선 — 첫 항목 위에는 넣지 않습니다 */
.qa-item + .qa-item {
  margin-top: 28px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.qa-item .q { display: flex; gap: 10px; align-items: baseline; margin: 0 0 14px; font-size: 15.5px; color: var(--ink); word-break: keep-all; }
.qa-item .q .num { flex: none; font-family: var(--en); font-size: 12px; letter-spacing: 1px; color: var(--accent-dk); }
.qa-who { display: flex; gap: 10px; }
.qa-who + .qa-who { margin-top: 12px; }
.qa-badge {
  flex: none; margin-top: 2px; height: fit-content;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: #f5f4f1; color: var(--sub);
}
.qa-who p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--sub); word-break: keep-all; }

/* =====================================================================
   예식 일시 · 캘린더
   ===================================================================== */
.date-big { margin: 0; font-family: var(--en); font-size: 28px; letter-spacing: 1px; color: var(--ink); }
.date-sub { margin: 6px 0 0; font-size: 14px; color: var(--sub); }

.calendar { margin-top: 34px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.cal-grid span, .cal-grid b {
  font-size: 14px; font-weight: 400; height: 40px; line-height: 40px; display: block;
}
.cal-dow { font-size: 12px !important; color: var(--sub); height: 30px !important; line-height: 30px !important; }
.cal-dow.sun, .cal-grid span.sun { color: var(--sun); }
.cal-grid b.mark {
  width: 40px; margin: 0 auto; border-radius: 9999px;
  background: var(--accent); color: #fff;
}
.cal-sep { height: 1px; background: var(--line); margin: 26px 0 22px; }

.countdown { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.cd-cell { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.cd-cell span { font-family: var(--en); font-size: 12px; line-height: 13.8px; letter-spacing: 1.2px; color: var(--mute); }
.cd-cell b { font-family: var(--en); font-size: 24px; font-weight: 400; color: var(--sub); line-height: 32px; font-variant-numeric: tabular-nums; }
.cd-colon { color: var(--faint); font-size: 13px; align-self: center; padding-top: 12px; }
.dday { margin: 24px 0 0; font-size: 14px; color: var(--sub); word-break: keep-all; }
/* 남은 날짜 숫자 — 검정 볼드 */
.dday b { color: var(--ink); font-weight: 700; }

/* =====================================================================
   오시는 길
   ===================================================================== */
.place { margin-top: 30px; }
.place b { display: block; font-size: 18px; line-height: 28px; letter-spacing: -.2px; font-weight: 400; margin-bottom: 6px; }
.place span { font-family: var(--ui); font-size: 16px; line-height: 24px; letter-spacing: -.2px; color: var(--mute); word-break: keep-all; }
.place small { display: block; font-family: var(--ui); font-size: 13px; color: var(--mute); margin-top: 8px; }
.place small a { border-bottom: 1px solid #e2e0dc; padding-bottom: 1px; }
.place small .dot { font-style: normal; margin: 0 8px; color: var(--faint); }

.map-box { margin-top: 22px; height: 250px; position: relative; background: #f2f1ee; overflow: hidden; }
#kakaoMap { width: 100%; height: 100%; }
#osmMap { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; background: #f4f3f0;
}
.map-fallback svg { width: 24px; height: 24px; color: var(--accent-dk); }
.map-fallback b { font-size: 15px; font-weight: 400; }
.map-fallback span { font-size: 12.5px; color: var(--mute); line-height: 1.7; }

.navi-title { margin: 30px 0 4px; font-size: 14px; line-height: 25px; font-weight: 600; }
.navi-desc { margin: 0 0 16px; font-size: 13px; line-height: 25px; color: var(--sub); }
.navi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* 내비게이션 버튼 — 각 앱의 실제 아이콘 (assets/app/) */
.navi-btn { flex-direction: column; gap: 7px; padding: 12px 4px; }
.navi-ico {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  object-fit: cover;
}
/* 버튼 안에 들어가는 앱 아이콘 (카카오톡 공유 등) */
.btn-app-ico { width: 20px; height: 20px; border-radius: 5px; flex: none; object-fit: cover; }

/* 교통 안내 블록 */
.info-block { margin-top: 34px; text-align: left; }
.info-block + .info-block { margin-top: 26px; }
.info-block__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.info-block__head b { font-size: 14px; line-height: 25px; font-weight: 600; }
.info-block__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.info-block p { margin: 0; font-size: 14px; line-height: 22.4px; color: var(--sub); word-break: keep-all; }
/* 데어무드는 굵기 대신 색으로만 강조합니다 */
.info-block p .b { color: var(--ink); font-weight: 400; }


/* =====================================================================
   갤러리 — 메인 크게 + 아래 썸네일 가로 캐러셀
   ===================================================================== */
.gal-main {
  position: relative; margin-top: 28px;
  background: #f2f1ee; overflow: hidden;
}
.gal-main img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  animation: galFade .45s var(--ease);
}
@keyframes galFade { from { opacity: .35; } }
.gal-main__count {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  background: rgba(26, 26, 26, .5); color: #fff;
  font-family: var(--en); font-size: 12px; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 999px;
}
/* 레퍼런스와 동일 — 배경 없이 사진 위에 얹히는 얇은 흰 화살표 */
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: none; box-shadow: none;
}
.gal-arrow svg {
  width: 22px; height: 22px; color: #fff;
  stroke-width: 1.4;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}
.gal-arrow:active svg { opacity: .6; }
.gal-arrow.prev { left: 2px; }
.gal-arrow.next { right: 2px; }

.gal-strip {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 10px 20px 4px; margin: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gal-strip::-webkit-scrollbar { display: none; }
.gal-strip button {
  flex: 0 0 68px; height: 68px; border-radius: 8px; overflow: hidden;
  background: #f2f1ee; opacity: .55;
  transition: opacity .25s var(--ease), box-shadow .25s var(--ease);
}
.gal-strip button.on { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.gal-strip img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(20, 20, 20, .96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 80svh; object-fit: contain; }
.lightbox__bar {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--shell);
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 18px 16px;
  font-family: var(--en); font-size: 13px; letter-spacing: 1px; color: rgba(255,255,255,.7);
}
.lightbox__bar button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.lightbox__bar svg { width: 16px; height: 16px; color: #fff; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav svg { width: 17px; height: 17px; color: #fff; }
.lightbox__nav.prev { left: 10px; }
.lightbox__nav.next { right: 10px; }

/* =====================================================================
   방명록
   ===================================================================== */
.gb-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.gb-item {
  background: #fff; border: .8px solid var(--line); border-radius: 8px; padding: 16px;
  animation: pop .4s var(--ease) backwards;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.gb-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.gb-item__name { font-size: 14px; color: var(--ink); }
.gb-item__right { display: flex; align-items: center; gap: 6px; flex: none; }
.gb-item__date { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
/* 방명록 수정 · 삭제 버튼 */
.gb-act {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); transition: background .18s var(--ease), color .18s var(--ease);
}
.gb-act:hover { background: #f1f0ee; color: var(--ink); }
.gb-act svg { width: 11px; height: 11px; }
/* 신랑신부 모드일 때 살짝 눈에 띄게 */
.owner-mode .gb-act { color: var(--accent-dk); }
.gb-item__msg { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--sub); white-space: pre-wrap; word-break: break-word; }
.empty-note { color: var(--mute); font-size: 13.5px; padding: 28px 0; line-height: 1.9; }
.count-note { margin: 20px 0 0; font-size: 12px; color: var(--faint); letter-spacing: .04em; }

/* =====================================================================
   미드 배너
   ===================================================================== */
.banner { padding: 40px 16px; text-align: center; }

/* 레퍼런스와 동일 — Inter 12/500 세 줄, 왼쪽 정렬 */
.banner-v6 {
  display: flex; flex-direction: column; gap: 8px;
  text-align: left; padding: 46px 30px 30px;
}
.banner-v6 .row { display: flex; justify-content: space-between; gap: 0 12px; }
.banner-v6 .row p {
  margin: 0; font-family: var(--num);
  font-size: 12px; font-weight: 500; line-height: 22px;
  letter-spacing: normal; color: var(--ink);
}
.banner-v6 .row--sm p { color: var(--sub); }

.banner-photo { position: relative; }
.banner-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* 레퍼런스와 동일 — Inter 14/500 3줄 + 필기체 + 이름 */
.banner-v24 { padding: 40px 24px; }
.banner-v24 .info-section p {
  margin: 0; font-family: var(--num);
  font-size: 14px; font-weight: 500; line-height: 24px;
  letter-spacing: normal; color: #1a1a1a;
}
.banner-v24 .script-mark {
  margin: 34px 0 30px;
  font-family: var(--script); font-size: 62px; line-height: 1;
  font-weight: 400; color: #1a1a1a;
}
.banner-v24 .names-section {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.banner-v24 .names-section p {
  margin: 0; font-family: var(--num);
  font-size: 14px; font-weight: 500; line-height: 24px; color: #1a1a1a;
}
.banner-v24 .names-section .divider { color: var(--faint); }
.banner-v24 .deco { margin: 26px auto 24px; width: 200px; height: 1px; background: var(--line); position: relative; }
.banner-v24 .deco::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--accent);
}
.banner-v24 .names { margin: 0; font-family: var(--en); font-size: 15px; letter-spacing: 1.5px; color: var(--ink); }
.banner-v24 .names i { font-style: normal; color: var(--faint); margin: 0 8px; }

.banner-v27 { padding: 40px 24px; }
.banner-v27 .line { width: 40px; height: 1.5px; background: var(--ink); margin: 0 auto 22px; }
.banner-v27 p { margin: 0; font-family: var(--en); font-size: 19px; line-height: 1.6; letter-spacing: .5px; }
.banner-v27 small { display: block; margin-top: 18px; font-family: var(--en); font-size: 12px; letter-spacing: 3px; color: var(--mute); }

/* =====================================================================
   계좌 — 알약 토글 + 목록
   ===================================================================== */
.pill-tabs { display: flex; justify-content: center; margin-top: 30px; }
.pill-tabs ul {
  list-style: none; margin: 0; padding: 2px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  width: 188px; height: 48px;
  background: rgba(0, 0, 0, .08); border-radius: 9999px;
}
.pill-tabs li { display: flex; }
.pill-tabs button {
  flex: 1; border-radius: 9999px; font-size: 14px; color: var(--sub);
  transition: background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.pill-tabs button.on {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

/* 계좌 아코디언 */
.acc { margin-top: 26px; text-align: left; }
.acc__item { border: .8px solid var(--line); border-radius: 10px; overflow: hidden; }
.acc__item + .acc__item { margin-top: 8px; }
.acc__head { width: 100%; display: flex; align-items: center; padding: 15px 18px; font-size: 14.5px; }
.acc__head .chev { margin-left: auto; width: 13px; height: 13px; color: var(--faint); transition: transform .3s var(--ease); }
.acc__item.open .acc__head .chev { transform: rotate(180deg); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); background: #fbfbfa; }
.acc__inner { padding: 4px 18px; }
/* 계좌 카드 — 가로 스와이프 */
/* 좌우 여백을 화면 폭의 14.5%로 두고 카드를 94%로 잡으면
   레퍼런스와 같은 비율(카드 = 화면의 67%)이 되고 옆 카드가 살짝 보입니다.
   ※ %패딩은 섹션 안쪽 폭(화면−64) 기준이라 14.5%가 아니라 18%입니다. */
.acc-cards {
  display: flex; gap: 15px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 22px -32px 0; padding: 4px 18% 6px;
}
.acc-cards::-webkit-scrollbar { display: none; }
/* 카드 — 레퍼런스 실측: 흰 배경 · radius 16 · padding 12 · 옅은 그림자 */
.acc-card {
  flex: 0 0 94%; scroll-snap-align: center;
  border-radius: 16px; background: #fff; padding: 12px;
  box-shadow: 0 1px 1.5px rgba(26, 26, 26, .1);
  text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
/* 계좌가 한 개면 넘길 카드가 없으므로 폭을 꽉 채워 가운데로 */
.acc-cards--one .acc-card { flex: 0 0 100%; }
.acc-card__top {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 25px; line-height: 25px;
}
.acc-card__rel { font-size: 12px; color: var(--mute); }
.acc-card__name { font-size: 14px; color: var(--ink); }
/* 은행·계좌번호 줄 전체가 복사 버튼입니다 (아이콘은 눌러도 된다는 표시) */
.acc-card__acc {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px; border-radius: 10px;
  transition: background .18s var(--ease);
}
.acc-card__acc:hover { background: #faf9f7; }
.acc-card__acc:active { background: #f4f2ef; }
.acc-card__desc {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2px 8px; min-width: 0;
}
.acc-card__bank { font-size: 14px; line-height: 25px; color: var(--sub); }
.acc-card__num { font-size: 14px; line-height: 25px; color: var(--sub); word-break: keep-all; overflow-wrap: anywhere; }
.acc-card__copy { flex: none; display: flex; color: var(--sub); }
.acc-card__copy svg { width: 20px; height: 20px; }
.acc-card__acc.done .acc-card__copy { color: var(--accent-dk); }
/* 카카오페이 — 레퍼런스처럼 테두리만 있는 버튼 + 노란 원형 아이콘 */
.acc-kakao {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; border-radius: 8px;
  border: .8px solid var(--line-2); background: #fff; color: var(--sub);
  font-size: 14px; transition: background .18s var(--ease);
}
.acc-kakao:hover { background: #faf9f7; }
.acc-kakao__ico {
  width: 20px; height: 20px; border-radius: 999px; background: #FFEB00;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.acc-kakao__ico svg { width: 12px; height: 12px; }
.acc-dots { display: flex; justify-content: center; gap: 5px; margin-top: 14px; }
.acc-dots i { width: 5px; height: 5px; border-radius: 50%; background: #dcdcdc; transition: all .25s var(--ease); }
.acc-dots i.on { background: var(--ink); width: 15px; border-radius: 3px; }
.copy-btn {
  flex: none; padding: 7px 13px; border-radius: 8px; font-size: 12px;
  border: .8px solid var(--line-2); color: var(--sub); background: #fff;
  transition: all .2s var(--ease);
}
.copy-btn:hover { background: #f6f6f4; }
.copy-btn.done { background: var(--accent); border-color: var(--accent); color: #fff; }

/* =====================================================================
   모달 / 바텀시트
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .45); opacity: 0; transition: opacity .32s var(--ease); }
.modal__sheet {
  position: relative; width: 100%; max-width: var(--shell);
  max-height: 90svh; overflow-y: auto;
  background: var(--sheet);
  border-radius: 18px 18px 0 0;
  padding: 22px 24px calc(28px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform .42s var(--ease);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .16);
}
.modal.open { pointer-events: auto; }
.modal.open .modal__backdrop { opacity: 1; }
.modal.open .modal__sheet { transform: none; }
.modal__close-row { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.modal__close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.modal__close svg { width: 17px; height: 17px; color: #999; }
.modal__title { margin: 0; font-size: 17px; font-weight: 400; text-align: center; color: var(--ink); }
.modal__desc { margin: 20px 0 0; font-size: 14px; line-height: 25px; color: var(--sub); text-align: center; word-break: keep-all; }
.modal__icon { display: flex; justify-content: center; margin-top: 18px; }
.modal__icon svg { width: 34px; height: 26px; color: #c9c8c4; }
.modal__icon--accent svg { width: 40px; height: 40px; color: var(--accent); }

.sheet-rows { margin: 26px 0; padding: 22px 0; border-top: 1px solid #e8e5e0; border-bottom: 1px solid #e8e5e0; }
.sheet-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink); }
.sheet-row + .sheet-row { margin-top: 14px; }
.sheet-row svg { width: 17px; height: 17px; color: var(--sub); flex: none; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-btn { font-size: 13.5px; color: var(--sub); }
.text-btn:hover { color: var(--ink); }

/* 연락처 */
/* 연락하기 — 레퍼런스와 같은 한 줄짜리 목록 (관계·이름 왼쪽, 전화·문자 오른쪽) */
.contact-cols { display: flex; flex-direction: column; gap: 26px; margin-top: 24px; text-align: left; }
.contact-group { display: flex; flex-direction: column; gap: 2px; }
.contact-group__head {
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 8px; margin-bottom: 6px;
  border-bottom: .8px solid var(--line-2);
}
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact-row__info { display: flex; align-items: center; gap: 10px; padding: 8px; min-width: 0; }
.contact-row__rel {
  flex: none; min-width: 38px;
  font-size: 12px; font-weight: 500; line-height: 18px; color: var(--sub);
}
.contact-row__name { font-size: 14px; font-weight: 500; line-height: 22px; color: var(--ink); word-break: keep-all; }
.contact-row__acts { display: flex; gap: 8px; flex: none; }
.contact-act {
  width: 54px; height: 38px; border-radius: 900px;
  border: .8px solid var(--line-2); background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); transition: background .18s var(--ease), color .18s var(--ease);
}
.contact-act:hover { background: #f5f3f0; color: var(--ink); }
.contact-act:active { transform: scale(.97); }
.contact-act svg { width: 18px; height: 18px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; background: #fff;
  border: .8px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease);
}
.icon-btn:hover { background: #f4f3f0; }
.icon-btn svg { width: 14px; height: 14px; color: var(--sub); }

/* =====================================================================
   참석 의사 전달 폼 (레퍼런스 구조)
   ===================================================================== */
.rs-group { display: flex; gap: 4px; }
.rs-toggle {
  flex: 1; height: 52px; border-radius: 8px;
  border: .8px solid var(--line-2); background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 20px; font-size: 14px; color: var(--ink);
  transition: border-color .18s var(--ease);
}
.rs-toggle.on { border-color: var(--ink); }
.rs-toggle__left { display: flex; align-items: center; gap: 8px; }
.rs-toggle__left svg { width: 17px; height: 17px; color: var(--sub); }
.rs-toggle__check {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 1px solid #d9d9dd; display: flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.rs-toggle__check svg { width: 10px; height: 10px; color: #fff; opacity: 0; }
.rs-toggle.on .rs-toggle__check { background: var(--ink); border-color: var(--ink); }
.rs-toggle.on .rs-toggle__check svg { opacity: 1; }

.rs-field { padding: 18px 0 10px; border-bottom: .8px solid rgba(26, 26, 26, .32); }
.rs-field__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.rs-label { font-size: 12px; font-weight: 500; color: var(--ink); }
.rs-label .req { color: var(--accent-dk); margin-right: 3px; }
.rs-input {
  width: 100%; border: 0; background: none; outline: none;
  font-size: 14px; color: var(--ink); padding: 4px 0;
}
.rs-input::placeholder { color: #bdbdc2; }
textarea.rs-input { resize: none; min-height: 44px; line-height: 1.7; }

.rs-side { display: flex; gap: 14px; }
.rs-side button { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mute); }
.rs-side button .dot {
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid #d9d9dd;
  display: flex; align-items: center; justify-content: center;
}
.rs-side button .dot svg { width: 8px; height: 8px; color: #fff; opacity: 0; }
.rs-side button.on { color: var(--ink); }
.rs-side button.on .dot { background: var(--ink); border-color: var(--ink); }
.rs-side button.on .dot svg { opacity: 1; }

.rs-step { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.rs-step__ctl { display: flex; align-items: center; gap: 26px; }
.rs-step__ctl button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #e2e2e5;
  display: flex; align-items: center; justify-content: center; color: var(--sub);
  font-size: 16px; line-height: 1;
}
.rs-step__ctl button:hover { border-color: var(--ink); color: var(--ink); }
.rs-step__ctl b { font-size: 16px; font-weight: 400; min-width: 22px; text-align: center; }

.rs-block { margin-top: 6px; }
.rs-block > .rs-label { display: block; margin-bottom: 9px; }

.privacy {
  display: flex; gap: 10px; align-items: flex-start;
  border: .8px solid var(--line); border-radius: 8px;
  padding: 16px; margin-top: 22px; text-align: left;
}
.privacy__content { display: block; }
.privacy__title { display: block; margin: 0 0 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.privacy__desc { display: block; margin: 0; font-size: 12px; line-height: 1.75; color: var(--mute); word-break: keep-all; }
.privacy input { position: absolute; opacity: 0; width: 0; height: 0; }
.privacy__box {
  width: 18px; height: 18px; border-radius: 4px; flex: none; margin-top: 1px;
  border: 1px solid #d9d9dd; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s var(--ease);
}
.privacy__box svg { width: 10px; height: 10px; color: #fff; opacity: 0; }
.privacy input:checked + .privacy__box { background: var(--ink); border-color: var(--ink); }
.privacy input:checked + .privacy__box svg { opacity: 1; }

.rs-submit {
  width: 100%; height: 52px; margin-top: 16px;
  border: .8px solid var(--line-2); border-radius: 8px;
  background: #fff; color: #999; font-size: 14px;
  transition: all .2s var(--ease);
}
.rs-submit.ready { border-color: var(--ink); color: var(--ink); }
.rs-submit.ready:hover { background: var(--ink); color: #fff; }

/* =====================================================================
   폼 (공통)
   ===================================================================== */
.field { margin-bottom: 16px; text-align: left; }
.field__label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.field__label em { font-style: normal; color: var(--accent-dk); margin-left: 2px; }
.field__hint { margin: 7px 2px 0; font-size: 12px; line-height: 1.6; color: var(--mute); }

.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; padding: 11px 6px; border-radius: 8px; font-size: 13px;
  border: .8px solid var(--line-2); color: var(--sub); background: #fff;
  transition: all .18s var(--ease);
}
.seg button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.inp {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  background: #fff; border: .8px solid var(--line-2); color: var(--ink); outline: none;
  transition: border-color .18s var(--ease);
}
.inp::placeholder { color: #bdbdc2; }
.inp:focus { border-color: var(--ink); }
.inp.ok { border-color: var(--accent); }
.inp.err { border-color: #e07a7a; }
textarea.inp { resize: vertical; min-height: 92px; line-height: 1.7; }

.form-msg { font-size: 12.5px; margin: -6px 0 12px; min-height: 17px; text-align: left; }
.form-msg.err { color: #d06a6a; }
.form-msg.ok { color: var(--accent-dk); }

.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); margin-top: 14px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 17px; height: 17px; border-radius: 4px; flex: none;
  border: 1px solid var(--line-2); background: #fff;
  display: flex; align-items: center; justify-content: center; transition: all .18s var(--ease);
}
.check__box svg { width: 10px; height: 10px; color: #fff; opacity: 0; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box svg { opacity: 1; }

.done-state { text-align: center; padding: 20px 0 4px; }
.done-state__ico {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.done-state__ico svg { width: 22px; height: 22px; color: #fff; }
.done-state b { display: block; font-size: 16px; font-weight: 400; margin-bottom: 8px; }
.done-state p { margin: 0 0 22px; font-size: 13.5px; color: var(--sub); line-height: 1.85; }

/* =====================================================================
   축하 사진 공유 (메인)
   ===================================================================== */
/* 부채꼴로 흩어진 폴라로이드 3장 */
/* 축하사진 폴라로이드 — 레퍼런스 실측값
   흰 테두리 8px · radius 20 · 그림자 0 4px 10px rgba(0,0,0,.2)
   세 장의 크기와 각도가 조금씩 다릅니다 (181 / 160 / 176) */
.snap-visual { position: relative; width: 148px; height: 148px; margin: 26px auto 74px; }
.snap-visual img {
  position: absolute; top: 0; left: 0;
  object-fit: cover; border-radius: 20px;
  border: 8px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.snap-visual img:nth-child(1) { width: 181px; height: 181px; }
.snap-visual img:nth-child(2) { width: 160px; height: 160px; }
.snap-visual img:nth-child(3) { width: 176px; height: 176px; }

/* 스크롤로 들어오면 겹쳐 있던 세 장이 부채꼴로 펼쳐집니다 */
.js .snap-visual img {
  transform: rotate(0) translate(0, 14px) scale(.9);
  opacity: 0;
  transition: transform .85s var(--ease), opacity .5s ease-out;
}
.js .reveal.in .snap-visual img { opacity: 1; }
.js .reveal.in .snap-visual img:nth-child(1) { transform: rotate(-15deg) translateX(-48px); transition-delay: .10s; }
.js .reveal.in .snap-visual img:nth-child(2) { transform: rotate(-5deg) translate(-3px, -1px); transition-delay: 0s; }
.js .reveal.in .snap-visual img:nth-child(3) { transform: rotate(12deg) translateX(51px); transition-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  .js .snap-visual img { opacity: 1; transition: none; }
  .js .snap-visual img:nth-child(1) { transform: rotate(-15deg) translateX(-48px); }
  .js .snap-visual img:nth-child(2) { transform: rotate(-5deg) translate(-3px, -1px); }
  .js .snap-visual img:nth-child(3) { transform: rotate(12deg) translateX(51px); }
}

.snap-notice { margin: 16px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.9; }
.snap-notice .date-time { color: var(--ink); }

.photo-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 28px; }
.photo-preview button { aspect-ratio: 1 / 1; overflow: hidden; background: #f2f1ee; border-radius: 6px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-locked { margin: 14px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.8; }

/* =====================================================================
   푸터
   ===================================================================== */
.footer-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
/* 아래 여백을 넉넉히 — 화면 오른쪽 아래 떠 있는 메뉴 버튼이 저작권 문구를 가리지 않도록 */
.footer { padding: 46px 30px calc(92px + env(safe-area-inset-bottom)); text-align: center; }
.footer__note { margin: 26px 0 0; font-size: 11px; color: var(--faint); letter-spacing: .04em; line-height: 1.9; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 14px);
  z-index: 200; padding: 11px 20px; border-radius: 999px;
  background: rgba(26, 26, 26, .92); color: #fff;
  font-size: 12.5px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 로컬 모드 안내 */
.local-flag {
  margin: 0 24px; padding: 11px 14px; border-radius: 8px;
  background: #fbf7f2; border: 1px dashed #e3d9cc;
  font-size: 11.5px; line-height: 1.8; color: var(--mute); text-align: center;
}
.local-flag code { font-size: 11px; color: var(--accent-dk); }

/* =====================================================================
   별도 탭 — 축하 사진 (photo.html)
   ===================================================================== */
.pshell { max-width: var(--shell); margin: 0 auto; min-height: 100svh; background: var(--bg); }
@media (min-width: 520px) { .pshell { box-shadow: 0 0 60px rgba(0,0,0,.12); } }
.ptop {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.ptop b { font-size: 15px; font-weight: 400; }
.ptop span { font-size: 11.5px; color: var(--mute); }
.ptop .back { width: 32px; height: 32px; border-radius: 8px; border: .8px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.ptop .back svg { width: 14px; height: 14px; color: var(--ink); }
.pbody { padding: 28px 20px calc(40px + env(safe-area-inset-bottom)); }
.phead { text-align: center; }
.phead .eng-title { margin-bottom: 6px; }

.upload-drop {
  width: 100%; display: block;
  border: 1px dashed #d8d6d1; border-radius: 12px; background: #fbfbfa;
  padding: 40px 20px; text-align: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.upload-drop.hot { background: #f4f6ec; border-color: var(--accent); }
.upload-drop svg { width: 24px; height: 24px; color: var(--accent-dk); margin: 0 auto 12px; }
.upload-drop b { display: block; font-size: 15px; font-weight: 400; margin-bottom: 5px; }
.upload-drop span { font-size: 12.5px; color: var(--mute); }

/* ---------- 업로드 화면 (입력 + 첨부 박스 + 안내) ---------- */
.up-field { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.up-field label {
  flex: none; width: 44px;
  font-family: var(--ui); font-size: 15px; font-weight: 600; color: var(--ink);
}
.up-field input {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px;
  border: 0; border-radius: 12px; background: #f4f4f5;
  font-family: var(--ui); font-size: 14px; color: var(--ink);
}
.up-field input::placeholder { color: #a9a9ae; }
.up-field input:focus { outline: 2px solid #e0dedd; outline-offset: -2px; }
.up-field + .up-drop { margin-top: 18px; }

.up-drop {
  width: 100%; display: flex; flex-direction: column; align-items: center;
  border: 0; border-radius: 14px; background: #f4f4f5;
  padding: 42px 20px 36px; text-align: center;
  transition: background .2s var(--ease);
}
.up-drop.hot { background: #efe9e7; }
.up-drop svg { width: 30px; height: 30px; color: #6b6b70; margin-bottom: 18px; }
.up-drop__txt {
  font-family: var(--ui); font-size: 14.5px; color: var(--sub);
  margin-bottom: 20px; word-break: keep-all;
}
.up-drop__cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 168px; height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: var(--ui); font-size: 16px; font-weight: 600;
  transition: background .2s var(--ease);
}
.up-drop:hover .up-drop__cta { background: var(--accent-dk); }

.up-count {
  margin: 12px 0 0; text-align: right;
  font-family: var(--ui); font-size: 14px; color: var(--sub);
}

.up-notes {
  list-style: none; margin: 24px 0 4px; padding: 18px 18px 10px;
  text-align: left; background: #fbfaf9; border-radius: 12px;
}
.up-notes li {
  position: relative; padding-left: 14px; margin-bottom: 10px;
  font-family: var(--ui); font-size: 13.5px; line-height: 1.75;
  color: var(--sub); word-break: keep-all;
}
.up-notes li::before {
  content: '·'; position: absolute; left: 2px; top: -1px;
  color: var(--faint); font-size: 15px;
}
.up-notes li.warn::before { content: none; }
.up-notes li.warn { padding-left: 0; margin-top: 18px; }
.up-notes li.warn b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.up-notes li.warn em { display: block; font-style: normal; color: var(--mute); margin-top: 8px; }

.preview-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.preview-row figure { position: relative; margin: 0; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.preview-row img { width: 100%; height: 100%; object-fit: cover; }
.preview-row button {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(26, 26, 26, .72); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.preview-row button svg { width: 9px; height: 9px; }

.bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 14px 0; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease); }

.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.pcard { margin: 0; border: .8px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.pcard img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pcard figcaption { padding: 10px 12px 12px; text-align: left; font-size: 12px; color: var(--sub); line-height: 1.6; }
.pcard figcaption b { display: block; font-size: 13px; font-weight: 400; color: var(--ink); }
.psection-title { margin: 34px 0 3px; font-size: 15px; }
.psection-desc { margin: 0; font-size: 12.5px; color: var(--mute); }

/* ---------- 축하사진 화면 마무리 ---------- */
/* 미리보기 썸네일 — 조금 크게, 카운터 바로 아래 */
.pbody .preview-row { gap: 7px; margin-top: 12px; }
.pbody .preview-row figure { width: 72px; height: 72px; border-radius: 10px; }

/* 제출 버튼 — 준비되면 확실한 CTA 로 */
#pSubmit { height: 56px; border-radius: 12px; font-family: var(--ui); font-size: 15px; }
#pSubmit.ready { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
#pSubmit.ready:hover { background: #000; }

/* 동의 체크 · 진행바 여백 */
.pbody .privacy { margin-top: 26px; }
.pbody .bar { margin: 18px 0 0; }

/* =====================================================================
   하객톡톡 (talk.html) — 예식 당일 안내 한 장
   데어무드 wnoti 실측: 바탕 #e0e0e0 · 카드 #f2f2f2 r12 · 속카드 #fafafa r8
   청첩장 본문과 달리 UI 폰트(Pretendard)를 씁니다.
   ===================================================================== */
.talk-body { background: #e0e0e0; font-family: var(--ui); }
.tshell {
  max-width: var(--shell); margin: 0 auto; min-height: 100svh;
  padding: 0 16px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 520px) { .tshell { box-shadow: 0 0 60px rgba(0,0,0,.12); } }

.tback {
  display: flex; align-items: center; gap: 4px;
  margin: 0 -4px; padding: 18px 4px 6px;
  font-size: 14px; font-weight: 500; color: #666;
}
.tback svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.tback span { text-decoration: underline; text-underline-offset: 3px; }

.tcard { background: #f2f2f2; border-radius: 12px; padding: 16px 4px 4px; }
.tcard__title { text-align: center; margin: 0 12px 12px; font-size: 18px; font-weight: 600; line-height: 28px; color: #000; }
.tcard__desc { margin: -6px 12px 12px; font-size: 14px; line-height: 22px; color: #666; }

/* 표지 */
.tcard--hero { background: #fafafa; padding: 0; overflow: hidden; }
.tcard--hero img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.thero-names { padding: 18px 16px 20px; text-align: center; }
.thero-names p { margin: 0; font-size: 15px; line-height: 30px; color: #1a1a1a; word-break: keep-all; }
.thero-names i { font-style: normal; color: #aaa; margin: 0 6px; }
.thero-names em { font-style: normal; font-size: 13px; color: #999; margin: 0 6px 0 2px; }
.thero-names b { font-weight: 600; }

/* 장소 · 일시 */
.tgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tmini { position: relative; min-height: 118px; padding: 16px 6px; }
.tmini p { margin: 0 10px; font-size: 17px; font-weight: 600; line-height: 25px; color: #000; word-break: keep-all; }
.tmini__ico {
  position: absolute; right: 14px; bottom: 12px;
  width: 30px; height: 30px; stroke: #c9c9c9; fill: none; stroke-width: 1.5;
}

/* 카운트다운 — 진한 초록 바탕에 흰 글씨 */
.tcount {
  padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent);
}
.tcount__label { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .82); }
.tcount b { font-size: 16px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

/* 속카드 공통 */
.tsub {
  display: block; width: 100%; text-align: left;
  background: #fafafa; border-radius: 8px; padding: 12px 14px;
}
.tsub + .tsub { margin-top: 8px; }
.tsub b { display: block; font-size: 16px; font-weight: 600; line-height: 24px; color: #000; }
.tsub span { display: block; font-size: 14px; line-height: 22px; color: #666; word-break: keep-all; }

.tsub--btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 4px 4px; width: auto; }
.tsub--btn > span:first-child { font-size: 14px; line-height: 22px; color: #333; }
.tsub__act {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--accent-dk); white-space: nowrap;
}
.tsub__act svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.tsub--call { display: flex; align-items: center; gap: 10px; }
.tsub--call b { flex: none; width: 58px; font-size: 15px; font-weight: 500; line-height: 24px; }
.tsub__num { flex: 1; font-size: 15px; line-height: 24px; color: #666; }

/* 길찾기 앱 */
.tnavi { margin: 0 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tnavi__item {
  background: #fafafa; border-radius: 8px; padding: 14px 4px 11px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.tnavi__item:active { background: #f0efed; }
.tnavi__item img { width: 34px; height: 34px; border-radius: 9px; }
.tnavi__item span { font-size: 12px; line-height: 18px; color: #1a1a1a; }

/* 진한 버튼 */
.tbtn-dark {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 56px; border-radius: 12px;
  background: #434343; color: #fff;
  font-size: 16px; font-weight: 600; line-height: 24px;
}
.tbtn-dark svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tbtn-dark:active { background: #383838; }
.tbtn-dark--in { height: 52px; }

.tphoto .tcard__title { margin-bottom: 6px; }

/* 공유 */
.tshare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.tshare__btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 50px; border-radius: 12px; background: #f2f2f2; color: #1a1a1a;
  font-size: 14px; font-weight: 500;
}
.tshare__btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tshare__btn--kakao { background: #FEE500; color: #3C1E1E; }
.tshare__btn--kakao svg { fill: currentColor; stroke: none; }
.tshare__btn:active { filter: brightness(.97); }

.tfoot { margin: 10px 0 0; text-align: center; font-size: 12px; color: #999; }

/* 하객톡톡 — 오시는 길 펼침 */
.tacc { background: #fafafa; border-radius: 8px; overflow: hidden; }
.tacc + .tacc { margin-top: 8px; }
.tacc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; text-align: left;
}
.tacc__ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #eef1e5; display: flex; align-items: center; justify-content: center;
}
.tacc__ico svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.tacc__head b { flex: 1; font-size: 16px; font-weight: 600; line-height: 24px; color: #000; }
.tacc__chev {
  flex: none; width: 18px; height: 18px; stroke: #9a9a9a; fill: none; stroke-width: 2;
  transition: transform .28s var(--ease);
}
.tacc.open .tacc__chev { transform: rotate(180deg); }
.tacc__body { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.tacc__inner { padding: 0 14px 13px 54px; }
.tacc__inner span {
  display: block; font-size: 14px; line-height: 22px; color: #666; word-break: keep-all;
}
.tacc__inner span + span { margin-top: 3px; }

/* 하객톡톡 — 진한 초록 버튼 */
.tbtn-dark { background: var(--accent); }
.tbtn-dark:active { background: var(--accent-dk); }

/* 드로어 탭바의 하객톡톡 — 진한 초록 배지로 눈에 띄게 */
.tab-item--talk .tab-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent);
  align-items: center; justify-content: center;
}
.tab-item--talk .tab-icon svg { width: 16px; height: 16px; color: #fff; }
.tab-item--talk .tab-label { color: var(--accent-dk); }
.tab-item--talk:active .tab-icon { background: var(--accent-dk); }

/* 하객톡톡 — ATM 안내 일러스트 (데어무드 wnoti 구성) */
.tatm-visual {
  margin: -16px 4px 2px; border-radius: 10px 10px 0 0;
  overflow: hidden; line-height: 0;
}
.tatm-visual svg { width: 100%; height: auto; display: block; }
.tcard__title--c { text-align: center; margin: 12px 12px; }
