/* ======================================================================
   Wedding Invitation 2027 · Style
   White minimal · premium editorial
   ====================================================================== */

:root {
  color-scheme: light only;

  /* palette */
  --outer: #F1F1EF;
  --ivory: #FFFFFF;          /* 페이지 바탕 (화이트) */
  --paper: #FFFFFF;
  --beige: #F8F8F7;          /* 아주 옅은 회색 면 (푸터 등) */
  --beige-2: #F2F2F1;
  --line: #E7E7E7;
  --line-soft: #F0F0F0;
  --ink: #222222;
  --text: #555555;
  --muted: #767676;
  --gold: #B38A84;           /* 포인트: 은은한 로즈 */
  --gold-soft: #E8D6D2;
  --sun: #D07A7A;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 24px rgba(0, 0, 0, .04);

  /* type */
  --serif-ko: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --serif-en: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;

  /* layout */
  --page-w: 460px;
  --gutter: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--outer);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--outer);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 14px; font-size: 13px; text-decoration: none;
}
.skip-link:focus { left: 12px; }

.noscript { padding: 40px 24px; text-align: center; color: var(--ink); }

/* ---------- page frame (PC에서는 가운데 모바일 폭으로) ---------- */
.page {
  position: relative;
  max-width: var(--page-w);
  margin: 0 auto;
  background: var(--ivory);
  min-height: 100vh;
}
@supports (overflow: clip) { .page { overflow-x: clip; } }
@media (min-width: 600px) {
  .page { box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 24px 80px rgba(0, 0, 0, .07); }
}

