/* 2026 희망행복축제 VIP 초대장 — 진홍 벨벳 · 초록 새틴 리본 · 금박 */
:root {
  --velvet: #8c1018;
  --velvet-hi: #b01d27;
  --velvet-deep: #5a080e;
  --velvet-ink: #3a0508;
  --satin: #1c6a43;
  --satin-deep: #0e4128;
  --satin-hi: #3e9c69;
  --gold: #d9b467;
  --gold-hi: #f4dea3;
  --gold-deep: #a47b33;
  --paper: #fbf4e8;
  --paper-2: #f3e7d3;
  --ink: #2b1512;
  --ink-soft: #6a4842;
  --on-red: #fff5ef;
  --on-red-soft: #f2cfc8;
  --on-green-soft: #e3f2ea;
  --ui: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --letter: "Gowun Batang", "AppleMyungjo", "Noto Serif KR", serif;
  --gutter: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-paper: 0 2px 4px rgba(40, 4, 6, .18), 0 18px 40px -12px rgba(40, 4, 6, .55);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-red);
  background: var(--velvet-deep);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--gold-hi); color: var(--velvet-ink); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

/* 벨벳 바탕 — 포스터의 셰브런 결 + 은은한 빛 */
.cover, .when, .gallery, .share {
  background-color: var(--velvet);
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 120, 110, .22), transparent 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(40, 0, 4, .55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Cpath d='M0 60 40 20 80 60 120 20 160 60' fill='none' stroke='%23000' stroke-opacity='.09' stroke-width='26'/%3E%3C/svg%3E");
  background-size: auto, auto, 160px 80px;
}

.sec-title {
  font-family: var(--letter);
  font-weight: 700;
  font-size: clamp(26px, 7.4vw, 36px);
  line-height: 1.3;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--velvet);
  text-wrap: balance;
}
.sec-title--light { color: var(--on-red); }
.sec-sub { margin-top: 10px; text-align: center; color: var(--on-red-soft); font-size: 15px; }
.sec-sub--ink { color: var(--ink-soft); }

