/* =========================================================
 * 모바일 청첩장 스타일
 * 테마: 블랙 + 핑크 (다크 · 에디토리얼)
 * 포인트 컬러 #fa89a3 / 손글씨: Nanum Pen Script
 * 색을 바꾸려면 아래 :root 변수만 수정하면 됩니다.
 * ========================================================= */

:root {
  /* ---- 컬러 팔레트: 블랙 + 핑크 ---- */
  --bg: #111111;            /* 기본 배경: 블랙 */
  --bg-soft: #1a1518;       /* 보조 배경: 살짝 밝은 블랙 */
  --outer: #000000;         /* 카드 바깥 배경 */
  --card: #1f1a1d;          /* 카드·입력창 배경 */
  --ink: #f2ecee;           /* 본문: 오프화이트 */
  --ink-light: #a3969b;     /* 보조 텍스트 */
  --accent: #fa89a3;        /* 포인트: 핑크 */
  --accent-deep: #ffa8bd;   /* 어두운 배경 위 강조용 밝은 핑크 */
  --blush: #fa89a3;
  --blush-soft: #f5b8c6;
  --line: #2e2629;          /* 어두운 구분선 */
  --white: #1f1a1d;         /* (다크 테마에서는 카드 배경으로 사용) */
  --paper: #fffdfa;         /* 편지지는 흰 종이 그대로 (대비 포인트) */
  --paper-ink: #2b2226;     /* 편지지 위 글씨 */
  --paper-line: #ecdfd2;    /* 편지지 줄 색 */
  /* ---- 폰트 ----
   * 한글은 전부 Pretendard(모던 고딕)로 통일했습니다.
   * 명조로 되돌리려면 --kr 값을 "Gowun Batang", serif 로 바꾸고
   * index.html의 폰트 링크에 Gowun Batang을 다시 추가하세요. */
  --kr: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, sans-serif;
  --serif: var(--kr);
  --myeongjo: var(--kr);
  --sans: var(--kr);
  --en: "Cormorant Garamond", serif;        /* 영문·라벨·날짜 */
  --script: "Imperial Script", "Pinyon Script", cursive;  /* 커버 Our Wedding — 풍성한 클래식 필기체 */
  --hand: "Nanum Pen Script", cursive;      /* 손글씨 폰트 */
  --max-w: 480px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* display 를 지정한 요소도 hidden 속성이 확실히 먹도록 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; touch-action: manipulation; /* 더블탭 줌 방지 */ }

body {
  font-family: var(--serif);
  background: var(--outer);
  color: var(--ink);
  line-height: 1.85;
  letter-spacing: .01em;
  word-break: keep-all;
}

.invitation {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0,0,0,.12);
  overflow: hidden;
}

/* ---------- 등장 애니메이션 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* '동작 줄이기'를 켠 분에게는 애니메이션 없이 바로 보여줍니다 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .petal { display: none; }
  .envelope__letter { transition: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 공통 섹션 ---------- */
.section {
  padding: 72px 28px;
  text-align: center;
}
.section__label {
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.section__title {
  font-family: var(--myeongjo);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
/* 제목 아래 핑크 구분선 */
.section__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--accent);
  opacity: .8;
  margin: 20px auto 0;
}
.section__title + * { margin-top: 16px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;   /* <a> 로 쓸 때 밑줄 제거 */
  transition: all .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--outline { border-color: rgba(250,137,163,.35); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn--fill {
  background: var(--accent);
  border-color: var(--accent);
  color: #171214;          /* 핑크 위에는 어두운 글씨가 잘 읽힙니다 */
  font-weight: 500;
  width: 100%;
}
.btn--fill:hover { background: var(--accent-deep); }
.btn--kakao {
  background: #FEE500;
  border-color: #FEE500;
  color: #3C1E1E;
  width: 100%;
  font-weight: 500;
}


/* ═══════════ 1. 인트로 (풀블리드 커버 — 샘플 포스터 스타일) ═══════════ */
.intro {
  background: #000;
}
.intro__stage {
  position: relative;
  overflow: hidden;
  height: min(96svh, 780px);
}
.intro__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 톤 보정은 이미지 파일에 미리 적용됨 (CSS filter는 인앱 브라우저에서 스크롤 버벅임 유발) */
}
/* 위·아래 어두운 그라데이션 — 글씨가 사진 위에서 또렷하게 보이도록 */
.intro__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.42) 0%, rgba(0,0,0,.06) 26%,
    rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 74%, rgba(0,0,0,.92) 100%);
  pointer-events: none;
}
/* 영화 포스터 출연진 크레딧 느낌 — 작은 역할 표기 + 명조 볼드 이름을 한 줄에 */
.intro__side {
  position: absolute;
  top: 48px;   /* 옆 간격(48px)과 동일하게 */
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.intro__side--left  { left: 48px; }
.intro__side--right { right: 48px; }
.intro__side-role {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  color: rgba(255,255,255,.78);
}
.intro__side-name {
  /* 모던하고 뻗침(세리프) 없는 고딕 — 본문과 같은 Pretendard */
  font-family: var(--kr);
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: .05em;
}
.intro__bottom {
  position: absolute;
  left: 0; right: 0; bottom: 40px;
  z-index: 2;
  text-align: center;
  padding: 0 22px;
}
.intro__invited {
  font-family: var(--en);
  font-size: 12.5px;
  letter-spacing: .24em;
  text-indent: .24em;      /* 자간으로 밀린 중심 보정 */
  color: #efe5e8;
  margin-bottom: 4px;
}
.intro__script {
  font-family: var(--script);
  font-weight: 400;
  font-size: 78px;
  line-height: 1.2;
  color: var(--accent);
  text-shadow: 0 4px 28px rgba(0,0,0,.5);
  margin-bottom: 12px;
}
/* 날짜·장소: 샘플처럼 고딕(Pretendard) + 아이콘 */
.intro__date,
.intro__venue {
  font-family: var(--kr);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  letter-spacing: .01em;
  white-space: nowrap;
}
.intro__date {
  /* 얇고 길쭉한 콘덴스드체 */
  font-family: "Barlow Condensed", var(--kr);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: .14em;
}
.intro__venue {
  font-size: 15px;
  font-weight: 500;
  margin-top: 9px;
  color: rgba(255,255,255,.92);
}
.intro__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: .95;
}
/* 흩날리는 하얀 꽃잎 (JS가 .intro__stage 안에 생성) */
.petal {
  position: absolute;
  top: -30px;
  z-index: 1;
  pointer-events: none;
  animation: petal-fall var(--fall, 10s) linear infinite;
  animation-delay: var(--fall-delay, 0s);
  will-change: transform;
}
.petal::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.55));
  border-radius: 120% 10% 120% 10%;
  animation: petal-sway var(--sway, 3s) ease-in-out infinite alternate;
  animation-delay: var(--sway-delay, 0s);
}
@keyframes petal-fall {
  to { transform: translateY(880px); }
}
@keyframes petal-sway {
  from { transform: translateX(-16px) rotate(-40deg); }
  to   { transform: translateX(16px) rotate(320deg); }
}

