/* =========================================================
   모바일 청첩장 — 화이트 & 로즈
   ========================================================= */
:root {
  --bg: #fffdf9;          /* 기본 배경 (따뜻한 흰색) */
  --bg-soft: #faf5f1;     /* 구획 배경 */
  --desk: #f1ebe6;        /* PC 바깥 배경 */
  --text: #383838;
  --sub: #8e8784;
  --faint: #b9b2ae;
  --line: #ece4df;
  --point: #d4909a;       /* 포인트 (로즈) */
  --point-deep: #c27783;
  --point-soft: #f6dfe2;
  --sun: #d98282;

  --sans: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --script: "Great Vibes", cursive;

  --page-w: 430px;
  --gutter: 28px;
  --r: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea, output { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--point); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── 페이지 ──────────────────────────────────── */
.page {
  position: relative;
  max-width: var(--page-w);
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 480px) {
  .page { box-shadow: 0 0 40px rgba(120, 90, 80, .12); }
}

/* ── 손글씨 그리기 ───────────────────────────── */
.script-draw { overflow: visible; }
.script-draw text {
  font-family: var(--script);
  fill: currentColor; fill-opacity: 0;
  stroke: currentColor; stroke-width: .9;
  stroke-dasharray: 700; stroke-dashoffset: 700;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink { to { fill-opacity: 1; stroke-opacity: 0; } }

/* ── 로딩 ────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(86vw, 360px); text-align: center; }
.loader__script { width: 100%; color: var(--point); }
.loader__script text { font-size: 68px; }
.loader.is-drawing .loader__script text { animation: draw 2s ease-in-out forwards, ink .8s ease 1.4s forwards; }
.loader__names { margin-top: 4px; font-size: 13px; letter-spacing: .3em; color: var(--sub); opacity: 0; transition: opacity .8s ease .6s; }
.loader.is-drawing .loader__names { opacity: 1; }

/* ── 꽃잎 ────────────────────────────────────── */
.petals {
  position: fixed; top: 0; left: 50%; z-index: 30;
  width: min(100%, var(--page-w)); height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* =========================================================
   1. 메인
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px; max-height: 860px;
  overflow: hidden;
  color: #fff;
  background: #d9cfc9;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s cubic-bezier(.2, .6, .2, 1);
}
.is-ready .hero__img { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 48%, rgba(0,0,0,.42) 100%);
}
.hero__script {
  position: absolute; left: 50%; top: 56%;
  width: 96%; transform: translate(-50%, -50%);
  color: #fff;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.18));
}
.hero__script text { font-size: 84px; }
/* 손글씨를 사진 위쪽 빈 공간에 둘 때 (config: heroScriptPosition: "top") */
.hero--script-top .hero__script { top: 17%; filter: none; }
.hero--script-top .hero__shade { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); }
.is-ready .hero__script text { animation: draw 3.2s ease-in-out .5s forwards, ink 1.2s ease 2.6s forwards; }
.hero__info {
  position: absolute; left: 0; right: 0; bottom: 92px;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(12px);
  transition: opacity 1.2s ease 2.4s, transform 1.2s ease 2.4s;
}
.is-ready .hero__info { opacity: 1; transform: none; }
.hero__names { font-weight: 400; font-size: 22px; letter-spacing: .18em; line-height: 1.4; }
.hero__amp { font-family: var(--script); font-size: 26px; letter-spacing: 0; margin: 0 .5em 0 .35em; }
.hero__date { margin-top: 10px; font-size: 13px; letter-spacing: .16em; }
.hero__place { margin-top: 2px; font-size: 13px; opacity: .88; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .2em; opacity: .85;
}
.hero__scroll span { position: relative; width: 1px; height: 30px; background: rgba(255,255,255,.35); overflow: hidden; }
.hero__scroll span::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* =========================================================
   공통
   ========================================================= */