/* ───────────── 1. 표지 ───────────── */
.cover {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px var(--gutter) 96px;
  isolation: isolate;
}
.cover__body { position: relative; z-index: 2; width: 100%; max-width: 560px; text-align: center; }
.cover__year {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(18px, 5vw, 24px);
  letter-spacing: -.01em;
  line-height: 1.35;
}
.cover__year span { display: block; font-size: .95em; letter-spacing: .5em; margin-right: -.5em; margin-bottom: 2px; }
.cover__title { margin: 14px auto 0; width: min(100%, 520px); }
.cover__title img { width: 100%; height: auto; filter: drop-shadow(0 3px 0 rgba(70, 4, 8, .45)) drop-shadow(0 10px 18px rgba(40, 0, 4, .35)); }
.cover__to {
  margin-top: 30px;
  font-family: var(--letter);
  font-size: clamp(19px, 5.2vw, 23px);
  color: var(--gold-hi);
}
.cover__to b { font-weight: 700; color: #fff; }
.cover__dates {
  margin-top: 18px;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  font-family: var(--letter); font-weight: 700;
  font-size: clamp(22px, 6.6vw, 30px);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.cover__dates i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.cover__place { margin-top: 6px; color: var(--on-red-soft); font-size: 16px; }

.open-btn {
  margin-top: 34px;
  position: relative;
  border: 0;
  padding: 0 34px;
  height: 58px;
  min-width: 220px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #23704a, var(--satin) 46%, var(--satin-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 10px 22px -8px rgba(10, 30, 18, .8);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.open-btn::after {
  content: ""; position: absolute; inset: 5px; border-radius: inherit;
  border: 1px dashed rgba(244, 222, 163, .55);
  pointer-events: none;
}
.open-btn:hover { transform: translateY(-2px); }
.open-btn:active { transform: translateY(1px); }

.cover__flakes .fl { position: absolute; z-index: 1; opacity: .9; }
.f1 { width: 120px; height: 120px; right: -26px; top: 18%; }
.f2 { width: 64px; height: 64px; left: 7%; bottom: 14%; }
.f3 { width: 40px; height: 40px; right: 16%; bottom: 7%; opacity: .7 !important; }
.f4 { width: 30px; height: 30px; left: 58%; top: 7%; opacity: .6 !important; }
.f5 { width: 150px; height: 150px; left: -60px; bottom: 30%; opacity: .45 !important; }
.f6 { width: 46px; height: 46px; right: 9%; top: 52%; opacity: .55 !important; }
@media (prefers-reduced-motion: no-preference) {
  .cover__flakes .fl { animation: drift 14s ease-in-out infinite alternate; }
  .f2, .f4 { animation-duration: 18s; animation-delay: -4s; }
  .f5, .f6 { animation-duration: 22s; animation-delay: -9s; }
}
@keyframes drift { from { transform: translateY(-6px) rotate(-8deg); } to { transform: translateY(8px) rotate(10deg); } }

/* 리본 — 포스터처럼 왼쪽 위 대각선, 매듭은 표지 위쪽 */
.ribbon { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ribbon__band {
  position: absolute;
  left: -30%; top: 64px;
  width: 160%; height: 34px;
  transform-origin: 50% 50%;
  transform: rotate(-24deg) translateY(-10px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.28) 0 2px, transparent 2px calc(100% - 2px), rgba(0,0,0,.25) calc(100% - 2px)),
    linear-gradient(180deg, #4aa975, #1d6b44 35%, #135030 60%, #2f8859 85%, #0f4429);
  box-shadow: 0 8px 14px -6px rgba(30, 0, 4, .6);
  transition: transform 1.1s var(--ease), opacity .9s var(--ease);
}
.ribbon__bow {
  position: absolute;
  width: 150px; height: auto;
  left: calc(50% - 75px - 18vw); top: 10px;
  filter: drop-shadow(0 10px 12px rgba(30, 0, 4, .45));
  transform-origin: 50% 42%;
  transition: transform 1s var(--ease), opacity .7s var(--ease);
}
@media (min-width: 720px) {
  .ribbon__band { top: 90px; height: 40px; }
  .ribbon__bow { width: 190px; left: calc(50% - 95px - 210px); }
}
.is-open .ribbon__bow { transform: translateY(-40px) rotate(-18deg) scale(.6); opacity: 0; }
.is-open .ribbon__band { transform: rotate(-24deg) translate(-110%, -10px); opacity: 0; }

/* 금박 VIP 인장 */
.seal {
  position: absolute; z-index: 2;
  right: max(16px, calc(50% - 300px)); bottom: 84px;
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 50%, #c39a4e);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.25), inset 0 0 0 6px rgba(120, 80, 20, .35), 0 6px 14px -4px rgba(30, 0, 4, .6);
  transform: rotate(-12deg);
}
.seal span { font-family: var(--letter); font-weight: 700; font-size: 22px; letter-spacing: .06em; color: #3a2205; text-shadow: 0 1px 0 rgba(255,255,255,.5); }

/* ───────────── 2. 편지 ───────────── */
.letter { background: var(--velvet-deep); padding: 0 var(--gutter) 72px; }
.paper {
  position: relative;
  max-width: 560px;
  margin: -56px auto 0;
  z-index: 4;
  padding: 52px 28px 44px;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% 0%, #fffaf1, transparent 70%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  border-radius: 6px;
  box-shadow: var(--shadow-paper);
  text-align: center;
}
.paper::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 1px solid rgba(164, 123, 51, .55);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(164, 123, 51, .35);
  border-radius: 2px;
}
.paper__flake { width: 40px; height: 40px; margin: 0 auto 18px; }
.letter__title {
  font-family: var(--letter); font-weight: 700;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.32; letter-spacing: -.03em;
  color: var(--velvet);
}
.letter__body { margin-top: 28px; font-family: var(--letter); font-size: 18px; line-height: 1.95; }
.letter__body p + p { margin-top: 22px; }
.letter__body strong { color: var(--velvet); }
.letter__note { color: var(--ink-soft); font-size: 16.5px; }
.letter__sign {
  margin-top: 36px;
  font-family: var(--letter); font-size: 16px; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px;
}
.letter__sign b { font-size: 24px; color: var(--ink); letter-spacing: .12em; }

/* reveal: 기본은 보이고, JS가 있을 때만 아래에서 떠오른다 */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────────── 3. 일정 ───────────── */
.when { padding: 72px var(--gutter) 80px; }
.when > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.count { text-align: center; margin-bottom: 64px; }
.count__lead { font-size: 17px; color: var(--on-red-soft); }
.count__big {
  font-family: var(--letter); font-weight: 700;
  font-size: clamp(72px, 24vw, 112px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-hi);
  text-shadow: 0 2px 0 var(--gold-deep), 0 14px 30px rgba(30, 0, 4, .45);
}
.count__when { font-family: var(--letter); font-weight: 700; font-size: 21px; margin-top: 4px; }
.count__clock { margin-top: 6px; color: var(--on-red-soft); font-size: 15px; font-variant-numeric: tabular-nums; min-height: 1.6em; }

.tickets { list-style: none; padding: 0; margin: 32px auto 0; display: grid; gap: 16px; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-areas: "date who" "date times";
  column-gap: 18px; row-gap: 8px;
  align-items: center;
  padding: 20px 20px 20px 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border-radius: 10px;
  box-shadow: var(--shadow-paper);
  /* 좌우 반달 홈 — 입장권 모양 */
  -webkit-mask: radial-gradient(circle 10px at 92px 0, transparent 98%, #000) top/100% 51% no-repeat,
                radial-gradient(circle 10px at 92px 100%, transparent 98%, #000) bottom/100% 51% no-repeat;
          mask: radial-gradient(circle 10px at 92px 0, transparent 98%, #000) top/100% 51% no-repeat,
                radial-gradient(circle 10px at 92px 100%, transparent 98%, #000) bottom/100% 51% no-repeat;
}
.ticket::before { /* 절취선 */
  content: ""; position: absolute; left: 91px; top: 14px; bottom: 14px;
  border-left: 2px dashed rgba(140, 16, 24, .28);
}
.ticket__date { grid-area: date; text-align: center; font-family: var(--letter); color: var(--velvet); }
.ticket__date b { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ticket__date span { font-size: 14px; color: var(--ink-soft); }
.ticket__who { grid-area: who; display: flex; align-items: center; gap: 14px; min-width: 0; }
.ticket__who img, .ticket__tree {
  width: 60px; height: 60px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 20%;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--gold);
}
.ticket__tree { display: grid; place-items: center; background: var(--velvet); }
.ticket__tree svg { width: 34px; height: 42px; }
.ticket__name { font-weight: 700; font-size: 19px; line-height: 1.3; }
.ticket__org { font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }
.ticket__times { grid-area: times; font-size: 15.5px; font-weight: 600; color: var(--velvet); }
.ticket__stamp {
  position: absolute; left: 0; width: 92px; bottom: 12px;
  display: none;
  text-align: center;
  font-size: 12px; font-weight: 700; line-height: 1.2; color: #6b450c;
}
.ticket.is-next { background: linear-gradient(180deg, #fff6dc, #f4e2b2); }
.ticket.is-next .ticket__stamp { display: block; }
.ticket.is-next .ticket__date { padding-bottom: 18px; }
.ticket.is-past { opacity: .55; }
.ticket.is-past .ticket__times::after { content: " · 마쳤습니다"; color: var(--ink-soft); font-weight: 400; }

.place { margin-top: 56px; text-align: center; }
.place__name { font-family: var(--letter); font-size: 24px; font-weight: 700; }
.place__name b { color: var(--gold-hi); }
.place__addr { margin-top: 2px; color: var(--on-red-soft); font-size: 16px; }
.place__btns { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 16px;
  background: rgba(255, 245, 239, .1);
  box-shadow: inset 0 0 0 1px rgba(244, 222, 163, .45);
  transition: background .3s var(--ease);
}
.pill svg { width: 20px; height: 20px; color: var(--gold-hi); }
.pill:hover { background: rgba(255, 245, 239, .18); }

/* ───────────── 4. 참여 — 초록 새틴 띠 ───────────── */
.rsvp {
  position: relative;
  padding: 76px var(--gutter) 72px;
  text-align: center;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #1a6340, #175c3a 30%, #124d30 70%, var(--satin-deep));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.rsvp > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.rsvp__ribbon {
  position: absolute; left: 0; right: 0; top: 10px; height: 0;
  border-top: 1px dashed rgba(244, 222, 163, .5);
}
.rsvp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; border-top: 1px dashed rgba(244, 222, 163, .5); }
.rsvp__lead { margin-top: 12px; color: var(--on-green-soft); }
.chips { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  min-height: 64px;
  border: 0; border-radius: 12px;
  display: grid; place-content: center; gap: 0;
  font-weight: 700; font-size: 17px; line-height: 1.3;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.chip small { font-weight: 500; font-size: 13.5px; color: var(--on-green-soft); }
.chip[aria-checked="true"] {
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  box-shadow: inset 0 0 0 2px var(--gold), 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.chip[aria-checked="true"] small { color: var(--ink-soft); }
.go-btn {
  margin-top: 22px;
  width: 100%; height: 62px;
  border: 0; border-radius: 14px;
  font-weight: 800; font-size: 20px; letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(180deg, var(--velvet-hi), var(--velvet) 55%, var(--velvet-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 12px 24px -10px rgba(0, 0, 0, .7);
  transition: transform .35s var(--ease), filter .3s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.go-btn:hover { filter: brightness(1.06); }
.go-btn:active { transform: translateY(1px); }
.go-btn[disabled] { cursor: default; filter: saturate(.75); }
.go-btn.is-done { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-deep)); color: #4d3109; }
.go-btn svg { width: 24px; height: 24px; }
.go-btn--sm { margin-top: 0; width: auto; height: 50px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.rsvp__count { margin-top: 22px; font-family: var(--letter); font-size: 21px; font-weight: 700; }
.rsvp__count b { color: var(--gold-hi); font-size: 1.35em; font-variant-numeric: tabular-nums; }
.rsvp__sub { margin-top: 4px; font-size: 14.5px; color: var(--on-green-soft); font-variant-numeric: tabular-nums; }

/* ───────────── 5. 갤러리 ───────────── */
.gallery { padding: 76px 0 64px; }
.gallery .sec-title, .gallery .sec-sub { padding: 0 var(--gutter); }
.strip {
  margin-top: 30px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 560px);
  gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px max(var(--gutter), calc((100vw - min(84vw, 560px)) / 2)) 18px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip button {
  scroll-snap-align: center;
  border: 0; padding: 0; background: var(--velvet-ink);
  aspect-ratio: 4 / 5;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(244, 222, 163, .3), var(--shadow-paper);
  transition: transform .6s var(--ease);
}
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.strip__idx { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; color: var(--on-red-soft); font-size: 15px; }
.round {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; color: #fff;
  background: rgba(255, 245, 239, .12);
  box-shadow: inset 0 0 0 1px rgba(244, 222, 163, .45);
}
.round svg { width: 22px; height: 22px; }
.round:hover { background: rgba(255, 245, 239, .2); }

/* ───────────── 6. 영상 ───────────── */
.videos { padding: 76px var(--gutter) 72px; background: linear-gradient(180deg, var(--velvet-deep), var(--velvet-ink)); }
.videos > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.player {
  margin-top: 30px;
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(244, 222, 163, .35), 0 22px 44px -16px rgba(0, 0, 0, .8);
}
.player iframe, .player__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__poster { padding: 0; background: #000; }
.player__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.player__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  color: #4d3109;
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .7);
  transition: transform .4s var(--ease);
}
.player__play svg { width: 34px; height: 34px; margin-left: 4px; }
.player__poster:hover .player__play { transform: scale(1.06); }
.player__title { margin-top: 14px; font-weight: 700; font-size: 18px; line-height: 1.45; }
.vlist { list-style: none; margin-top: 22px; padding: 0; display: grid; gap: 4px; }
.vlist button {
  width: 100%; border: 0; background: none; padding: 10px 6px; border-radius: 10px;
  display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; text-align: left;
  transition: background .3s var(--ease);
}
.vlist button:hover { background: rgba(255, 245, 239, .06); }
.vlist button[aria-current="true"] { background: rgba(244, 222, 163, .12); }
.vlist img { width: 132px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.vlist b { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; }
.vlist span { font-size: 13.5px; color: var(--on-red-soft); }

/* ───────────── 7. 방명록 ───────────── */
.guest {
  padding: 76px var(--gutter) 80px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
}
.guest > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.gb-form { margin-top: 28px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .share__to input {
  width: 100%;
  border: 0; border-radius: 10px;
  padding: 13px 14px;
  font-size: 17px; line-height: 1.55;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(106, 72, 66, .3);
  transition: box-shadow .25s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #8c6a63; }
.field input:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--velvet); }
.field--name { max-width: 220px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gb-form__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gb-form__msg { font-size: 15px; color: var(--velvet); }
.gb-form__msg.ok { color: var(--satin); }
.notes { list-style: none; margin-top: 36px; padding: 0; display: grid; gap: 14px; }
.notes li {
  position: relative;
  padding: 18px 18px 16px;
  background: #fffdf8;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(60, 20, 10, .08), 0 10px 22px -16px rgba(60, 20, 10, .5);
}
.notes li::before {
  content: ""; position: absolute; left: 18px; top: 0; width: 34px; height: 4px; border-radius: 0 0 3px 3px;
  background: var(--satin);
}
.notes li:nth-child(3n+2)::before { background: var(--velvet); }
.notes li:nth-child(3n+3)::before { background: var(--gold); }
.notes p { white-space: pre-line; font-family: var(--letter); font-size: 17px; line-height: 1.75; }
.notes footer { margin-top: 8px; display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-soft); }
.notes footer b { color: var(--ink); font-size: 15px; }
.notes .empty { background: transparent; box-shadow: none; text-align: center; color: var(--ink-soft); padding: 8px 0; }
.notes .empty::before { display: none; }
.more {
  display: block; margin: 20px auto 0; min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px; background: transparent; color: var(--velvet); font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(140, 16, 24, .45);
}

/* ───────────── 8. 공유 ───────────── */
.share { position: relative; overflow: hidden; padding: 80px var(--gutter) 88px; text-align: center; }
.share > * { position: relative; max-width: 560px; margin-left: auto; margin-right: auto; }
.share__flake { position: absolute !important; width: 220px; height: 220px; right: -70px; top: -50px; opacity: .25; }
.share__to { display: grid; gap: 8px; margin-top: 30px; text-align: left; }
.share__to span { font-size: 15px; font-weight: 600; color: var(--on-red-soft); }
.share__to input { background: var(--paper); box-shadow: inset 0 0 0 2px transparent; }
.share__to input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--gold); }
.share__hint { margin-top: 8px; text-align: left; font-size: 14.5px; color: var(--on-red-soft); }
.share__hint b { color: #fff; font-weight: 600; }
.share__grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sbtn {
  min-height: 60px; border: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 17px;
  transition: transform .3s var(--ease), filter .3s;
}
.sbtn svg { width: 24px; height: 24px; }
.sbtn:hover { filter: brightness(1.05); }
.sbtn:active { transform: translateY(1px); }
.sbtn--kakao { background: #fee500; color: #191600; }
.sbtn--insta { background: linear-gradient(135deg, #c1246a, #962fbf 55%, #4f46c8); color: #fff; }
.sbtn--fb { background: #1463cf; color: #fff; }
.sbtn--link { background: var(--paper); color: var(--ink); }

/* ───────────── 푸터 ───────────── */
.foot {
  padding: 56px var(--gutter) 120px;
  background: #23110f;
  color: #e8d4cc;
  font-size: 15px;
  text-align: center;
}
.foot > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.foot p { margin-top: 14px; line-height: 1.6; }
.foot a { color: var(--gold-hi); text-underline-offset: 3px; }
.foot__worship h2 { font-family: var(--letter); font-size: 20px; color: #fff; }
.foot dl { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; text-align: left; }
.foot dl div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(244, 222, 163, .14); }
.foot dl div:last-child { grid-column: 1 / -1; }
.foot dt { color: var(--gold); font-weight: 700; flex: none; }
.foot dd { margin: 0; font-variant-numeric: tabular-nums; }
.foot dd small { display: block; font-size: 13px; color: #b89a90; }

/* ───────────── 하단 고정 바 ───────────── */
.dock {
  position: fixed; z-index: 20;
  left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(58, 5, 8, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 rgba(244, 222, 163, .25);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.dock.show { transform: none; }
.dock a {
  min-height: 52px; border-radius: 12px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 17px;
}
.dock svg { width: 20px; height: 20px; }
.dock__share { background: rgba(255, 245, 239, .12); box-shadow: inset 0 0 0 1px rgba(244, 222, 163, .4); }
.dock__go { background: linear-gradient(180deg, #23704a, var(--satin) 50%, var(--satin-deep)); color: #fff; }
.dock__go.is-done { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #4d3109; }
@media (min-width: 720px) {
  .dock { left: 50%; right: auto; width: 440px; translate: -50% 0; bottom: 16px; border-radius: 18px; padding: 10px; }
}

/* ───────────── 라이트박스 ───────────── */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(20, 3, 4, .96); color: #fff;
}
.lightbox::backdrop { background: rgba(20, 3, 4, .8); }
.lightbox__track {
  height: 100%;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track figure { margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 64px 12px; }
.lightbox__track img { max-height: calc(100dvh - 128px); width: auto; object-fit: contain; border-radius: 4px; }
.lightbox__close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lightbox__prev, .lightbox__next { position: fixed; top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
@media (hover: none) { .lightbox__prev, .lightbox__next { display: none; } }

/* ───────────── 토스트 ───────────── */
.toast {
  position: fixed; z-index: 40; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  translate: -50% 12px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px;
  background: var(--paper); color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.5; text-align: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), translate .4s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* 넓은 화면: 초대장은 가운데 한 장으로 */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .paper { padding: 64px 56px 52px; }
  .letter__body { font-size: 19px; }
  .chips { grid-template-columns: repeat(4, 1fr); }
  .share__grid { grid-template-columns: repeat(4, 1fr); }
  .foot dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot dl div:last-child { grid-column: auto; }
}
.more[hidden] { display: none; }