/* ═══════════ 2.5 다이어리 꾸미기 (스크랩북 이미지) ═══════════ */
.scrapbook {
  position: relative;
  min-height: 300px;
  /* 인사말 섹션과 같은 구겨진 종이 질감 + 검은 반투명 레이어 */
  background: #0e0b0d url("../assets/paper-dark.jpg") center / cover no-repeat;
  font-size: 0;   /* 이미지 아래 여백 제거 */
}
.scrapbook::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 9, .82);
  pointer-events: none;
}
.scrapbook img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
}
/* ═══════════ 2. 인사말 ═══════════ */
/* 구겨진 종이 질감 배경 + 검은 반투명 레이어 (밝은 텍스처를 어둡게 눌러줌) */
.greeting {
  position: relative;
  background: #0e0b0d url("../assets/paper-dark.jpg") center / cover no-repeat;
}
.greeting::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 어둡기 조절은 아래 알파값만 바꾸면 됩니다 (낮을수록 종이 질감이 잘 보임) */
  background: rgba(10, 7, 9, .82);
  pointer-events: none;
}
.greeting > * { position: relative; z-index: 1; }

/* ---------- 봉투에서 나오는 편지 (스크롤 연동) ---------- */
.envelope {
  --letter-tilt: -0deg;   /* 편지 기울기 */
  --env-tilt: 0deg;       /* 봉투 이미지 기울기 (이미지가 이미 기울어져 있으면 0) */
  position: relative;
  width: min(100%, 340px);
  margin: 30px auto 36px; 
}
/* 편지가 이 틀 안에서만 보이므로, 내려가 있을 땐 봉투 속에 숨어 있는 것처럼 보임 */
.envelope__slot {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 14px 20px 0;
  /* 편지가 3/4만 나오면서 위쪽에 생기는 빈 공간을 당겨 올림 */
  margin-top: -100px;
  margin-bottom: -84px;   /* 편지 아랫부분이 봉투 뒤로 겹치는 깊이 */
}
.envelope__letter {
  color: var(--paper-ink);
  /* 레이스 편지지 (letter.png) — 테두리는 그대로 두고 가운데만 늘어나도록 border-image 사용 */
  border: 44px solid transparent;
  border-image: url("../assets/letter.png") 70 fill stretch;
  padding: 4px 2px 170px;   /* 아래 여유 = 봉투 속에 남는 부분 (편지가 3/4만 나오므로 넉넉히) */
  /* 그림자 반경 축소 — 스크롤 애니메이션 중 GPU 부하 절감 */
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4));
  transform: translate3d(0, 76%, 0) rotate(var(--letter-tilt));
  will-change: transform;
}
.envelope__frame {
  position: relative;
  z-index: 2;
  border-radius: 10px;
  transform: rotate(var(--env-tilt));
  /* 바깥쪽으로 지는 그림자 */
  box-shadow: 0 20px 44px rgba(0, 0, 0, .6), 0 6px 16px rgba(0, 0, 0, .4);
}
.envelope__img {
  display: block;
  width: 100%;
  border-radius: 3px;
}
/* 손글씨 인사말 이미지 */
.greeting__hand {
  display: block;
  width: 92%;
  margin: 6px auto;
}
.greeting__message {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 2.05;
  white-space: pre-line;
  color: var(--paper-ink);
  text-align: center;
}
.greeting__divider {
  margin: 36px 0;
  color: var(--accent);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.greeting__divider::before,
.greeting__divider::after {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: .45;
}
.greeting__family {
  font-size: 15.5px;
  margin-bottom: 26px;
  line-height: 2.3;
}
.greeting__family .family-row { font-family: var(--serif); color: var(--ink-light); }
.greeting__family .family-row b {
  font-family: var(--myeongjo);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .05em;
  color: var(--ink);
}
.greeting__family .family-rel {
  font-size: 13px;
  color: var(--accent);
  margin: 0 6px;
}

/* ═══════════ 3. 러브레터 (손글씨 편지지) ═══════════ */
/* 사진 위쪽이 흰색으로 사라지고, 그 자리에 손글씨가 올라갑니다 */
.letter {
  background: #fff;
  color: #1c1a1a;
  padding: 0 0 0;   /* 제목이 없으므로 위·아래 여백 없이 사진으로 바로 시작 */
}
.letter .section__label { color: #c0607a; }
.letter .section__title { color: #1c1a1a; }
.letter .section__title::after { background: #c0607a; opacity: .7; }

/* margin 대신 padding — 위쪽 여백이 섹션 밖으로 새어 검은 띠가 생기지 않도록 */
.lt { position: relative; padding-top: 46px; background: #fff; }
.lt:first-child { padding-top: 0; }
.lt--groom, .lt--bride { padding-bottom: 58px; }

/* 머리말 (현진이에게, 형규가) — 사진 안쪽에 */
.lt__tag {
  position: absolute;
  z-index: 4;
  font-family: "NanumSquare", "Nanum Gothic", var(--kr);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #37322c;
  text-shadow: 0 1px 8px rgba(255,255,255,.95), 0 0 18px rgba(255,255,255,.85);
}
.lt__tag--br { right: 5%; bottom: 17%; }     /* 신랑 — 사진 우하단 */
.lt__tag--tl { left: 5%; top: 5%; }          /* 신부 — 사진 좌상단 */

/* 손글씨 */
.lt__hand {
  margin: 0 9% 22px;
  text-align: left;
  font-family: var(--hand);
  font-size: clamp(21px, 6.4vw, 31px);
  line-height: 1.66;
  letter-spacing: .01em;
  color: #17161a;
  transform: rotate(-1.2deg);
  transform-origin: left center;
  word-break: keep-all;
}
/* 신랑 편지는 사진이 사라진 자리로 글이 올라와 앉습니다 */
.lt--groom .lt__hand,
.lt--bride .lt__hand { margin: 0 9%; }
/* 사진이 사라진 자리로 글이 올라와 앉습니다 */
.lt--groom .lt__hand,
.lt--bride .lt__hand { margin-top: -13%; }

/* overflow:hidden + 아래 -2px — 사진 맨 아랫줄이 검은 선처럼 보이는 것을 막습니다
   (확대 배율에 따라 그라데이션이 마지막 1px를 못 덮는 경우가 있어 아예 잘라냅니다) */
.lt__frame { position: relative; overflow: hidden; }
.lt__img { display: block; width: 100%; margin-bottom: -2px; }

/* 사진이 흰 종이로 서서히 사라지는 그라데이션
   신부: 사진 위쪽 / 신랑: 사진 아래쪽 */
.lt__fade { position: absolute; left: 0; right: 0; height: 40%; pointer-events: none; }
.lt--bride .lt__fade,
.lt--groom .lt__fade {
  bottom: -1px;
  height: calc(48% + 2px);
  background: linear-gradient(0deg,
    #fff 0%, rgba(255,255,255,.98) 18%, rgba(255,255,255,.82) 40%,
    rgba(255,255,255,.5) 62%, rgba(255,255,255,.18) 84%, rgba(255,255,255,0) 100%);
}

/* 스캔한 손편지를 그대로 올릴 때 */
.lt--scan { padding: 0 22px; }
.lt--scan img { display: block; width: 100%; }

/* ═══════════ 4. 갤러리 (풀블리드 바둑판) ═══════════ */
.gallery {
  background: var(--bg);
}
.gallery__wrap { position: relative; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;   /* 테두리 없이 사진끼리 딱 붙게 */
}
/* 사진이 4줄 이상일 때: 3줄 반까지만 보이고 4번째 줄부터 그라데이션 */
.gallery__wrap.is-collapsed .gallery__grid {
  /* 한 칸 = 화면폭/3 × 세로비 4/3, 3.5줄 */
  max-height: calc(min(100vw, var(--max-w)) / 3 * 4 / 3 * 3.5);
  overflow: hidden;
}
/* 더보기: 핑크색 그라데이션 띠 + "더보기" 글자 (누르면 전체 펼침) */
.gallery__more {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 130px;
  border: none;
  cursor: pointer;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  background: linear-gradient(180deg,
    rgba(250, 137, 163, 0) 0%,
    rgba(250, 137, 163, .45) 55%,
    rgba(250, 137, 163, .96) 100%);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #47121f;
  -webkit-tap-highlight-color: transparent;
}
.gallery__wrap.is-collapsed .gallery__more { display: flex; }
.gallery__grid a {
  /* 세로 3:4 비율 — aspect-ratio 미지원 브라우저(구형 삼성 인터넷 등)까지
     동작하도록 padding 비율 방식 사용 */
  position: relative;
  display: block;
  padding-top: 133.333%;
  overflow: hidden;
}
.gallery__grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__grid a.is-hidden { display: none; }

/* ═══════════ 5. 달력 (이미지) + 카운트다운 ═══════════ */
.calendar {
  /* 캘린더 사진 속 검정 종이에서 뽑아낸 색·질감 — SAVE THE DATE부터 카운트다운까지 이어집니다 */
  background: #1e1e1e url("../assets/calendar-bg.jpg") top center / 240px auto repeat;
  color: #ece5e6;
  padding-left: 0;
  padding-right: 0;
}
.calendar .section__label { color: var(--accent-deep); }
.calendar .section__title { color: #f6f1f2; }
.calendar .section__title::after { background: var(--accent); opacity: .6; }

/* 이미지를 좌우 끝까지 채워 배경과 자연스럽게 이어지게 */
.cal-photo {
  display: block;
  width: 100%;
  margin: 24px auto 48px;   /* 아래 여백 = 카운트다운과의 간격 */
}

/* 카운트다운 타일 */
.countdown { padding: 0 22px; }
.countdown__row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
}
.cd-box {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 4px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(250, 137, 163, .22);
}
.cd-box__label {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: .14em;
  text-indent: .14em;
  color: #e0a7b6;
}
.cd-box__num {
  font-family: var(--kr);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  color: #f7f2f3;
}
.cd-sep {
  align-self: center;
  font-size: 17px;
  color: #6f6165;
  padding-bottom: 4px;
}
.countdown__text {
  margin-top: 16px;
  font-size: 14.5px;
  color: #c2b6ba;
  text-align: center;
}
.countdown__text b {
  color: var(--accent);
  font-weight: 700;
}

/* ═══════════ 6. 오시는 길 ═══════════ */
.location {
  padding: 0;   /* 상단/하단 블록이 각자 여백을 가짐 */
  color: #33272c;
  /* 손으로 뜬 종이 질감 (이음새 없는 타일) */
  background: #f4f1ea url("../assets/paper-bg.jpg") top left / 300px auto repeat;
}
/* 상단: 제목 → 이름·주소 → 지도 → 버튼 → 일러스트 */
.location__hero {
  padding: 54px 28px 16px;
  background: transparent;
}
.location__hero .location__address { color: #5a4a51; }
/* 성당 일러스트 — multiply로 흰 여백을 없애 종이 위에 직접 그린 느낌 */
.location__illust {
  display: block;
  width: 96%;
  margin: 4px auto 10px;   /* 아래가 지도에 가리지 않도록 여유를 둠 */
  mix-blend-mode: multiply;
}
/* 하단: 지하철·버스·주차 */
.location__body {
  padding: 0 28px 50px;
  background: transparent;
}
.location__body .location__transit { margin-top: 14px; border-top: none; }
.location .section__label { color: #c9566f; }
.location .section__title { color: #2c2126; }
.location .section__title::after { background: #c9566f; }
.location__address,
.location .transit-item__text { color: #6e5c63; }
.location .btn--outline {
  background: rgba(255, 255, 255, .88);
  color: #4a353c;
  border-color: rgba(201, 86, 111, .45);
}
.location .map-btn {
  background: rgba(255, 255, 255, .92);
  color: #33272c;
  border: 1px solid rgba(0, 0, 0, .08);
}
.location .location__transit,
.location .transit-item { border-color: rgba(0, 0, 0, .1); }
.location .transit-item__icon { background: rgba(201, 86, 111, .12); }

.location .section__title { margin-bottom: 6px; }
.location .section__title::after { margin-top: 14px; }
.location__venue {
  font-family: var(--myeongjo);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 6px;
}
.location__address {
  font-size: 13.5px;
  color: var(--ink-light);
  margin-bottom: 0;
}
/* 실제 지도 임베드 — 테두리 없이 부드러운 라운드 */
.location__map {
  position: relative;
  width: 100%;
  margin: 0 auto 18px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(80, 55, 50, .16);
}
.location__map iframe,
.location__map .location__canvas {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}
.location__map iframe { pointer-events: none; }   /* 구글 지도 대체 화면일 때도 고정 */

.location__map-btns {
  display: flex;
  flex-wrap: wrap;          /* 아주 좁은 화면에서 줄바꿈 */
  gap: 8px;
  justify-content: center;
  margin-bottom: 0;
}
.map-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
}
.map-btn__dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.map-btn__dot--naver { background: #03c75a; }
.map-btn__dot--kakao { background: #FEE500; color: #3C1E1E; }
.map-btn__dot--tmap  { background: #e0352b; }

.location__transit {
  margin-top: 36px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.transit-item {
  display: flex;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.transit-item__icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250,137,163,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.transit-item__label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.transit-item__text {
  font-size: 13px;
  color: var(--ink-light);
}

/* ═══════════ 7. 계좌번호 ═══════════ */
/* ═══════════ 6.5 안내사항 (탭) ═══════════ */
/* 흰 레이스 바탕 — 밝은 섹션이라 글자색을 어둡게 씁니다 */
.info {
  /* 레이스 무늬를 '오시는 길'과 같은 아이보리 종이색으로 물들여, 두 섹션이 자연스럽게 이어지게 */
  background: #f4f1ea url("../assets/info-bg-ivory.jpg") center top / 100% auto repeat-y;
  color: #35292e;
}
.info .section__label { color: #c9566f; }
.info .section__title { color: #2c2126; }
.info .section__title::after { background: #c9566f; }
/* 월계수 잎을 양옆에 둔 인사 문구 */
.info__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 26px;
  font-size: 14.5px;
  line-height: 1.95;
  color: #6b5a60;
}
.info__headline-text { flex: 0 1 auto; }
.info__laurel { flex: 0 0 auto; width: 46px; color: #d98ba0; }
.info__laurel svg { display: block; width: 100%; height: auto; }
.info__laurel--r { transform: scaleX(-1); }
/* --- 탭 (알약형 세그먼트) --- */
.info__tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(120, 80, 95, .14);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(120, 80, 95, .07);
}
.info__tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 4px;
  font-family: var(--kr);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: #8a747c;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .22s, background .22s;
  -webkit-tap-highlight-color: transparent;
}
.info__tab.is-active {
  color: #fff;
  font-weight: 700;
  background: #e0798f;
  box-shadow: 0 3px 12px rgba(200, 90, 120, .28);
}
/* --- 내용 --- */
.info__panel {
  text-align: left;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(120, 80, 95, .13);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(120, 80, 95, .08);
  animation: info-in .32s ease both;
}
@keyframes info-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.info__img {
  display: block;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}
.info__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #2c2126;
  margin-bottom: 12px;
}
.info__icon { font-size: 17px; flex: 0 0 auto; }
.info__text {
  font-size: 14.3px;
  line-height: 1.95;
  color: #6e5c63;
  white-space: pre-line;
}
/* 대절버스 시간표 */
.info__stops { margin-top: 16px; }
.info__stop {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px dashed rgba(120, 80, 95, .22);
}
.info__stop:last-child { border-bottom: 1px dashed rgba(120, 80, 95, .22); }
.info__stop-time {
  font-family: "Barlow Condensed", var(--kr);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .06em;
  color: #c9566f;
  flex: 0 0 auto;
}
.info__stop-place { font-size: 14.5px; color: #2c2126; font-weight: 500; }
.info__stop-desc {
  margin-left: auto;
  font-size: 12px;
  color: #8a747c;
  border: 1px solid rgba(120, 80, 95, .2);
  border-radius: 999px;
  padding: 2px 9px;
  flex: 0 0 auto;
}
/* 다정하게 덧붙이는 한 줄 */
.info__note {
  display: flex;
  gap: 7px;
  margin-top: 16px;
  padding: 11px 13px;
  font-size: 13.2px;
  line-height: 1.7;
  color: #b0546c;
  background: rgba(224, 121, 143, .1);
  border-radius: 10px;
}
.info__note::before { content: "♡"; flex: 0 0 auto; opacity: .85; }

.accounts { background: var(--bg-soft); }
.accounts__desc {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 28px;
}
/* 계좌 드롭다운 그룹 (신랑측/신부측 마음 전하실 곳) */
.acc-group { margin-bottom: 12px; }
.acc-group__head {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 20px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.acc-group__head::after {
  content: "▾";
  color: var(--accent);
  transition: transform .3s;
}
.acc-group.is-open .acc-group__head { border-radius: 14px 14px 0 0; }
.acc-group.is-open .acc-group__head::after { transform: rotate(180deg); }
.acc-group__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
  background: rgba(255, 255, 255, .03);
  border-radius: 0 0 14px 14px;
  /* 좌우 여백은 항상 고정 — 열릴 때 안쪽 카드가 옆으로 밀리지 않도록 */
  padding: 0 10px;
}
.acc-group.is-open .acc-group__body { max-height: 900px; }
/* 위아래 여백은 카드 마진으로 (패딩이 갑자기 생기면 덜컥거림) */
.acc-group__body .acc-card:first-child { margin-top: 12px; }
.acc-group__body .acc-card:last-child { margin-bottom: 10px; }

/* 계좌 카드 (역할 + 이름 + 전화 + 카카오페이 / 계좌번호 + 복사) */
.acc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  text-align: left;
}
.acc-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 10px;
}
.acc-card__role { font-size: 13px; color: var(--ink-light); }
.acc-card__name { font-size: 15.5px; font-weight: 700; }
.acc-card__tel {
  display: inline-flex;
  width: 40px; height: 40px;   /* 손가락으로 누르기 쉬운 크기 */
  margin: -7px 0;
  align-items: center; justify-content: center;
  color: var(--accent);
}
.acc-card__tel svg { width: 16px; height: 16px; }
.acc-card__pay {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #2f2a2d;
  border: 1px solid #3c3539;
  color: #FEE500;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.acc-card__num {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.acc-card__num svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ink-light); }
.acc-card__num:active { background: rgba(255, 255, 255, .1); }

/* ═══════════ 8. RSVP ═══════════ */
.rsvp__desc {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 28px;
}
.rsvp__form, .guestbook__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.form-row { display: flex; gap: 10px; }
.form-row--pair .chip { flex: 1; }
.chip {
  position: relative;
  display: block;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: block;
  text-align: center;
  padding: 11px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 14px;
  color: var(--ink-light);
  transition: all .2s;
}
.chip input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(250,137,163,.16);
  font-weight: 500;
}
input[type="text"], input[type="number"], input[type="tel"], input[type="password"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--card);
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: none; }
.rsvp__done {
  margin-top: 20px;
  font-family: var(--serif);
  color: var(--accent-deep);
  font-size: 15px;
}

/* ═══════════ 9. 방명록 ═══════════ */
.guestbook { background: var(--bg-soft); }
.guestbook__desc {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 24px;
}
.guestbook__list {
  list-style: none;
  margin-top: 28px;
  text-align: left;
}
.gb-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
.gb-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.gb-item__name { font-weight: 700; font-size: 14px; }
.gb-item__date { font-size: 11px; color: var(--ink-light); }
.gb-item__msg { font-size: 14px; line-height: 1.8; }
.gb-item__del {
  background: none;
  border: none;
  color: var(--ink-light);
  font-size: 11px;
  cursor: pointer;
  margin-top: 6px;
  text-decoration: underline;
  padding: 0;
}
.gb-empty {
  text-align: center;
  color: var(--ink-light);
  font-size: 13px;
  padding: 20px 0;
}

/* ═══════════ 10. 공유 · 푸터 ═══════════ */
.share { padding-top: 40px; }
.share__btns { display: flex; flex-direction: column; gap: 10px; }
.footer {
  padding: 48px 28px 60px;
  text-align: center;
  background: var(--bg-soft);
}
.footer p:first-child {
  font-family: var(--myeongjo);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.footer__copy {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink-light);
}

/* ═══════════ BGM 버튼 ═══════════ */
.bgm-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(31,26,29,.85);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bgm-btn svg { width: 16px; height: 16px; fill: var(--accent); }
.bgm-btn .icon-pause { display: none; }
.bgm-btn.is-playing .icon-play { display: none; }
.bgm-btn.is-playing .icon-pause { display: block; }
.bgm-btn.is-unavailable { display: none; }

/* ═══════════ 라이트박스 ═══════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20,15,12,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;   /* 라이트박스에서 핀치줌·스크롤 방지 */
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 6px;
}
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 44px;
  cursor: pointer;
  padding: 20px 12px;
  line-height: 1;
}
.lightbox__nav--prev { left: 4px; }
.lightbox__nav--next { right: 4px; }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  letter-spacing: .1em;
}

/* ═══════════ 모달 ═══════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20,15,12,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__panel {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 28px 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
}
.modal__title {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 20px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
}
.contact-row__role { color: var(--ink-light); font-size: 12px; }
.contact-row__links a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(250,137,163,.16);
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-left: 6px;
  font-size: 15px;
}
.modal__close { margin-top: 20px; }

/* 참석 의사 전달 팝업 */
.modal--rsvp { background: rgba(0, 0, 0, .82); }
.modal__panel--rsvp {
  position: relative;
  max-width: 360px;
  text-align: center;
  max-height: 88svh;
  overflow-y: auto;
  background: #171315;
  border: 1px solid rgba(250, 137, 163, .45);
  border-radius: 20px;
  padding: 24px 22px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 0 6px rgba(250, 137, 163, .07);
}
.modal__panel--rsvp .section__label { margin-bottom: 6px; }
.modal__panel--rsvp .modal__title { margin-bottom: 14px; }
.modal__panel--rsvp .rsvp__desc { font-size: 13.5px; margin-bottom: 18px; }

/* 질문별로 묶어서 고르기 쉽게 */
.rsvp__field { text-align: left; }
.rsvp__field + .rsvp__field { margin-top: 14px; }
.rsvp__field[hidden] { display: none; }
.rsvp__q {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.rsvp__q--gap { margin-top: 14px; }
.rsvp__form .chip span { padding: 12px 0; font-size: 14.5px; }
.rsvp__submit { margin-top: 20px; }

/* 인원 선택 */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 6px;
}
.stepper__btn {
  width: 42px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: rgba(250, 137, 163, .16);
  color: var(--accent-deep);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper__value { flex: 1; text-align: center; font-size: 15px; color: var(--ink-light); }
.stepper__value b { font-size: 18px; font-weight: 700; color: var(--ink); margin-right: 2px; }
.modal__x {
  position: absolute;
  top: 8px; right: 12px;
  width: 32px; height: 32px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-light);
  background: none;
  border: 0;
  cursor: pointer;
}

/* ═══════════ 토스트 ═══════════ */
.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--accent);
  color: #171214;
  font-size: 13px;
  padding: 11px 22px;
  border-radius: 999px;
  white-space: nowrap;
  animation: toast-in .3s ease;
}
.toast[hidden] { display: none; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* PC에서 볼 때 */
@media (min-width: 481px) {
  body { padding: 0; }
}

/* ═══════════ 게스트 스냅 · 포토 빙고 ═══════════ */
.snap { background: var(--bg-soft); }
.snap__desc {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 22px;
}
.snap__btn { max-width: 260px; margin: 0 auto; }
.snap__status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent-deep);
  min-height: 18px;
}

/* --- 3×3 미션 판 --- */
.bingo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.bingo-cell {
  position: relative;
  display: block;
  width: 100%;
  padding: 0 0 100%;      /* 정사각형 (aspect-ratio 미지원 브라우저 대응) */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, box-shadow .2s;
}
.bingo-cell__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 5px;
  text-align: center;
}
.bingo-cell__icon { font-size: 21px; line-height: 1; }
.bingo-cell__text {
  font-family: var(--kr);
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--ink-light);
  word-break: keep-all;
}
.bingo-cell__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.bingo-cell__check {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #2a1219;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  display: none;
}
/* 사진이 채워진 칸 */
.bingo-cell.is-filled .bingo-cell__img,
.bingo-cell.is-filled .bingo-cell__check { display: block; }
.bingo-cell.is-filled .bingo-cell__inner {
  justify-content: flex-end;
  gap: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,0) 80%);
}
.bingo-cell.is-filled .bingo-cell__icon { display: none; }
.bingo-cell.is-filled .bingo-cell__text { color: #fff; }
/* 완성된 줄에 포함된 칸 */
.bingo-cell.is-line {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(250,137,163,.35);
}

.bingo__status {
  margin: 16px 0 20px;
  font-size: 13.5px;
  color: var(--ink-light);
  min-height: 20px;
}
.bingo__status b { color: var(--accent); font-weight: 700; }

.bingo__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.bingo__form button[disabled] { opacity: .45; cursor: default; }
.bingo__note {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-light);
  text-align: center;
  opacity: .8;
}
.bingo__done {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
  color: var(--accent-deep);
}
/* 청첩장 안의 미리보기 판 (누를 수 없음) + 이동 버튼 */
.bingo__grid--preview { pointer-events: none; }
.bingo__grid--preview .bingo-cell { cursor: default; }
.bingo__go { display: block; max-width: 280px; margin: 22px auto 0; }
.bingo__go-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-light);
  opacity: .8;
}