.sec { padding: 84px var(--gutter); text-align: center; }
.sec--soft { background: var(--bg-soft); }
.sec-title { margin-bottom: 40px; }
.sec-title__en { font-family: var(--script); font-size: 34px; line-height: 1.1; color: var(--point); }
.sec-title__ko { margin-top: 6px; font-weight: 400; font-size: 13px; letter-spacing: .12em; color: var(--sub); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r);
  font-size: 15px; transition: background-color .2s, opacity .2s;
}
.btn--fill { background: var(--point); color: #fff; }
.btn--fill:active { background: var(--point-deep); }
.btn--fill:disabled { opacity: .6; }
.btn--line { border: 1px solid var(--line); background: #fff; }
.btn--line:active { background: var(--bg-soft); }
.btn--kakao { background: #fee500; color: #191600; }
.btn--block { width: 100%; }
.btn--wide { min-width: 240px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; color: var(--text);
}
.pill .i { color: var(--point); width: 14px; height: 14px; }
.pill:active { background: var(--bg-soft); }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 12px;
}
.chip--pay { border-color: #fee500; background: #fee500; color: #191600; font-weight: 700; letter-spacing: .02em; }
.round {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); color: var(--point-deep);
}

/* 스크롤 등장 */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   2. 인사말
   ========================================================= */
.greeting { padding-bottom: 0; }
.greeting__text { font-size: 15px; line-height: 2.1; }
.greeting__text p + p { margin-top: 1.6em; }
.parents {
  display: grid; gap: 8px; width: fit-content; margin: 44px auto 28px;
  font-size: 15px;
}
/* 두 줄이 같은 3열 격자를 공유해 세로선이 맞도록 */
/* 열 너비 = 글자 길이 그대로(max-content), 줄바꿈 금지 → 사파리에서도 안 꺾임 */
.parents { grid-template-columns: repeat(3, max-content); column-gap: 6px; align-items: baseline; text-align: left; width: max-content; max-width: 100%; }
.parents li { display: contents; }
.parents li > span { white-space: nowrap; }
.parents__p i { margin: 0 4px; font-style: normal; color: var(--faint); }
.parents__rel { color: var(--sub); font-size: 13px; padding-right: 6px; }
.parents__c em { margin-right: 6px; color: var(--sub); font-size: 13px; }
.late { margin-right: 2px; color: var(--sub); font-size: 13px; }
.greeting__photo { margin: 56px calc(var(--gutter) * -1) 0; aspect-ratio: 4 / 5; overflow: hidden; }
.greeting__photo img { width: 100%; height: 100%; object-fit: cover; }

.contact__side { margin: 6px 0 4px; font-size: 13px; color: var(--point-deep); text-align: left; }
.contact ul + .contact__side { margin-top: 24px; }
.contact li {
  display: grid; grid-template-columns: 80px 1fr auto auto; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left;
}
.contact__who { font-size: 13px; color: var(--sub); }

/* =========================================================
   3. 함께한 시간 / 4. 글귀
   ========================================================= */
.together { padding-block: 64px; }
.together__label { font-size: 13px; letter-spacing: .25em; color: var(--sub); }
.together__time { margin-top: 14px; font-size: 17px; line-height: 1.9; }
.together__time b { font-weight: 400; font-size: 26px; color: var(--point-deep); margin-right: 1px; font-variant-numeric: tabular-nums; }
.together__time small { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.together__since { margin-top: 10px; font-size: 12px; letter-spacing: .1em; color: var(--faint); }

.quote { padding-block: 72px; }
.flower { width: 38px; height: 38px; margin: 0 auto 26px; color: var(--point); }
.quote p { font-size: 14px; line-height: 2.1; color: #5a5452; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 12px; color: var(--faint); }
.quote cite::before { content: "— "; }

/* =========================================================
   5. 갤러리
   ========================================================= */
.gallery { padding-inline: 14px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.photos li { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-soft); }
.photos li.is-extra { display: none; }
.photos.is-open li.is-extra { display: block; }
.photos button { display: block; width: 100%; height: 100%; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photos button:active img { transform: scale(1.04); }
.more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 22px; padding: 8px 14px;
  font-size: 13px; color: var(--sub);
}
.more .i { transition: transform .3s ease; }
.more[aria-expanded="true"] .i { transform: rotate(180deg); }

.viewer {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10, 10, 10, .97); color: #fff;
  opacity: 0; transition: opacity .25s ease;
}
.viewer.is-open { opacity: 1; }
.viewer__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) 10px 0 20px; font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.75);
}
.viewer__frame { position: absolute; inset: 60px 0 max(30px, env(safe-area-inset-bottom)); overflow: hidden; transition: transform .25s ease, opacity .25s ease; }
.viewer__track { display: flex; height: 100%; transition: transform .38s cubic-bezier(.25, .8, .25, 1); }
.viewer__track li { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.viewer__track img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.viewer__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.viewer__btn .i { width: 22px; height: 22px; stroke-width: 1.4; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.08); }
.viewer__nav:disabled { opacity: .2; cursor: default; }
.viewer__prev { left: 8px; }
.viewer__next { right: 8px; }
@media (hover: none) { .viewer__nav { display: none; } }

/* =========================================================
   6. 예식 안내
   ========================================================= */
