/* ===== Theme (원본 Lovable 디자인 토큰 그대로) ===== */
:root {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-display: var(--font-sans);
  /* 표지 날짜·이름: Windows 는 Microsoft Himalaya, 휴대폰 등은 비슷한 세리프(Times 계열)로 크기를 맞춰 대체 */
  --font-cover: "Cover Himalaya", "Cover Serif", serif;

  --canvas: oklch(0% 0 0);
  --background: oklch(0% 0 0);
  --foreground: oklch(95% .006 95);
  --card: oklch(98% .006 105);
  --card-foreground: oklch(34% .028 115);
  --primary: oklch(97% .004 100);
  --primary-foreground: oklch(18% 0 0);
  --secondary: oklch(19% 0 0);
  --muted: oklch(19% 0 0);
  --muted-foreground: oklch(76% .008 90);
  --accent: oklch(97% .004 100);
  --accent-foreground: oklch(18% 0 0);
  --border: oklch(100% 0 0 / .18);
  --input: oklch(100% 0 0 / .3);

  --polaroid-paper: oklch(98% .004 100);
  --polaroid-ink: oklch(36% 0 0);
  --polaroid-shadow: 0 8px 22px oklch(0% 0 0 / .35);
  --invitation-shadow: 0 0 80px oklch(12% .01 115 / .35);
  --hero-shade: linear-gradient(180deg, oklch(20% .02 115 / .45) 0%, transparent 22%, transparent 55%, oklch(12% .015 115 / .55) 78%, oklch(10% .01 115 / .85) 100%);
  --music-glass: oklch(55% 0 0 / .38);
  --music-border: oklch(98% 0 0 / .18);
  --music-button: oklch(98% 0 0 / .92);
  --music-ink: oklch(25% 0 0);
  --note-5: oklch(92% .02 105);
  --subtitle: oklch(80% .004 90);      /* 구간 제목 (오시는 길 등) */
  --subtitle-en: oklch(68% .004 90);   /* 구간 영문 소제목 (LOCATION 등) */

  /* 검은 종이 질감: 결 없이 고르게 — 미세한 종이 표면(밝은·어두운 입자) + 은은한 펄프 얼룩 */
  --paper-base: oklch(10% .003 80);
  --paper-tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .97 0 0 0 0 .96 0 0 0 0 .93 .2 0 0 0 -.07'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E");
  --paper-speck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.6 0 0 0 .26'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --paper-pulp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .91 0 0 0 0 .86 .09 0 0 0 -.025'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  /* 보내주신 검은 종이 이미지를 이음새 없이 반복 (images/paper-bg.jpg) */
  --paper: url("images/paper-bg.jpg") 0 0 / 728px 728px repeat, rgb(35 33 36);
}

/* Microsoft Himalaya 는 Windows 기본 글꼴이라 웹폰트로 올릴 수 없어, 설치된 기기에서만 쓰고 나머지는 Times 계열로 대체 */
@font-face { font-family: "Cover Himalaya"; src: local("Microsoft Himalaya"), local("MicrosoftHimalaya"); }
@font-face { font-family: "Cover Serif"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times"), local("Noto Serif"), local("NotoSerif-Regular"); size-adjust: 68%; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; line-height: 1.5; }
body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--foreground);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; cursor: pointer; }
fieldset { min-width: 0; }
body.locked { overflow: hidden; }