/* 포토 빙고 전용 페이지 (bingo.html) */
.bingo-page__head {
  padding: 46px 24px 6px;
  text-align: center;
  background: var(--bg-soft);
}
.bingo-page__label {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--accent);
}
.bingo-page__names {
  font-family: var(--kr);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
}
.bingo-page__date {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-light);
}
.bingo-page__head + .snap { padding-top: 34px; }
.bingo-page__foot {
  padding: 0 24px 54px;
  text-align: center;
  background: var(--bg-soft);
}
.bingo-page__back {
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
/* 연결 진단 패널 (?debug=1) */
.bingo__debug { margin-top: 30px; text-align: left; }
.bingo__debug .btn { width: 100%; margin-bottom: 10px; }
.bingo__debug pre {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-light);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  min-height: 40px;
}
.bingo__notice {
  margin: 4px 0 22px;
  font-size: 13.5px;
  color: var(--accent-deep);
}

/* 완성한 빙고판 콜라주 */
.bingo__collage { margin-top: 22px; }
.bingo__collage img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.bingo__collage .btn { max-width: 280px; margin: 0 auto; }
.bingo__collage-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-light);
  opacity: .8;
}

/* 빙고와 무관한 자유 업로드 */
.bingo__extra {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.bingo__extra-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.bingo__free {
  display: block;
  max-width: 260px;
  margin: 0 auto;
  cursor: pointer;
}
/* 완료 화면의 "다시 응모하기" 텍스트 버튼 */
.bingo__again {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--kr);
  font-size: 12.5px;
  color: var(--ink-light);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
  cursor: pointer;
}