.when__date { font-size: 17px; }
.when__time { font-size: 14px; color: var(--sub); }
.cal {
  margin: 32px 0 0; padding: 22px 14px 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.cal th { padding-bottom: 12px; font-weight: 400; font-size: 13px; color: var(--sub); }
.cal td { height: 42px; text-align: center; vertical-align: middle; font-variant-numeric: tabular-nums; }
.cal th:first-child, .cal td:first-child { color: var(--sun); }
.cal td.is-day span {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--point); color: #fff;
  box-shadow: 0 4px 12px rgba(212, 144, 154, .45);
}
.count { margin: 40px 0 30px; }
.count__boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 300px; margin: 0 auto; }
.count__boxes div { padding: 12px 0 8px; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(160, 120, 110, .08); }
.count__boxes b { display: block; font-weight: 400; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.count__boxes span { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .12em; color: var(--faint); }
.count__text { margin-top: 24px; font-size: 14px; }
.count__text em { color: var(--point-deep); }
.heart { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; color: var(--point); }

/* =========================================================
   7. 오시는 길
   ========================================================= */
.where__venue { font-size: 17px; }
.where__venue span { color: var(--sub); font-size: 14px; margin-left: 4px; }
.where__addr { display: grid; gap: 6px; margin: 16px 0 0; text-align: left; font-size: 13.5px; line-height: 1.6; color: #5a5452; }
.where__addr > div { display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.where__addr dt { color: var(--point-deep); white-space: nowrap; }
.where__addr dd { margin: 0; }
.where__links { display: flex; justify-content: center; gap: 18px; margin-top: 8px; }
.where__links > * { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--sub); }
.where__links .i { width: 14px; height: 14px; color: var(--point); }
.map { position: relative; margin: 28px calc(var(--gutter) * -1) 0; }
.map--image { background: #fff; border-top: 1px solid var(--line); }
.map--image a { display: block; }
.map--image img { display: block; width: 100%; height: auto; }
.map__canvas {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: #f3efe9;
}
/* 키가 없을 때 보이는 지도 카드: 도로 느낌의 선 */
.map__roads {
  position: absolute; inset: -20%;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 100% 100%,
    linear-gradient(0deg, transparent 58%, #fff 58%, #fff 62%, transparent 62%) 0 0 / 100% 100%,
    linear-gradient(28deg, transparent 49%, #fff 49%, #fff 51.5%, transparent 51.5%) 0 0 / 100% 100%,
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.7) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 52px, rgba(255,255,255,.7) 52px 54px),
    radial-gradient(circle at 74% 26%, #dfe9d6 0 13%, transparent 13.5%),
    radial-gradient(circle at 18% 78%, #dde6ee 0 11%, transparent 11.5%);
  transform: rotate(-8deg);
}
.map__pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  color: var(--point-deep); filter: drop-shadow(0 4px 6px rgba(150, 80, 90, .35));
}
.map__pin .i { width: 40px; height: 40px; }
.map__name {
  position: absolute; left: 50%; top: calc(50% + 8px); transform: translateX(-50%);
  padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 13px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.map__canvas.is-loaded > .map__roads, .map__canvas.is-loaded > .map__pin, .map__canvas.is-loaded > .map__name { display: none; }
.map__open {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92);
  font-size: 12px; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.naver-pin { position: relative; width: 36px; height: 36px; color: var(--point-deep); }
.naver-pin .i { display: block; width: 36px; height: 36px; filter: drop-shadow(0 3px 5px rgba(150, 80, 90, .35)); }
.naver-pin span {
  position: absolute; top: 38px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--text);
  font-family: var(--sans); font-size: 12px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.navs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 0 calc(var(--gutter) * -1); border-bottom: 1px solid var(--line); }
.nav {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 52px; font-size: 13px;
}
.nav + .nav { border-left: 1px solid var(--line); }
.nav i {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px;
  font-style: normal; font-size: 10px; font-weight: 700; color: #fff; line-height: 1;
}
.nav--naver { color: #03a94e; }
.nav--naver i { background: #03c75a; }
.nav--kakao i { background: #fee500; color: #3a1d1d; }
.nav--tmap i { background: linear-gradient(135deg, #ff4d6d, #6a5cff); }
.transport { margin-top: 36px; text-align: left; }
.transport > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.transport > div:first-child { padding-top: 0; }
.transport dt { font-size: 14px; color: var(--point-deep); margin-bottom: 4px; }
.transport dd { font-size: 14px; line-height: 1.75; color: #5a5452; }

/* =========================================================
   8. 마음 전하실 곳
   ========================================================= */
.gift__note { font-size: 14px; line-height: 2; color: #5a5452; margin-bottom: 30px; }
.accs { display: grid; gap: 10px; }
.acc { border-radius: var(--r); background: #fff; overflow: hidden; box-shadow: 0 2px 12px rgba(160, 120, 110, .07); }
.acc__head {
  display: flex; align-items: center; justify-content: center; gap: 6px; position: relative;
  width: 100%; height: 54px; font-size: 15px;
}
.acc__head .i { position: absolute; right: 18px; color: var(--faint); transition: transform .3s ease; }
.acc.is-open .acc__head .i { transform: rotate(180deg); }
.acc__body { height: 0; overflow: hidden; transition: height .35s ease; }
.acc__body ul { padding: 0 18px 8px; }
.acc__body li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 0; border-top: 1px solid var(--line); text-align: left;
}
.acc__who { font-size: 14px; }
.acc__who span { margin-right: 6px; font-size: 12px; color: var(--sub); }
.acc__num { font-size: 13px; color: #5a5452; font-variant-numeric: tabular-nums; }
.acc__btns { display: flex; gap: 6px; flex: none; }

/* =========================================================
   9. 방명록
   ========================================================= */
.notes { display: grid; gap: 10px; text-align: left; }
.note { padding: 18px 18px 14px; border-radius: var(--r); background: var(--bg-soft); }
.note__msg { font-size: 14px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.note__meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--sub); }
.note__meta b { font-weight: 400; color: var(--text); }
.notes__empty { padding: 34px 0; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; font-size: 13px; color: var(--sub); }
.notes__btns { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.notes__btns .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.notes--all .note { background: var(--bg-soft); }

/* =========================================================
   10. 참석 의사
   ========================================================= */
.rsvp__note { font-size: 14px; line-height: 2; color: #5a5452; }
.bus {
  margin: 26px 0 0; padding: 6px 20px; border-radius: var(--r); background: #fff; text-align: left;
  box-shadow: 0 2px 12px rgba(160, 120, 110, .07);
}
.bus > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 12px 0; font-size: 14px; }
.bus > div + div { border-top: 1px solid var(--line); }
.bus dt { color: var(--sub); }
.bus__note { margin-top: 12px; font-size: 13px; color: var(--sub); }
.rsvp__deadline { display: inline-block; margin: 16px 0 28px; padding: 4px 14px; border-radius: 999px; background: var(--point-soft); color: var(--point-deep); font-size: 13px; }

/* 폼 */
.form { text-align: left; }
.seg { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.seg legend, .field > span { display: block; margin-bottom: 8px; padding: 0; font-size: 13px; color: var(--sub); }
.seg__opts { display: flex; gap: 6px; }
.seg__opts label { flex: 1; position: relative; }
.seg__opts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg__opts span {
  display: grid; place-items: center; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: 14px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.seg__opts input:checked + span { border-color: var(--point); background: var(--point); color: #fff; }
.seg__opts input:focus-visible + span { outline: 2px solid var(--point); outline-offset: 2px; }
.field { display: block; margin-bottom: 20px; }
.field input, .field textarea {
  display: block; width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 16px; resize: none;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--point); }
.field ::placeholder { color: var(--faint); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 20px; }
.stepper output { flex: 1; text-align: center; font-size: 17px; }
.form.is-absent .form__attending { display: none; }
.form__error { min-height: 1.4em; margin: -4px 0 10px; font-size: 13px; color: var(--sun); }

/* =========================================================
   11. 마무리
   ========================================================= */
.footer { padding: 72px var(--gutter) 56px; text-align: center; }
.share { display: grid; gap: 8px; }
.footer__thanks { margin-top: 64px; font-family: var(--script); font-size: 40px; color: var(--point); line-height: 1; }
.footer__names { margin-top: 10px; font-size: 12px; letter-spacing: .3em; color: var(--faint); }

/* =========================================================
   모달 · 토스트 · 음악
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 300; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(40, 30, 28, .45); opacity: 0; transition: opacity .3s ease; }
.modal__sheet {
  position: absolute; left: 50%; bottom: 0;
  width: 100%; max-width: var(--page-w); max-height: 88vh; overflow: auto;
  padding: 0 22px max(24px, env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0; background: var(--bg);
  transform: translate(-50%, 100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  overscroll-behavior: contain;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__sheet { transform: translate(-50%, 0); }
.modal__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  height: 60px; margin: 0 -22px 8px; background: var(--bg);
}
.modal__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
.modal__head h3 { font-weight: 400; font-size: 16px; }
.modal__x { position: absolute; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--sub); }
.modal__x .i { width: 20px; height: 20px; }

.toast {
  position: fixed; left: 50%; bottom: max(30px, calc(env(safe-area-inset-bottom) + 14px)); z-index: 600;
  max-width: calc(100% - 40px); padding: 11px 20px; border-radius: 999px;
  background: rgba(56, 56, 56, .92); color: #fff; font-size: 13px; text-align: center;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.bgm {
  position: fixed; z-index: 50;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, calc(50% - var(--page-w) / 2 + 14px));
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .7); color: var(--sub);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.bgm.is-on { color: var(--point-deep); }
.bgm.is-on .i { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 작은 화면 ───────────────────────────────── */
@media (max-width: 350px) {
  :root { --gutter: 20px; }
  .hero__names { font-size: 19px; }
  .parents { font-size: 14px; }
}

/* ── 동작 줄이기 ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .script-draw text { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
  .hero__info { opacity: 1; transform: none; }
}