/* ===== utilities ===== */
.font-display { font-family: var(--font-display); font-weight: 400; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.fg-80 { color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.text-10 { font-size: 10px; line-height: 20px; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.leading-6 { line-height: 1.5rem; }
.leading-7 { line-height: 1.75rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: .5rem; } .mb-5 { margin-bottom: 1.25rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-7 { margin-bottom: 1.75rem; }
.ml-3 { margin-left: .75rem; }
.my-9 { margin-top: 2.25rem; margin-bottom: 2.25rem; }
.pt-6 { padding-top: 1.5rem; } .pt-7 { padding-top: 1.75rem; } .pt-14 { padding-top: 3.5rem !important; }
.pb-4 { padding-bottom: 1rem; } .pb-12 { padding-bottom: 3rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.block-icon { display: block; width: max-content; margin-left: auto; margin-right: auto; }
.block-icon svg { display: block; }
.ico { display: inline-block; flex-shrink: 0; vertical-align: middle; }
i[data-icon] { font-style: normal; display: inline-flex; }

/* ===== buttons (shadcn 스타일) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  white-space: nowrap; border-radius: .375rem; font-size: .875rem; font-weight: 500;
  height: 2.25rem; padding: .5rem 1rem; transition: background-color .15s, color .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
a.btn { color: inherit; text-decoration: none; }
.btn svg { width: 1rem; height: 1rem; pointer-events: none; flex-shrink: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn:focus-visible { outline: 1px solid var(--primary); outline-offset: 1px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }
.btn-outline { border: 1px solid var(--input); background: transparent; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-icon { width: 2.25rem; height: 2.25rem; padding: 0; }
.wedding-button { border-radius: 4px; width: 100%; min-height: 46px; font-size: 13px; }

/* ===== layout ===== */
.invitation, .sheet-panel, .dialog-panel { background: var(--paper); }
.invitation { width: 100%; max-width: 480px; box-shadow: var(--invitation-shadow); margin: auto; overflow-x: hidden; }

.cover { height: min(780px, 93svh); min-height: 580px; position: relative; overflow: hidden; }
.cover-photo { object-fit: cover; width: 100%; height: 100%; position: absolute; inset: 0; }
.cover::after { content: ""; background: var(--hero-shade); pointer-events: none; position: absolute; inset: 0; }

.music-bar {
  z-index: 2; position: absolute; top: 16px; left: 20px; right: 20px;
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 14px 7px 8px;
  border: 1px solid var(--music-border); background: var(--music-glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--foreground); border-radius: 999px;
}
.music-toggle { background: var(--music-button); width: 36px; height: 36px; color: var(--music-ink); border-radius: 50%; flex: 0 0 36px; }
.music-toggle:hover { background: var(--music-button); color: var(--music-ink); }
.music-toggle:disabled { opacity: .7; }
.music-label { text-align: center; flex: 1; min-width: 0; line-height: 1.5; }
.music-label span { overflow-wrap: anywhere; font-size: 11px; display: block; }
.music-label small { opacity: .75; overflow-wrap: anywhere; margin-top: 2px; font-size: 9px; display: block; }
.music-note { opacity: .75; flex-shrink: 0; }
.music-note.playing { color: var(--primary); opacity: 1; animation: note-bob 1.6s ease-in-out infinite; }
@keyframes note-bob { 50% { transform: translateY(-3px) rotate(-6deg); } }
.yt-host { position: fixed; left: 0; bottom: 0; width: 200px; height: 200px; opacity: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.cover-bottom { z-index: 1; text-shadow: 0 1px 8px oklch(0% 0 0 / .45); text-align: center; position: absolute; bottom: 12px; left: 0; right: 0; }
.cover-date { font-family: var(--font-cover); font-size: 22px; line-height: 1.1; letter-spacing: .5px; }
.cover-names { font-family: var(--font-cover); font-size: 26px; line-height: 1.1; letter-spacing: 1px; margin-top: 4px; }
.scroll-hint { animation: bounce-soft 2s infinite; }
@keyframes bounce-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.eyebrow { letter-spacing: 3px; color: var(--subtitle-en); text-transform: uppercase; font-size: 10px; }
.eyebrow-sm { font-size: 8px; }
.section { text-align: center; padding: 46px 32px; }
.section-title { font-family: var(--font-display); color: var(--subtitle); margin: 14px 0 27px; font-size: 26px; font-weight: 400; line-height: 1.5; }
.section-copy { font-family: var(--font-display); font-size: 15px; line-height: 2.25; }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 스크롤할 때 구간마다 아래에서 천천히 떠오르는 모션 */
.reveal { opacity: 0; translate: 0 12px; transition: opacity 1.2s ease, translate 1.2s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.section-copy .line { display: block; }
.reveal.in { opacity: 1; translate: 0 0; }

.divider { color: var(--primary); display: flex; justify-content: center; align-items: center; gap: 16px; padding: 14px 0; }
.divider::before, .divider::after { content: ""; background: var(--border); width: 44px; height: 1px; }

.parents { font-size: 13px; margin-top: 3rem; }
.parents p + p { margin-top: .75rem; }
.parents strong { font-weight: 400; font-size: 15px; }

/* ===== calendar ===== */
.date-sub { margin-top: -.75rem; margin-bottom: 1.75rem; }
.calendar { width: fit-content; margin: 0 auto; padding: .75rem; --cell: 2rem; }
.cal-caption { height: var(--cell); display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 500; margin-bottom: 1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, var(--cell)); }
.cal-wd { color: var(--muted-foreground); font-size: .8rem; text-align: center; height: 1.4rem; }
.cal-day { height: var(--cell); display: flex; align-items: center; justify-content: center; font-size: .875rem; border-radius: .375rem; margin-top: .5rem; }
.cal-day.sel {
  color: #fff; font-weight: 600; font-size: .8rem; padding-bottom: 3px;
  position: relative; z-index: 0;
}
.cal-day.sel::before {   /* 칸보다 크게 그리기 위해 별도 레이어로 */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 42px; height: 42px; transform: translate(-50%, -48%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e0242f' d='M12 21.3 10.6 20C5.4 15.4 2 12.3 2 8.5 2 5.4 4.4 3 7.5 3c1.7 0 3.4.8 4.5 2.1C13.1 3.8 14.8 3 16.5 3 19.6 3 22 5.4 22 8.5c0 3.8-3.4 6.9-8.6 11.5L12 21.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 4px rgb(224 36 47 / .35));
}
/* 날짜 구간은 흰색 */
.date-section .section-title, .date-section .countdown b, .date-section .heart-inline, .date-section #dday .text-primary { color: var(--foreground); }
.cal-line { margin: 2rem auto 0; height: 1px; width: 13rem; background: var(--border); }

.countdown { display: flex; justify-content: center; gap: 20px; margin: 24px 0; }
.countdown b { display: block; font-size: 26px; font-family: var(--font-display); color: var(--primary); font-weight: 400; line-height: 1.5; min-width: 2ch; }
.countdown small { color: var(--muted-foreground); margin-top: 4px; font-size: 9px; display: block; }
.heart-inline { display: inline-block; vertical-align: -1px; margin: 0 .25rem; color: var(--primary); }

/* ===== gallery: 실사 느낌 폴라로이드(인스탁스 와이드 비율) + 사진 격자 ===== */
.gallery-section { padding: 2.5rem 0 3rem; text-align: center; }
.polaroid-stack { display: grid; justify-items: center; gap: 18px; }
.polaroid {
  /* 보내주신 폴라로이드 테두리 이미지 사용 (images/polaroid-frame.png, 사진 창은 투명) */
  position: relative; display: block; width: 68%; max-width: 300px; aspect-ratio: 190 / 151;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / .35)) drop-shadow(0 8px 14px rgb(0 0 0 / .45));
  transition: transform .25s;
}
.polaroid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: url("images/polaroid-frame.png") center / 100% 100% no-repeat;
}
.polaroid:nth-child(1) { transform: rotate(-.4deg); }
.polaroid:nth-child(2) { transform: rotate(.5deg); }
.polaroid:nth-child(3) { transform: rotate(-.2deg); }
.polaroid:active { transform: scale(.985); }
/* 사진 창 위치: 왼쪽 4.7% · 위 8.6% · 너비 91.1% · 높이 72.8% (테두리 밑으로 살짝 겹치게) */
.polaroid-photo { position: absolute; left: 4.3%; top: 8.1%; width: 91.9%; height: 73.8%; overflow: hidden; background: #1a1a1a; z-index: 1; }
.polaroid-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.12) saturate(.9) contrast(.95) brightness(1.02);   /* 즉석필름 색감 */
}
.polaroid-photo::after {   /* 필름 광택 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgb(255 255 255 / .14) 0%, rgb(255 255 255 / 0) 38%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / .05) 100%);
}
.photo-grid { margin: 110px 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid-item { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #1a1a1a; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid-item:active img { transform: scale(1.03); }
.grid-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(0 0 0 / .45); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .3px;
}

/* ===== location ===== */
.address-line { display: flex; align-items: center; justify-content: center; gap: 6px; }
.addr-copy { color: var(--primary); opacity: .8; display: inline-flex; padding: 2px; }
.map-awaiting {
  background: var(--secondary); border: 1px solid var(--border); height: 210px; color: var(--muted-foreground);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; margin: 25px 0 16px; font-size: 13px;
}
.map-frame { width: 100%; height: 240px; margin: 1.5rem 0; border: 1px solid var(--border); background: var(--secondary); }
.map-links { margin-top: .75rem; display: flex; gap: .5rem; }
.map-links .btn { flex: 1; padding: .5rem; }
.info-row { text-align: left; border-top: 1px solid var(--border); padding: 22px 0 5px; font-size: 13px; line-height: 1.9; }
.info-row h3 { color: var(--primary); display: flex; align-items: center; gap: 9px; margin-bottom: 7px; font-size: 13px; font-weight: 500; }
.info-row p { color: var(--muted-foreground); }
.info-row li { color: var(--muted-foreground); list-style: none; padding-left: 12px; position: relative; }
.info-row li::before { content: "·"; position: absolute; left: 0; color: var(--primary); }

.info-row li b { color: var(--foreground); font-weight: 500; }
.info-note { margin-top: 6px; font-size: 12px; color: color-mix(in oklab, var(--primary) 75%, var(--muted-foreground)) !important; }

/* ===== intro ===== */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--paper); transition: opacity .9s ease; }
.intro.leave { opacity: 0; pointer-events: none; }
.intro-inner {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; color: var(--foreground); text-align: center; cursor: pointer;
}
.intro-inner > * { opacity: 0; animation: intro-in 1.2s ease forwards; }
/* 예시 비율: 위 작은 영문 이름 / 가운데 한글 이름 / 아래 작은 날짜·장소 */
.intro-top, .intro-bottom {
  position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center;
  font-size: 9px; line-height: 1.45; letter-spacing: .3px; text-transform: uppercase; color: var(--foreground); opacity: 0;
}
.intro-top { top: 10%; animation-delay: .2s; }
.intro-bottom { bottom: 7%; animation-delay: 1s; }
.intro-center { display: flex; flex-direction: column; align-items: center; gap: 4px; animation-delay: .6s; }
.intro-sub { font-size: 9px; letter-spacing: .3px; color: var(--muted-foreground); }
.intro-names { font-family: var(--font-display); font-size: 15px; font-weight: 400; letter-spacing: 1px; word-spacing: 3px; color: var(--primary); animation-delay: .6s; }@keyframes intro-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes intro-pulse { 50% { opacity: .35; } }

/* ===== names + photo ===== */
.name-row > :first-child { justify-self: end; }   /* & 양옆 간격을 똑같이 */
.name-row > :last-child { justify-self: start; }
.name-block { padding: 56px 0 0; text-align: center; --photo-gap: 110px; }
:root { --photo-gap-below: 105px; }   /* 사진 아래 여백 (위 여백과 같게 보이도록 맞춤) */
.name-row { display: flex; justify-content: center; align-items: baseline; column-gap: 40px; padding: 0 12%;   /* 이름 전체를 가운데 정렬, & 양옆 간격은 같게 */
  font-family: var(--font-cover); font-size: 22px; font-weight: 400; line-height: 1.1; letter-spacing: .5px; color: var(--foreground); }   /* 표지 날짜와 같은 글꼴 */
.name-photo { width: 86%; max-width: 386px; aspect-ratio: 386 / 115; height: auto; margin: var(--photo-gap) auto 0; }   /* 어느 휴대폰이든 좌우 여백 + 같은 비율 */
#invitation { padding-top: var(--photo-gap-below) !important; }

/* 빈티지 필름 보정: 바랜 색감 + 따뜻한 톤 + 들뜬 블랙 + 필름 입자 + 비네팅 */
.film { position: relative; overflow: hidden; }
.film img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.2) saturate(.88) contrast(.92) brightness(.99) hue-rotate(-5deg);
}
.film::before {   /* 따뜻한 하이라이트 + 청록 그림자 (크로스 프로세스 느낌) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgb(15 8 2 / .45) 100%),
    linear-gradient(180deg, rgb(255 214 160 / .22), rgb(70 110 110 / .16));
  mix-blend-mode: soft-light;
}
.film::after {    /* 블랙 띄우기 + 입자 + 비네팅 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .97 0 0 0 0 .9 .5 0 0 0 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(rgb(70 50 30 / .1), rgb(70 50 30 / .1));
  mix-blend-mode: screen;
  opacity: .45;
}

.venue-item { background: var(--card); color: var(--card-foreground); text-align: left; border-radius: 4px; display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 13px; }
.venue-photo { background: var(--note-5); display: grid; place-items: center; width: 86px; height: 86px; flex-shrink: 0; overflow: hidden; }
.venue-photo img { width: 100%; height: 100%; object-fit: cover; }
.venue-item h3 { margin-bottom: 7px; font-size: 14px; font-weight: 500; }
.venue-item p { opacity: .7; font-size: 12px; }

/* ===== accordion ===== */
.accordion { text-align: left; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; font-size: .875rem; font-weight: 500; text-align: left; }
.acc-trigger:hover { text-decoration: underline; }
.acc-trigger svg { color: var(--muted-foreground); transition: transform .2s; }
.acc-item.open .acc-trigger svg { transform: rotate(180deg); }
.acc-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease-out; font-size: .875rem; }
.acc-item.open .acc-content { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner > :last-child { margin-bottom: 1rem; }
.acct { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.acct-btns { display: flex; gap: 2px; flex-shrink: 0; }
.mt-1 { margin-top: .25rem; }

/* ===== bottom sheet (vaul drawer 스타일) ===== */
.sheet, .dialog { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.sheet.open, .dialog.open { visibility: visible; }
.sheet-overlay, .dialog-overlay { position: absolute; inset: 0; background: rgb(0 0 0 / .8); opacity: 0; transition: opacity .3s; }
.open > .sheet-overlay, .open > .dialog-overlay { opacity: 1; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; margin: auto;
  border: 1px solid var(--border); border-bottom: 0;
  border-radius: 10px 10px 0 0; transform: translateY(100%); transition: transform .4s cubic-bezier(.32, .72, 0, 1);
}
.sheet.open .sheet-panel { transform: none; }
.bottom-sheet { max-width: 480px; max-height: 92svh; padding: 0 26px 22px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-handle { margin: 1rem auto 0; height: .5rem; width: 100px; border-radius: 999px; background: var(--muted); }
.sheet-close { position: absolute; right: 1rem; top: 1rem; }

.contact-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px 0; }
.contact-columns h3 { text-align: center; font-size: .875rem; color: var(--primary); font-weight: 500; }
.contact-person { text-align: center; margin-top: 24px; }
.contact-person small { color: var(--muted-foreground); font-size: 11px; }
.contact-person p { margin: 6px 0; font-size: 14px; }
.contact-person .btns { display: flex; justify-content: center; gap: .75rem; }

.rsvp-form { margin-top: 1.25rem; display: grid; gap: 1rem; }
.rsvp-form[hidden] { display: none; }
.attend-only { display: grid; gap: 1rem; }
.attend-only[hidden] { display: none; }
.form-field { text-align: left; display: grid; gap: 8px; font-size: 12px; }
.form-field legend { font-size: 12px; }
.form-control { border: 1px solid var(--input); width: 100%; color: var(--foreground); background: transparent; border-radius: 4px; outline: none; padding: 12px; font-size: 13px; }
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--muted-foreground); font-size: 12px; }
.selection-row { display: flex; gap: 8px; }
.selection-row > * { flex: 1; }
.radio { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: 12px; cursor: pointer; }
.radio input, .hide-today input { accent-color: var(--primary); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.rsvp-done { padding: 3.5rem 0; text-align: center; }
.hide-today { margin-top: 1.25rem; display: flex; justify-content: center; gap: .5rem; font-size: .75rem; color: var(--muted-foreground); cursor: pointer; }

/* ===== lightbox ===== */
.dialog-panel {
  position: absolute; left: 50%; top: 50%; width: calc(100% - 2rem); max-width: 440px;
  transform: translate(-50%, -48%) scale(.96); opacity: 0; transition: opacity .2s, transform .2s;
  border: 1px solid var(--border); border-radius: .5rem; padding: .75rem;
  display: grid; gap: 1rem;
}
.dialog.open .dialog-panel { opacity: 1; transform: translate(-50%, -50%); }
.dialog-panel img { max-height: 72svh; width: 100%; object-fit: contain; }
.dialog-close { position: absolute; right: .5rem; top: .5rem; z-index: 1; color: var(--foreground); background: rgb(0 0 0 / .4); border-radius: 50%; }
.lightbox-nav { display: flex; align-items: center; justify-content: space-between; }

/* ===== toast ===== */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 60;
  width: calc(100% - 40px); max-width: 420px; display: flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .25rem; background: var(--primary); color: var(--primary-foreground);
  padding: 1rem; text-align: center; font-size: .75rem; box-shadow: 0 10px 15px rgb(0 0 0 / .3);
}
.toast[hidden] { display: none; }

.share-row { margin-top: 2.25rem; display: flex; justify-content: center; gap: .75rem; }

@media (max-width: 360px) {
  .section { padding-left: 24px; padding-right: 24px; }
  .bottom-sheet { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== 달력 (큰 월 숫자 + 예식 주간 2줄) · 카운트다운 한 줄 ===== */
.date-section .calendar { padding: 0; margin: 72px auto 0; }   /* 날짜·예식장 아래로 넉넉히 띄우기 */
.date-line { margin-top: 0; font-size: 11px; letter-spacing: 1px; color: var(--foreground); }   /* 달력 아래 작은 날짜 한 줄 */
.date-venue { margin-top: 8px; font-size: 10px; letter-spacing: .5px; color: var(--foreground); opacity: .85; }   /* 날짜 아래 예식장 */
.cal-month { font-size: 34px; font-weight: 300; line-height: 1; margin-bottom: 26px; color: var(--foreground); }
.cal-strip { display: grid; grid-template-columns: repeat(7, 34px); row-gap: 12px; justify-content: center; }
.cal-cell { font-size: 14px; font-weight: 300; line-height: 1.2; text-align: center; color: var(--foreground); }
.cal-cell.other { opacity: .35; }   /* 다른 달 날짜는 흐리게 */
.cal-cell.sel { position: relative; z-index: 0; color: #111; font-weight: 600; font-size: 12px; }
.cal-cell.sel::before {   /* 기존 하트 모양, 흰색 */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 34px; height: 34px; transform: translate(-50%, -46%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fafaf8' d='M12 21.3 10.6 20C5.4 15.4 2 12.3 2 8.5 2 5.4 4.4 3 7.5 3c1.7 0 3.4.8 4.5 2.1C13.1 3.8 14.8 3 16.5 3 19.6 3 22 5.4 22 8.5c0 3.8-3.4 6.9-8.6 11.5L12 21.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / .35));
}
.date-section .countdown { display: block; margin: 64px 0 8px; font-size: 16px; font-weight: 300; letter-spacing: .5px; font-variant-numeric: tabular-nums; color: var(--foreground); }
.dday-label { font-size: 12px; font-weight: 400; letter-spacing: .2px; color: var(--foreground); }

/* ===== 연락하기 구간 (계좌와 분리) ===== */
.pill-col { display: grid; justify-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 168px; height: 38px; padding: 0 18px;
  border-radius: 6px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .14);
  color: var(--foreground); font-size: 12.5px; transition: background-color .15s;
}
.pill:hover, .pill:active { background: rgb(255 255 255 / .18); }
#contactSheet .contact-columns { display: block; padding: 18px 0 8px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border); text-align: left; }
.contact-row:last-child { border-bottom: 0; }
.contact-row small { color: var(--muted-foreground); font-size: 11px; }
.contact-row p { margin-top: 2px; font-size: 14px; }
.contact-row .btns { display: flex; gap: 4px; }

/* ===== 표지 사진 왼쪽 아래 영문 문구 (얇은 타자기 글꼴 Cutive Mono) ===== */
.cover-quote {
  position: absolute; z-index: 1; left: 5%; right: 5%; bottom: 6%;
  /* 예시 이미지 비율: 글자 크기 = 화면 폭의 약 3.3% (375px 화면에서 약 12.4px) */
  font-family: "Cutive Mono", "Courier New", monospace; font-size: min(3.5vw, 16.8px); font-weight: 400; line-height: 1.55; letter-spacing: .2px;
  text-align: left; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .45);
}

/* ===== 한 화면에 한 구간씩 ===== */
.invitation > section:not(.cover), .invitation > footer {
  min-height: 100svh;                 /* 구간마다 최소 한 화면 높이 */
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 72px !important; padding-bottom: 72px !important;
}
#invitation { padding-top: 72px !important; }
.name-block { padding-left: 0; padding-right: 0; }
/* 구간 전체가 살짝 떠오르며 나타나고, 안의 글줄은 그 뒤로 한 줄씩 */
.sec-reveal { opacity: 0; translate: 0 40px; transition: opacity 1.1s ease, translate 1.1s cubic-bezier(.2, .7, .2, 1); }
.sec-reveal.in { opacity: 1; translate: 0 0; }