/* ═══════════ 0. 인트로 스플래시 (베일 봉투 초대장) ═══════════ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #050404;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity .8s ease;
}
.splash.is-closed { opacity: 0; pointer-events: none; }
body.no-scroll { overflow: hidden; height: 100vh; }

/* 봉투 사진 — 문구는 이미지에 인쇄돼 있고, 손님 이름만 빈칸 위에 얹습니다 */
.splash__photo {
  position: relative;
  /* 이미지 비율 0.75 — 화면 높이에 맞춰 줄어들되 너무 커지지 않게 */
  --fw: min(90vw, 400px);
  --fw: min(90vw, 400px, calc(76svh * 0.7227));
  width: var(--fw);
}
.splash__photo > img {
  display: block;
  width: 100%;
}
/* 카드에서 지운 'Dear. ____ 님' 자리 (이미지에서 실측한 위치) */
.splash__guest {
  position: absolute;
  left: 52.2%;
  top: 43.8%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .34em;
  white-space: nowrap;
  max-width: 82%;
  color: #55483f;
  mix-blend-mode: multiply;   /* 종이 결이 글자에 비치도록 */
}
.splash__guest .sg-en {
  font-family: var(--en);
  font-style: italic;
  font-size: calc(var(--fw) * 0.046 * var(--tag-scale, 1));
  letter-spacing: .01em;
}
.splash__guest .sg-name {
  font-family: "Nanum Myeongjo", serif;
  font-size: calc(var(--fw) * 0.050 * var(--tag-scale, 1));
  letter-spacing: .04em;
}
.splash__guest .sg-suffix {
  font-family: "Nanum Myeongjo", serif;
  font-size: calc(var(--fw) * 0.036 * var(--tag-scale, 1));
}
.splash__guest .sg-line {
  font-family: "Nanum Myeongjo", serif;
  font-size: calc(var(--fw) * 0.042 * var(--tag-scale, 1));
  letter-spacing: .03em;
}

