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

:root {
  --cream: #faf7f2;
  --brown: #6b4f3a;
  --gold: #b8956a;
  --rose: #c9a0a0;
  --sage: #8aaa8a;
  --text: #3d2e22;
  --light-text: #7a6555;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: 'Nanum Myeongjo', serif;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ── 페이드인 애니메이션 ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 인트로 ── */
.intro {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: linear-gradient(180deg, #f5ede3 0%, #faf7f2 100%);
  position: relative;
  text-align: center;
}

.intro-deco {
  font-size: 2rem;
  color: var(--rose);
  position: absolute;
}
.intro-deco.top { top: 40px; }
.intro-deco.bottom { bottom: 40px; transform: rotate(180deg); }

.intro-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-label {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--light-text);
}

.intro-names {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.05em;
}

.heart {
  color: var(--rose);
}

.intro-date {
  font-size: 0.95rem;
  color: var(--light-text);
  letter-spacing: 0.1em;
}

.intro-venue {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}

/* ── 공통 섹션 ── */
section {
  padding: 60px 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--brown);
  font-weight: 400;
}

.section-deco {
  color: var(--rose);
  font-size: 0.9rem;
}

/* ── 인사말 ── */
.greeting {
  background: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.greeting-text p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--light-text);
  margin-bottom: 16px;
}

/* ── 화환 사절 ── */
.no-flowers {
  margin-top: 20px;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: var(--light-text);
  border-top: 1px solid #e8ddd3;
  padding-top: 20px;
  width: 100%;
  text-align: center;
}

/* ── 혼주 ── */
.parents-section {
  background: white;
  padding: 36px 24px;
}

.parents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.parents-side {
  flex: 1;
}

.parents-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 8px;
}

.parents-names {
  font-size: 0.85rem;
  color: var(--brown);
  line-height: 1.8;
  word-break: keep-all;
}

.parents-divider {
  color: var(--rose);
  font-size: 1rem;
}

/* ── 날짜/장소 ── */
.date-info {
  background: linear-gradient(180deg, #faf7f2 0%, #f5ede3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.date-card {
  text-align: center;
  width: 100%;
}

.date-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.date-title {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--sage);
  margin-bottom: 10px;
  font-weight: 400;
}

.date-main {
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 6px;
}

.date-sub {
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.6;
}

.divider-flower {
  color: var(--rose);
  letter-spacing: 0.3em;
  font-size: 1rem;
}

/* ── 갤러리 ── */
.gallery {
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: #f0e8df;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0e8df, #e8d5c4);
}

.gallery-item.placeholder::after {
  content: '🌸';
  font-size: 2rem;
  opacity: 0.5;
}

.gallery-item.placeholder img {
  display: none;
}

/* ── 라이트박스 ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── 지도 ── */
.map-section {
  background: linear-gradient(180deg, #f5ede3 0%, #faf7f2 100%);
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#map {
  width: 100%;
  height: 240px;
  background: #e8ddd3;
}

.map-fallback {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  font-size: 0.9rem;
  background: #f0e8df;
}

.map-address {
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 16px;
  line-height: 1.6;
}

.map-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.map-btn {
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Nanum Gothic', sans-serif;
  transition: opacity 0.2s;
}

.map-btn:hover { opacity: 0.85; }

.map-btn.kakao {
  background: #FEE500;
  color: #3c1e1e;
}

.map-btn.naver {
  background: #03C75A;
  color: white;
}

.transport-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.transport-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.transport-icon {
  font-size: 1.3rem;
  margin-top: 2px;
}

.transport-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--brown);
  margin-bottom: 2px;
}


.transport-item p {
  font-size: 0.82rem;
  color: var(--light-text);
  font-family: 'Nanum Gothic', sans-serif;
  line-height: 1.5;
}

/* ── 계좌번호 ── */
.account-section {
  background: white;
  text-align: center;
}

.account-desc {
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.9;
  margin-bottom: 28px;
}

.account-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-card {
  background: var(--cream);
  border: 1px solid #e8ddd3;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-role {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--sage);
}

.account-name {
  font-size: 1rem;
  color: var(--brown);
  font-weight: 700;
}

.account-number {
  font-size: 0.88rem;
  color: var(--light-text);
  font-family: 'Nanum Gothic', sans-serif;
}

.copy-btn {
  align-self: flex-end;
  background: var(--gold);
  color: white;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Nanum Gothic', sans-serif;
  transition: background 0.2s;
}

.copy-btn:hover { background: var(--brown); }
.copy-btn.copied { background: var(--sage); }

/* ── D-day ── */
.dday-box {
  margin-top: 16px;
  display: inline-block;
  border: 1px solid var(--rose);
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 0.9rem;
  color: var(--rose);
  letter-spacing: 0.15em;
}

/* ── 화환 사절 고정 알림 ── */
.flower-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #e8ddd3;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.82rem;
  color: var(--light-text);
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 999;
  font-family: 'Nanum Myeongjo', serif;
}

/* ── 카카오 공유 ── */
.share-section {
  background: white;
  padding: 36px 24px;
  text-align: center;
}

.kakao-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEE500;
  color: #3c1e1e;
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-family: 'Nanum Gothic', sans-serif;
  cursor: pointer;
  font-weight: 700;
  transition: opacity 0.2s;
}

.kakao-share-btn:hover { opacity: 0.85; }

.kakao-share-btn img {
  width: 20px;
  height: 20px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  color: var(--brown);
  border: 1px solid var(--gold);
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-family: 'Nanum Gothic', sans-serif;
  cursor: pointer;
  font-weight: 700;
  transition: opacity 0.2s;
}

.copy-link-btn:hover { opacity: 0.85; }
.copy-link-btn.copied { background: var(--sage); color: white; border-color: var(--sage); }

/* ── 푸터 ── */
.footer {
  background: linear-gradient(180deg, #faf7f2 0%, #f5ede3 100%);
  text-align: center;
  padding: 48px 24px 60px;
  color: var(--light-text);
  font-size: 0.9rem;
  line-height: 2;
}

.footer-deco {
  font-size: 1rem;
  color: var(--rose);
  letter-spacing: 0.5em;
  margin-bottom: 16px;
}