/* ---------- 공통 섹션 ---------- */
.section {
  position: relative;
  padding: 100px var(--gutter);
  background: #fff;
}
.section + .section::before {                 /* 섹션 사이 짧은 가는 선 */
  content: ""; position: absolute; top: 0; left: 50%;
  width: 28px; height: 1px; margin-left: -14px;
  background: var(--line);
}
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-en {
  display: block;
  font: 500 12px/1 var(--serif-en);
  letter-spacing: .42em;
  padding-left: .42em;
  color: var(--gold);
  text-transform: uppercase;
}
.sec-title {
  margin-top: 14px;
  font: 400 20px/1.5 var(--serif-ko);
  letter-spacing: .04em;
  color: var(--ink);
  text-wrap: balance;
}
.serif { font-family: var(--serif-ko); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 10px;
  background: transparent; color: var(--ink);
  font: 500 14px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-dark { background: var(--ink); color: #fff; }
@media (hover: hover) { .btn-dark:hover { background: #3A3A3A; border-color: #3A3A3A; } }
.btn-line { border-color: #D6D6D6; }
@media (hover: hover) { .btn-line:hover { background: #F7F7F7; border-color: #C8C8C8; } }
.btn-kakao { background: #FEE500; border-color: #FEE500; color: #191919; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 500 13px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.chip svg { width: 15px; height: 15px; }
@media (hover: hover) { .chip:hover { border-color: #CFCFCF; background: #FAFAFA; } }

/* ---------- 사진 / 임시 이미지 영역 ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #F7F7F6 0%, #EFEFEE 60%, #E8E8E6 100%);
}
.ph > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease, transform .8s var(--ease);
}
.ph > img.is-loaded { opacity: 1; }
.ph-label {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  padding: 8px;
  color: #A9A9A9;
  font: 500 11px/1.2 var(--serif-en);
  letter-spacing: .3em;
  text-align: center;
  font-variant-numeric: lining-nums;
}
.ph-label svg { width: 22px; height: 22px; opacity: .75; }
.ph-label small {
  display: block; margin-top: 2px;
  font: 400 10px/1.4 var(--sans); letter-spacing: 0;
  word-break: break-all; opacity: .85;
}
.ph.is-missing > img { display: none; }
.ph.is-missing .ph-label { display: flex; }

/* ======================================================================
   1. HERO
   ====================================================================== */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(env(safe-area-inset-top) + 46px) var(--gutter) calc(env(safe-area-inset-bottom) + 22px);
  text-align: center;
  background: var(--ivory);
}
.hero-head { flex: none; }
.hero-kicker {
  font: 500 12.5px/1 var(--serif-en);
  letter-spacing: .44em; padding-left: .44em;
  color: var(--muted);
}
.hero-en {
  margin-top: 14px;
  font: italic 400 15px/1 var(--serif-en);
  letter-spacing: .16em;
  color: var(--gold);
}
.hero-names {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  font: 400 clamp(22px, 6.6vw, 27px)/1.3 var(--serif-ko);
  letter-spacing: .16em;
  color: var(--ink);
}
.hero-names .name { padding-left: .16em; }
.hero-names .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-soft);
  margin: 0 .55em;
}
.hero-photo {
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  max-height: 640px;
  margin: 28px 0 26px;
}
.hero-photo::after {           /* 얇은 안쪽 액자선 */
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(255, 255, 255, .55);
  pointer-events: none;
}
.hero-photo.is-missing::after { border-color: rgba(255, 255, 255, .7); }
.hero-info { flex: none; }
.hero-date {
  font: 500 18px/1 var(--serif-en);
  letter-spacing: .2em; padding-left: .2em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.hero-time {
  margin-top: 9px;
  font: 500 13.5px/1 var(--serif-en);
  letter-spacing: .26em; padding-left: .26em;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}
.hero-venue {
  margin-top: 14px;
  font: 400 13.5px/1.5 var(--serif-ko);
  letter-spacing: .08em;
  color: var(--text);
}
.scroll-cue {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  margin-top: 22px;
  min-width: 44px; min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  font: 500 9.5px/1 var(--serif-en);
  letter-spacing: .4em; padding-left: .4em;
}
.scroll-cue i {
  position: relative; display: block;
  width: 1px; height: 34px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -14px;
  width: 1px; height: 14px;
  background: var(--gold);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { top: -14px; } 70%, 100% { top: 34px; } }

/* 전체화면 사진형 (design.heroStyle = "fullscreen") */
.hero--full { padding: 0; justify-content: flex-end; color: #fff; }
.hero--full .hero-photo {
  position: absolute; inset: 0;
  margin: 0; max-height: none; min-height: 0;
}
.hero--full .hero-photo::after {
  inset: 0; border: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, .28) 0%, rgba(20, 18, 16, 0) 26%, rgba(20, 18, 16, 0) 52%, rgba(20, 18, 16, .55) 100%);
}
.hero--full .hero-head {
  position: absolute; left: 0; right: 0;
  top: calc(env(safe-area-inset-top) + 52px);
  z-index: 1;
}
.hero--full .hero-info,
.hero--full .scroll-cue { position: relative; z-index: 1; }
.hero--full .hero-info { padding: 0 var(--gutter); }
.hero--full .scroll-cue { margin: 22px 0 calc(env(safe-area-inset-bottom) + 22px); }
.hero--full .hero-kicker,
.hero--full .hero-names,
.hero--full .hero-date,
.hero--full .hero-venue { color: #fff; }
.hero--full .hero-time,
.hero--full .scroll-cue { color: rgba(255, 255, 255, .82); }
.hero--full .hero-en { color: #F6E3E0; }
.hero--full .hero-names .dot { background: rgba(255, 255, 255, .8); }
.hero--full .scroll-cue i { background: rgba(255, 255, 255, .35); }
.hero--full .scroll-cue i::after { background: #fff; }
.hero--full .hero-head, .hero--full .hero-info { text-shadow: 0 1px 18px rgba(0, 0, 0, .18); }
.hero--full .hero-photo.is-missing { background: linear-gradient(165deg, #9C9C9C 0%, #777 55%, #5A5A5A 100%); }
.hero--full .ph-label { color: rgba(255, 255, 255, .7); }

/* 커버형 (design.heroStyle = "cover") — 사진이 위쪽에 크게, 아래로 흰 바탕에 녹아듦 */
.hero--cover { display: block; padding: 0 0 calc(env(safe-area-inset-bottom) + 22px); text-align: left; }
.hero--cover .hero-photo {
  position: relative;
  width: 100%;
  height: 74vh; height: 74svh;
  min-height: 440px; max-height: 780px;
  margin: 0;
}
.hero--cover .hero-photo::before {           /* 위쪽 글씨가 잘 보이도록 옅은 안개 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24%; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hero--cover .hero-photo::after {            /* 아래쪽은 흰 바탕으로 자연스럽게 */
  inset: auto 0 0 0; height: 54%; border: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .5) 38%, rgba(255, 255, 255, .9) 64%, #fff 86%);
}
.hero--cover .hero-photo.is-missing { background: linear-gradient(172deg, #F4F4F3 0%, #EAEAE8 62%, #E3E3E1 100%); }
.hero--cover .hero-photo .ph-label { padding-bottom: 18%; }
.hero--cover .hero-photo > img.is-loaded { animation: heroZoom 3.2s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: none; } }
.hero-top {
  position: absolute; z-index: 2;
  top: calc(env(safe-area-inset-top) + 28px); left: 26px; right: 78px;
  display: flex; justify-content: space-between;
  font: 600 12.5px/1 var(--sans);
  letter-spacing: .34em;
  color: rgba(34, 34, 34, .72);
}
.hero-body { position: relative; z-index: 2; margin-top: -118px; padding: 0 28px; }
.hero--cover .hero-kicker {
  font: 600 11.5px/1 var(--sans);
  letter-spacing: .3em; padding-left: 0;
  color: var(--muted);
}
.hero--cover .hero-names {
  justify-content: flex-start;
  margin-top: 16px;
  font: 400 clamp(28px, 8.4vw, 34px)/1.25 var(--serif-ko);
  letter-spacing: .04em;
}
.hero--cover .hero-names .name { padding-left: 0; }
.hero--cover .hero-names .amp {
  margin: 0 .32em;
  font: italic 400 .78em/1 var(--serif-en);
  color: #C3A6A1;
}
.hero--cover .hero-en { margin-top: 10px; }
.hero-line { height: 1px; margin: 22px 0 16px; background: var(--line); }
.hero--cover .hero-date {
  font: 500 16px/1.4 var(--serif-en);
  letter-spacing: .12em; padding-left: 0;
  font-variant-numeric: lining-nums;
}
.hero--cover .hero-date .sep { margin: 0 .55em; color: var(--gold-soft); }
.hero--cover .hero-venue { margin-top: 6px; font-size: 14px; letter-spacing: .04em; }
.hero--cover .scroll-cue { margin: 26px auto 0; }
.js-anim .hero--cover .hero-top { animation-delay: .25s; }
.js-anim .hero--cover .hero-body { animation-delay: .4s; }

/* 첫 화면 등장 */
.js-anim .hero > * { animation: heroIn 1.3s var(--ease) both; }
.js-anim .hero .hero-head { animation-delay: .1s; }
.js-anim .hero .hero-photo { animation-name: heroPhoto; animation-duration: 1.6s; }
.js-anim .hero .hero-info { animation-delay: .45s; }
.js-anim .hero .scroll-cue { animation-delay: .8s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroPhoto { from { opacity: 0; } to { opacity: 1; } }

/* ======================================================================
   2. 초대의 글
   ====================================================================== */
.sec-invitation { padding-top: 108px; }
.inv-msg {
  text-align: center;
  font: 400 15px/2.05 var(--serif-ko);
  letter-spacing: .01em;
  color: var(--text);
  white-space: pre-line;
}
.inv-divider {
  width: 1px; height: 44px;
  margin: 52px auto;
  background: linear-gradient(var(--gold-soft), rgba(232, 214, 210, 0));
}
.family {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 18px;
  font-family: var(--serif-ko);
}
.family .parents { text-align: right; font-size: 15px; color: var(--ink); letter-spacing: .03em; }
.family .parents .sep { color: var(--gold-soft); margin: 0 .3em; }
.family .rel { font-size: 13px; color: var(--muted); white-space: nowrap; }
.family .child { font-size: 16.5px; font-weight: 500; color: var(--ink); letter-spacing: .08em; white-space: nowrap; }
.deceased { font-size: .84em; color: var(--muted); margin-right: .25em; }
.deceased-flower { display: inline-block; width: 1.15em; height: 1.15em; margin-right: .3em; vertical-align: -.2em; }
.deceased-flower svg { display: block; width: 100%; height: 100%; }

/* ======================================================================
   3. 갤러리
   ====================================================================== */
.sec-gallery { padding-left: 18px; padding-right: 18px; }
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.g-grid > li.is-extra { display: none; }
.g-grid.is-expanded > li.is-extra { display: block; animation: fadeUp .7s var(--ease) both; }
.g-item {
  display: block; width: 100%;
  aspect-ratio: var(--thumb-ratio, 3 / 4);
  padding: 0; border: 0; border-radius: 6px;
  cursor: zoom-in;
}
@supports not (aspect-ratio: 1 / 1) { .g-item { height: 0; padding-bottom: 133.33%; } }
.g-item .ph-label { font-size: 10px; letter-spacing: .26em; gap: 7px; }
.g-item .ph-label svg { width: 18px; height: 18px; }
@media (hover: hover) { .g-item:hover > img.is-loaded { transform: scale(1.035); } }
.g-more { display: flex; justify-content: center; margin-top: 28px; }
.g-more .chip svg { transition: transform .3s var(--ease); }
.g-more .chip[aria-expanded="true"] svg { transform: rotate(180deg); }
.g-hint { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 라이트박스 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 14, 14, .96);
  color: #fff;
  opacity: 0;
  transition: opacity .32s ease;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.lightbox.is-open { opacity: 1; }
.lb-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(env(safe-area-inset-top) + 58px);
  padding: env(safe-area-inset-top) 6px 0 22px;
}
.lb-counter {
  font: 500 13px/1 var(--serif-en);
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .78);
  font-variant-numeric: lining-nums tabular-nums;
}
.icon-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  padding: 0; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }
.lb-viewport { position: absolute; inset: 0; overflow: hidden; }
.lb-track {
  display: flex; height: 100%;
  will-change: transform;
  transition: transform .42s var(--ease);
}
.lb-track.is-dragging,
.lb-track.is-dragging .lb-fig { transition: none; }
.lb-slide {
  flex: 0 0 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 64px) 10px calc(env(safe-area-inset-bottom) + 64px);
}
.lb-fig {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  max-width: 100%; max-height: 100%;
  transition: transform .32s var(--ease), opacity .32s;
}
.lb-fig img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  max-height: calc(100svh - 140px);
  width: auto; height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
}
.lb-fig .ph-label { display: none; }
.lb-fig.is-missing {
  width: min(76vw, 360px);
  aspect-ratio: 3 / 4;
  background: linear-gradient(155deg, #353535 0%, #2A2A2A 100%);
}
.lb-fig.is-missing img { display: none; }
.lb-fig.is-missing .ph-label { display: flex; color: rgba(255, 255, 255, .5); }
.lightbox.is-opening .is-current .lb-fig { animation: lbZoom .42s var(--ease) both; }
@keyframes lbZoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.lb-nav {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .8);
}
.lb-nav:disabled { opacity: .2; cursor: default; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
@media (hover: none) and (pointer: coarse) { .lb-nav { opacity: .55; } }

/* ======================================================================
   4. 예식 일정
   ====================================================================== */
.cal-date {
  text-align: center;
  font: 500 30px/1 var(--serif-en);
  letter-spacing: .14em; padding-left: .14em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.cal-sub {
  margin-top: 14px;
  text-align: center;
  font: 400 14.5px/1.6 var(--serif-ko);
  letter-spacing: .03em;
  color: var(--text);
}
.cal-sub small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.cal {
  margin-top: 38px;
  padding: 26px 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal caption {
  padding-bottom: 20px;
  font: 500 15px/1 var(--serif-en);
  letter-spacing: .3em; padding-left: .3em;
  color: var(--ink);
}
.cal caption span { display: block; margin-top: 8px; font: 400 12px/1 var(--sans); letter-spacing: .08em; color: var(--muted); }
.cal th {
  padding-bottom: 12px;
  font: 500 11.5px/1 var(--sans);
  color: var(--muted);
}
.cal td {
  height: 44px;
  text-align: center;
  font: 500 16px/1 var(--serif-en);
  color: var(--text);
  font-variant-numeric: lining-nums;
}
.cal td .d {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
}
.cal .sun { color: var(--sun); }
.cal .target .d {
  background: var(--ink); color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}

.dday { margin-top: 44px; text-align: center; }
.dday-label {
  font: 600 15px/1 var(--serif-en);
  letter-spacing: .32em; padding-left: .32em;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}
.countdown {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 6px;
  margin-top: 22px;
}
.cd-unit { min-width: 58px; }
.cd-num {
  display: block;
  font: 500 30px/1 var(--serif-en);
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.cd-cap {
  display: block; margin-top: 9px;
  font: 600 9.5px/1 var(--sans);
  letter-spacing: .2em; padding-left: .2em;
  color: var(--muted);
}
.cd-sep { font: 400 24px/1 var(--serif-en); color: #D4D4D4; padding-top: 2px; }
.dday-msg {
  margin-top: 26px;
  font: 400 14.5px/1.85 var(--serif-ko);
  color: var(--text);
  white-space: pre-line;
}
.heart { color: var(--gold); }
.heart svg { display: inline-block; width: .82em; height: .82em; margin: 0 .08em; vertical-align: -.08em; }

/* ======================================================================
   5. 오시는 길
   ====================================================================== */
.venue { text-align: center; }
.venue-name { font: 500 18px/1.5 var(--serif-ko); color: var(--ink); letter-spacing: .04em; }
.venue-hall { margin-top: 4px; font: 400 14px/1.5 var(--serif-ko); color: var(--text); }
.venue-addr { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--text); }
.venue-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.map-img { margin-top: 30px; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.map-img img { width: 100%; height: auto; }
.map-img.is-missing { display: none; }
.map-links {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 8px;
  margin-top: 30px;
}
.map-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 500 13.5px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
@media (hover: hover) { .map-btn:hover { border-color: #CFCFCF; background: #FAFAFA; } }
.map-btn i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.map-btn .dot-naver { background: #03C75A; }
.map-btn .dot-kakao { background: #F4CF00; }

/* 교통 안내 · 주차 안내 (카드형) */
.ways-head {
  display: flex; align-items: center; gap: 8px;
  margin: 50px 0 14px;
  font: 600 14px/1 var(--sans);
  color: var(--ink);
}
.ways-head::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.ways { display: grid; gap: 10px; }
.way { padding: 18px; border-radius: 16px; background: var(--beige); }
.way-head { display: flex; align-items: center; gap: 10px; }
.way-head h4 { margin: 0; font: 600 14px/1 var(--sans); color: var(--ink); }
.way-ic {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.way-ic svg { width: 17px; height: 17px; }
.way-body { display: grid; gap: 6px; margin-top: 12px; }
.way-main { display: flex; align-items: center; gap: 8px; font: 500 14.5px/1.55 var(--sans); color: var(--ink); }
.way-text { font-size: 13px; line-height: 1.6; color: var(--muted); }
.line-badge {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c); color: #fff;
  font: 700 11.5px/20px var(--sans); text-align: center;
}
.way-route { margin: 2px 0 2px 2px; }
.way-route li { position: relative; padding: 0 0 12px 20px; font: 500 14px/1.45 var(--sans); color: var(--ink); }
.way-route li:last-child { padding-bottom: 0; }
.way-route li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--gold); background: #fff;
}
.way-route li:first-child::before, .way-route li:last-child::before { background: var(--gold); }
.way-route li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 17px; bottom: 1px; width: 1px; background: var(--gold-soft); }
.way-route small { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--gold); }
.way-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.way-tags li {
  padding: 6px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font: 600 12px/1 var(--sans); color: var(--text);
  font-variant-numeric: tabular-nums;
}
.parking {
  padding: 20px 18px;
  border: 1px solid var(--line-soft); border-radius: 18px;
  background: #fff; box-shadow: var(--shadow);
}
.parking .way-ic { background: var(--beige); box-shadow: none; }
.park-cap { margin-top: 16px; font-size: 12px; color: var(--muted); }
.park-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.park-item { padding: 14px 8px 13px; border-radius: 12px; background: var(--beige); text-align: center; }
.park-label { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); }
.park-value { display: block; margin-top: 6px; font: 700 19px/1 var(--sans); color: var(--ink); }
.park-note { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.dir-notice { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--muted); text-align: center; }

/* ======================================================================
   6. 참석 여부
   ====================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 38px 22px 34px;
  text-align: center;
}
.card + .card { margin-top: 14px; }
.card-msg { font: 400 14.5px/1.95 var(--serif-ko); color: var(--text); white-space: pre-line; }
.card-meta { margin-top: 16px; font: 500 13px/1.6 var(--sans); color: var(--gold); }
.card .btn { margin-top: 26px; width: 100%; max-width: 280px; }
.card-en {
  font: 500 12px/1 var(--serif-en);
  letter-spacing: .32em; padding-left: .32em;
  color: var(--gold);
}
.card-title { margin-top: 12px; font: 500 17px/1.5 var(--serif-ko); color: var(--ink); }
.card-title + .card-msg { margin-top: 14px; }

/* ======================================================================
   7. 연락하기
   ====================================================================== */
.contact-groups { display: grid; gap: 34px; }
.contact-group h3 {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin-bottom: 8px;
  font: 500 12px/1 var(--serif-en);
  letter-spacing: .32em;
  color: var(--gold);
}
.contact-group h3 span { font: 500 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--muted); }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-who { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.contact-who .role { flex: none; width: 70px; font-size: 12.5px; color: var(--muted); }
.contact-who .name { font: 500 15px/1.4 var(--serif-ko); color: var(--ink); }
.contact-who .empty { font-size: 12px; color: var(--gold); margin-left: 4px; }
.contact-acts { display: flex; gap: 8px; flex: none; }
.circle-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.circle-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .circle-btn:hover { border-color: #CFCFCF; background: #FAFAFA; } }
.circle-btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
/* 신랑·신부 한 명씩일 때: 나란히 놓인 카드 */
.contact-groups.is-compact { grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-groups.is-compact .contact-group {
  padding: 24px 10px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-groups.is-compact .contact-group h3 { margin-bottom: 14px; padding-left: .32em; }
.contact-groups.is-compact .contact-group h3 span { display: none; }
.contact-groups.is-compact .contact-row { flex-direction: column; gap: 14px; padding: 0; border: 0; }
.contact-groups.is-compact .contact-who { flex-direction: column; align-items: center; gap: 4px; }
.contact-groups.is-compact .contact-who .role { width: auto; }
.contact-groups.is-compact .contact-who .name { font-size: 16px; }

/* ======================================================================
   8. 마음 전하실 곳
   ====================================================================== */
.acc-msg {
  margin: -16px 0 34px;
  text-align: center;
  font: 400 14px/1.95 var(--serif-ko);
  color: var(--text);
  white-space: pre-line;
}
.acc { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 60px;
  padding: 0 22px;
  border: 0; background: none;
  text-align: left; cursor: pointer;
  font: 500 15px/1.4 var(--serif-ko);
  color: var(--ink);
}
.acc-btn svg { width: 18px; height: 18px; color: var(--muted); transition: transform .4s var(--ease); flex: none; }
.acc.is-open .acc-btn svg { transform: rotate(180deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.acc.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-list { margin: 0 22px; border-top: 1px solid var(--line-soft); padding: 4px 0 8px; }
.acct { padding: 18px 0; }
.acct + .acct { border-top: 1px solid var(--line-soft); }
.acct-who { font-size: 12.5px; color: var(--muted); }
.acct-who b { font-weight: 500; color: var(--ink); margin-left: 6px; font-size: 14px; }
.acct-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.acct-num { min-width: 0; font-size: 14.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.acct-num .bank { display: block; font-size: 12.5px; color: var(--muted); }
.acct-num .no { display: block; margin-top: 2px; font-weight: 500; color: var(--ink); letter-spacing: .02em; word-break: break-all; }
.acct-acts { display: flex; gap: 6px; flex: none; }
.acct-acts .chip { min-height: 44px; padding: 0 14px; font-size: 12.5px; }
.chip-pay { background: #FFEB00; border-color: #FFEB00; color: #191919; }

/* ======================================================================
   9. 공유하기
   ====================================================================== */
.sec-share { padding-top: 88px; padding-bottom: 88px; }
.share-btns { display: grid; gap: 10px; max-width: 320px; margin: 0 auto; }
.share-btns .btn { width: 100%; }

/* ======================================================================
   10. 푸터
   ====================================================================== */
.footer {
  background: var(--beige);
  border-top: 1px solid var(--line-soft);
  padding: 84px var(--gutter) calc(env(safe-area-inset-bottom) + 72px);
  text-align: center;
}
.f-title {
  font: 500 27px/1 var(--serif-en);
  letter-spacing: .42em; padding-left: .42em;
  color: var(--ink);
}
.f-date {
  margin-top: 16px;
  font: 500 14px/1 var(--serif-en);
  letter-spacing: .32em; padding-left: .32em;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}
.f-line { width: 28px; height: 1px; margin: 28px auto 0; background: var(--gold-soft); }
.f-names { margin-top: 22px; font: 400 13px/1.6 var(--serif-ko); letter-spacing: .12em; color: var(--text); }
.f-msg { margin-top: 10px; font: 400 13px/1.8 var(--serif-ko); color: var(--muted); white-space: pre-line; }

/* ======================================================================
   참석 입력창 (bottom sheet)
   ====================================================================== */
.sheet {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .3s ease;
}
.sheet.is-open { opacity: 1; }
.sheet-panel {
  position: relative;
  width: 100%; max-width: var(--page-w);
  max-height: 92vh; max-height: 92svh;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ivory);
  border-radius: 18px 18px 0 0;
  padding: 30px 24px calc(env(safe-area-inset-bottom) + 26px);
  transform: translateY(28px);
  transition: transform .4s var(--ease);
}
.sheet.is-open .sheet-panel { transform: none; }
@media (min-width: 600px) and (min-height: 720px) {
  .sheet { align-items: center; }
  .sheet-panel { max-width: 420px; border-radius: 14px; }
}
.sheet-close { position: absolute; top: 10px; right: 8px; }
.sheet h2 { text-align: center; font: 500 18px/1.5 var(--serif-ko); color: var(--ink); }
.sheet .sheet-sub { margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--muted); }
.field { margin-top: 22px; border: 0; padding: 0; min-width: 0; }
.field-label, .field legend {
  display: block; padding: 0; margin-bottom: 10px;
  font: 600 13px/1.4 var(--sans); color: var(--ink);
}
.field-label small, .field legend small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.seg { display: flex; gap: 8px; }
.seg label { position: relative; flex: 1 1 0; min-width: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 14px; color: var(--text);
  cursor: pointer; transition: all .2s;
}
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.text-input, .select-input {
  width: 100%; min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
  font-size: 16px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.select-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23767676' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.text-input:focus, .select-input:focus { outline: none; border-color: var(--gold); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.stepper button { width: 48px; height: 46px; border: 0; background: none; font-size: 20px; color: var(--ink); cursor: pointer; }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper output { min-width: 60px; text-align: center; font-size: 15px; font-weight: 500; color: var(--ink); }
.sheet .btn-dark { width: 100%; margin-top: 30px; }
.sheet-privacy { margin-top: 14px; font-size: 11.5px; line-height: 1.6; color: var(--muted); text-align: center; }

/* ======================================================================
   참석 의사 전달 팝업
   ====================================================================== */
.sheet { align-items: center; padding: 20px; }
.rsvp-panel {
  position: relative;
  width: 100%; max-width: 400px;
  max-height: calc(100vh - 40px); max-height: calc(100svh - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 58px 26px 34px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  transform: translateY(14px) scale(.985);
  transition: transform .4s var(--ease);
}
.sheet.is-open .rsvp-panel { transform: none; }
.rsvp-close { position: absolute; top: 8px; right: 8px; color: #9A9A9A; }
.rsvp-head { text-align: center; }
.rsvp-en { font: 400 23px/1.2 var(--serif-en); letter-spacing: .05em; color: var(--ink); }
.rsvp-en-sub { margin-top: 6px; font: 500 11px/1 var(--sans); letter-spacing: .14em; color: var(--text); }
.rsvp-date { margin-top: 20px; font: 500 31px/1 var(--serif-en); letter-spacing: .04em; color: var(--ink); font-variant-numeric: lining-nums; }
.rsvp-date i { margin: 0 .38em; font-style: normal; font-weight: 300; color: #C9C9C9; }
.rsvp-form { margin-top: 40px; }
.rf-sent { margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; background: var(--beige); font-size: 12.5px; line-height: 1.6; color: var(--text); text-align: center; }
.rf-row {
  display: grid; grid-template-columns: 62px minmax(0, 1fr);
  align-items: end; column-gap: 12px;
  min-height: 56px;
}
.rf-label { padding-bottom: 13px; font: 400 13.5px/1.2 var(--serif-ko); color: var(--text); white-space: nowrap; }
.rf-input {
  width: 100%; min-width: 0;
  padding: 12px 4px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent;
  font: 400 16px/1.3 var(--sans); color: var(--ink);
  -webkit-appearance: none; appearance: none;
  -moz-appearance: textfield;
}
.rf-input::-webkit-outer-spin-button, .rf-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rf-input::placeholder { font-size: 13.5px; color: #C2C2C2; }
.rf-input:focus { outline: none; border-bottom-color: var(--ink); }
.rf-tabs { display: flex; gap: 10px; }
.rf-tabs label { position: relative; flex: 1 1 0; min-width: 0; }
.rf-tabs input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rf-tabs span {
  display: block; padding: 12px 2px 12px;
  border-bottom: 1px solid var(--line);
  font: 400 15px/1.3 var(--serif-ko); color: #BDBDBD; text-align: center;
  transition: color .2s, border-color .2s;
}
.rf-tabs input:checked + span { color: var(--ink); border-bottom-color: var(--ink); }
.rf-tabs input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.rf-submit {
  display: block; margin: 34px auto 0;
  min-width: 150px; min-height: 46px; padding: 0 22px;
  border: 1px solid #555; border-radius: 0;
  background: #fff; color: var(--ink);
  font: 400 14px/1 var(--serif-ko); letter-spacing: .08em;
  cursor: pointer; transition: background-color .2s, color .2s;
}
@media (hover: hover) { .rf-submit:hover { background: var(--ink); color: #fff; } }
.rf-submit:disabled { opacity: .5; cursor: default; }
.rf-note { margin-top: 14px; text-align: center; font-size: 11.5px; color: var(--muted); }
.rsvp-done { padding: 34px 0 6px; text-align: center; }
.rsvp-done-mark { color: #EC90A6; }
.rsvp-done-mark svg { width: 28px; height: 28px; }
.rsvp-done-title { margin-top: 12px; font: 500 18px/1.4 var(--serif-ko); color: var(--ink); }
.rsvp-done-msg { margin-top: 10px; font: 400 14px/1.8 var(--serif-ko); color: var(--text); white-space: pre-line; }

/* ======================================================================
   배경음악 · 하트 버튼 / 하트 내리는 효과
   ====================================================================== */
.fab {
  position: fixed; z-index: 60;
  top: calc(env(safe-area-inset-top) + 16px);
  right: max(14px, calc((100% - var(--page-w)) / 2 + 14px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.is-preview .fab { top: calc(env(safe-area-inset-top) + 58px); }
.fab-btn {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fab-btn svg { width: 20px; height: 20px; }
.fab-music .slash { stroke: var(--ink); }
.fab-music.is-on .slash { display: none; }
.fab-music.is-on::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(204, 160, 155, .8);
  animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.22); opacity: 0; } }
.fab-music.is-loading::after {                 /* 음악 불러오는 중 */
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--gold);
  animation: fabSpin .9s linear infinite;
}
@keyframes fabSpin { to { transform: rotate(360deg); } }
.fab-heart { color: #EC90A6; }
.fab-heart[aria-pressed="false"] { color: #CFCFCF; }

.hearts {
  position: fixed; top: 0; bottom: 0; z-index: 50;
  left: 50%; transform: translateX(-50%);
  width: min(100%, var(--page-w));
  overflow: hidden;
  pointer-events: none;
  transition: opacity .6s;
}
.hearts.is-off { opacity: 0; }
.hearts.is-off .heart-drop, .hearts.is-off .heart-drop i { animation-play-state: paused; }
.heart-drop {
  position: absolute; top: -6%; left: var(--x);
  width: var(--size); height: var(--size);
  opacity: var(--o);
  animation: heartFall var(--dur) linear var(--delay) infinite;
  will-change: transform;
}
.heart-drop i { display: block; width: 100%; height: 100%; animation: heartSway calc(var(--dur) / 3) ease-in-out var(--delay) infinite alternate; }
.heart-drop svg { display: block; width: 100%; height: 100%; }
@keyframes heartFall { from { transform: translate3d(0, 0, 0) rotate(var(--r0)); } to { transform: translate3d(0, 112vh, 0) rotate(var(--r1)); } }
@keyframes heartSway { from { transform: translateX(calc(var(--sway) * -1)); } to { transform: translateX(var(--sway)); } }

/* 내 달력에 넣기 */
.cal-add { margin-top: 26px; text-align: center; }

/* ======================================================================
   첫 접속 인트로
   ====================================================================== */
.intro {
  position: fixed; top: 0; bottom: 0; z-index: 120;
  left: 50%; transform: translateX(-50%);
  width: min(100%, var(--page-w));
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 16, 16, .58);
  cursor: pointer;
  transition: opacity .8s ease, visibility .8s;
}
.intro.is-out { opacity: 0; visibility: hidden; }
.intro-on, .intro-on body { overflow: hidden; }
.intro-inner { display: flex; flex-direction: column; align-items: center; padding-bottom: 8vh; color: #fff; }
.intro-line {
  display: block;
  font: 400 clamp(50px, 15vw, 64px)/1.05 "Mrs Saint Delafield", "Brush Script MT", cursive;
  letter-spacing: .01em;
  clip-path: inset(-30% 100% -30% -10%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}
.intro-line:nth-child(1) { margin-right: 1.5em; }
.intro-line:nth-child(2) { margin-left: .9em; }
.intro.is-play .intro-line { animation: introWrite 1s cubic-bezier(.45, .05, .3, 1) calc(.2s + var(--i) * .7s) forwards; }
@keyframes introWrite { to { clip-path: inset(-30% -15% -30% -10%); } }
.intro-date {
  margin-top: 22px;
  font: 500 12px/1 var(--serif-en);
  letter-spacing: .44em; padding-left: .44em;
  color: rgba(255, 255, 255, .82);
  font-variant-numeric: lining-nums;
  opacity: 0;
}
.intro.is-play .intro-date { animation: introFade .8s ease calc(.6s + var(--n) * .7s) forwards; }
@keyframes introFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ======================================================================
   토스트
   ====================================================================== */
.toast {
  position: fixed; left: 50%; z-index: 200;
  bottom: calc(env(safe-area-inset-bottom) + 36px);
  width: max-content; max-width: calc(100vw - 40px);
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(30, 30, 30, .92);
  color: #fff;
  font: 500 13.5px/1.45 var(--sans);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .25s, transform .3s var(--ease);
  pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ======================================================================
   스크롤 등장 효과
   ====================================================================== */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1.1s var(--ease);
}
.js-anim .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-anim .reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   사진·내용 보호 (config.js 의 protect)
   ====================================================================== */
.protect-img img { -webkit-touch-callout: none; -webkit-user-drag: none; }
.protect-img .hero-photo img,
.protect-img .g-item img,
.protect-img .lb-fig img,
.protect-img .map-img img { pointer-events: none; }
.protect-text body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect-text input,
.protect-text textarea,
.protect-text select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.protect-zoom .hero-photo,
.protect-zoom .g-grid { touch-action: pan-x pan-y; }
.protect-pagezoom,
.protect-pagezoom body { touch-action: pan-x pan-y; }

/* ======================================================================
   디자인 검토 모드 (?preview)
   ====================================================================== */
.pv-banner {
  position: sticky; top: 0; z-index: 80;
  padding: 10px 16px;
  background: #222; color: #EEE;
  font: 500 12px/1.5 var(--sans);
  text-align: center;
}
.pv-banner a { color: #F2C8C1; margin-left: 6px; }
.pv-note {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px dashed var(--gold-soft); border-radius: 999px;
  background: rgba(232, 214, 210, .25);
  color: #956A64;
  font: 500 11.5px/1.4 var(--sans);
}
.pv-wrap { text-align: center; }
.is-preview-only { outline: 1px dashed rgba(179, 138, 132, .5); outline-offset: -12px; }

/* ---------- 작은 화면 미세 조정 (360px) ---------- */
@media (max-width: 374px) {
  :root { --gutter: 22px; }
  .section { padding-top: 92px; padding-bottom: 92px; }
  .inv-msg { font-size: 14.5px; }
  .family .parents { font-size: 14px; }
  .family .child { font-size: 15.5px; }
  .family { column-gap: 8px; }
  .cd-unit { min-width: 52px; }
  .cd-num { font-size: 27px; }
  .map-btn { font-size: 12.5px; gap: 6px; }
  .way { padding: 16px 15px; }
  .way-main { font-size: 14px; }
  .contact-who .role { width: 62px; }
}