.splash__open {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .1em;
  padding: 12px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  color: #f0eae4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════ 3.5 부모님의 편지 (핑크 플로럴 · 미니멀) ═══════════ */
.parents {
  background: #f5b7c4 url("../assets/parents-bg.jpg") center top / 100% auto repeat-y;
  color: #3b2f34;
  padding-top: 40px;
  padding-bottom: 84px;
}
.parents__side { margin-top: 0; }
.parents__side + .parents__side { margin-top: 84px; }
.parents__label {
  font-size: 15px;
  font-weight: 500;
  color: #55474c;
}
.parents__who {
  font-size: 21px;
  font-weight: 700;
  color: #2a2226;
  margin: 3px 0 26px;
}
/* 가족사진 — 흰 테두리 폴라로이드 + 마스킹테이프 + 아기 스티커 */
.parents__photo {
  position: relative;
  display: inline-block;
  max-width: 92%;
  background: #fff;
  padding: 6px 6px 9px;
  box-shadow: 0 10px 26px rgba(120, 60, 80, .22);
  transform: rotate(-1.6deg);
}
.parents__photo > img:not(.parents__sticker) { display: block; width: 100%; }
.parents__photo::after {
  content: "";
  position: absolute;
  top: -11px; left: 50%;
  width: 74px; height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(150, 185, 235, .45);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
/* 아기 시절 사진 스티커 — 가족사진 주변에 붙임 */
.parents__sticker {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 7px 14px rgba(90, 40, 55, .34));
}
/* 아기1 — 가족사진 좌상단 */
.parents__sticker--1 {
  width: 36%;
  left: -6%;
  top: -12%;
  transform: rotate(-8deg);
}
/* 아기2 — 부모님 편지 우하단 */
.parents__sticker--2 {
  width: 52%;
  right: -8%;
  bottom: -20%;
  transform: rotate(6deg);
}
/* 편지를 오려 붙인 쪽(신랑)은 가족사진 우하단에 걸쳐 아래로 내려 붙입니다.
   아래로 내려온 만큼 편지 첫 줄이 사진 위로 겹쳐 올라옵니다(세로의 1/3쯤). */
.parents__photo .parents__sticker--2 {
  width: 46%;
  right: -7%;
  bottom: -30%;
  transform: rotate(7deg);
}

/* 아기 사진 주변 손그림 아이콘 (연필 스케치 스캔 이미지) */
.parents__doodle {
  position: absolute;
  z-index: 3;
  display: block;
  height: auto;
  pointer-events: none;
  opacity: .9;
  mix-blend-mode: multiply;   /* 연필이 종이에 스며든 느낌 */
}
.parents__doodle--d1 { right: -8%; top: -7%; transform: rotate(9deg); }
.parents__doodle--d2 { left: -9%; bottom: -8%; transform: rotate(-6deg); }
.parents__doodle--d3 { left: -7%; top: 42%; transform: rotate(-14deg); opacity: .9; }
.parents__doodle--d4 { left: 36%; bottom: -50px; transform: rotate(8deg); opacity: .7; }
/* 별은 여기저기 흩뿌리듯 */
.parents__doodle--d5 { right: -6%; top: 34%; transform: rotate(16deg); opacity: .82; }
.parents__doodle--d6 { left: 22%; top: -7%; transform: rotate(-20deg); opacity: .74; }
.parents__doodle--d7 { right: 16%; bottom: -9%; transform: rotate(24deg); opacity: .78; }

/* 손편지를 한 줄씩 오려 붙인 구성 */
.parents__lines {
  position: relative;
  margin: 40px auto 0;
  width: 96%;
}
.parents__line {
  display: block;
  width: 100%;
  margin-bottom: 10px;   /* 조각끼리 겹치지 않도록 */
  filter: drop-shadow(0 3px 7px rgba(120, 60, 80, .26));
}
.parents__line--1 { transform: rotate(-0.8deg); }
.parents__line--2 { transform: rotate(.9deg) translateX(2%); }
.parents__line--3 { transform: rotate(-.6deg) translateX(-1.5%); }
.parents__line--4 { transform: rotate(1deg) translateX(1%); }

/* 손편지 — 살짝 기울인 카드 + 테이프 */
.parents__letter {
  position: relative;
  margin: 42px auto 0;
  width: 92%;
  transform: rotate(1.2deg);
  box-shadow: 0 12px 28px rgba(120, 60, 80, .2);
  border-radius: 4px;
}
.parents__letter > img:not(.parents__sticker) { display: block; width: 100%; border-radius: 4px; }
.parents__letter::before {
  content: "";
  position: absolute;
  bottom: -9px; left: 8%;
  width: 66px; height: 20px;
  transform: rotate(3deg);
  background: rgba(150, 220, 180, .5);
  z-index: 2;
}


/* ═══════════ PC 웹브라우저 대응 ═══════════
   모바일 기준(480px 카드)으로 만든 화면이라 큰 모니터에서는 글씨가 작아 보입니다.
   zoom 으로 카드 전체를 통째로 키워 비율은 그대로 두고 크기만 올립니다.
   (화면이 넓을수록 더 크게 — 태블릿 1.18배 → 데스크톱 1.34배 → 대형 1.5배) */
@media (min-width: 700px) {
  .invitation { zoom: 1.12; }
  /* zoom 만큼 나눠서 화면 높이를 넘지 않게 보정 */
  .intro__stage { height: min(86svh, 740px); }
  /* 지도만은 확대에서 제외합니다 — 네이버 지도가 확대된 크기를 한 번 더 반영해
     성당 위치가 오른쪽 아래로 밀리기 때문입니다. 보이는 크기는 그대로 유지됩니다. */
  .location__map .location__canvas,
  .location__map iframe { zoom: .8929; height: 291px; }
  .splash__photo { --fw: min(78vw, 440px, calc(78svh * 0.7227)); }
  .bgm-btn { width: 50px; height: 50px; top: 22px; right: 22px; }
  .bgm-btn svg { width: 19px; height: 19px; }
  .modal__panel--rsvp { max-width: 420px; }
  .modal__panel--rsvp .modal__title { font-size: 21px; }
  .modal__panel--rsvp .rsvp__desc { font-size: 15px; }
  .rsvp__q { font-size: 14.5px; }
  .rsvp__form .chip span { padding: 14px 0; font-size: 16px; }
  .rsvp__form input[type="text"] { font-size: 15.5px; padding: 14px 16px; }
  .toast { font-size: 15px; padding: 13px 22px; }
  .splash__open { font-size: 15.5px; padding: 14px 40px; }
}
@media (min-width: 1000px) {
  .invitation { zoom: 1.22; }
  .intro__stage { height: min(79svh, 720px); }
  .splash__photo { --fw: min(60vw, 470px, calc(80svh * 0.7227)); }
  .location__map .location__canvas,
  .location__map iframe { zoom: .8197; height: 317px; }
}
@media (min-width: 1500px) {
  .invitation { zoom: 1.32; }
  .intro__stage { height: min(73svh, 700px); }
  .location__map .location__canvas,
  .location__map iframe { zoom: .7576; height: 343px; }
}
/* zoom 을 지원하지 않는 브라우저에서는 글자만이라도 키웁니다 */
@supports not (zoom: 1.2) {
  @media (min-width: 1000px) {
    .invitation { --max-w: 620px; }
    .section { font-size: 17px; }
  }
}
