/* =============================================
   모바일 청첩장 — 미니멀 플로럴 테마
   ============================================= */

:root {
  --white: #ffffff;
  --bg: #faf9f7;
  --beige: #f5f0eb;
  --rose: #c9a89c;
  --rose-light: #e8d5cd;
  --rose-gold: #b5927e;
  --text: #3a3a3a;
  --text-light: #7a7a7a;
  --accent: #b5a99a;
  --font-en: 'Cormorant Garamond', serif;
  --font-kr: 'Noto Serif KR', serif;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-kr);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

/* =====================
   인트로 오버레이
   ===================== */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
  overflow: hidden;
}

#intro-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 장식 링 애니메이션 */
.intro-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--rose);
  opacity: 0;
  animation: ringExpand 1.2s ease-out forwards;
}

.intro-ring-1 {
  width: 200px; height: 200px;
  animation-delay: 0s;
}

.intro-ring-2 {
  width: 320px; height: 320px;
  animation-delay: 0.15s;
  border-color: var(--rose-light);
}

.intro-ring-3 {
  width: 440px; height: 440px;
  animation-delay: 0.3s;
  border-style: dashed;
  border-color: var(--rose-light);
}

@keyframes ringExpand {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(0deg);
  }
  30% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.35;
    transform: scale(1) rotate(30deg);
  }
}

.intro-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 인트로 장식 라인 */
.intro-line-top, .intro-line-bottom {
  width: 1.5px;
  margin: 0 auto;
  background: linear-gradient(to bottom, transparent, var(--rose), transparent);
  animation: lineGrow 0.6s ease-out forwards;
  opacity: 0;
}

.intro-line-top {
  height: 0;
  margin-bottom: 20px;
  animation-delay: 0.1s;
}

.intro-line-bottom {
  height: 0;
  margin-top: 20px;
  animation-delay: 0.7s;
}

@keyframes lineGrow {
  0% { height: 0; opacity: 0; }
  100% { height: 48px; opacity: 1; }
}

.intro-date {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 5px;
  color: var(--rose-gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: introFadeUp 0.6s ease-out 0.15s forwards;
}

.intro-names {
  font-family: var(--font-kr);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--text);
  margin-bottom: 12px;
  opacity: 0;
  animation: introFadeUp 0.6s ease-out 0.35s forwards;
}

.intro-names .amp {
  font-family: var(--font-en);
  font-weight: 300;
  font-style: italic;
  color: var(--rose);
  margin: 0 10px;
}

.intro-msg {
  font-size: 15px;
  color: var(--text-light);
  letter-spacing: 3px;
  opacity: 0;
  animation: introFadeUp 0.6s ease-out 0.55s forwards;
}

@keyframes introFadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 인트로 파티클 */
.intro-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.intro-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--rose-light);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.8; transform: translateY(-20px) scale(1); }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}

/* =====================
   히어로 섹션
   ===================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--beige) 0%, var(--white) 50%, var(--beige) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><circle cx="200" cy="120" r="80" fill="none" stroke="%23e8d5cd" stroke-width="0.5"/><circle cx="200" cy="120" r="120" fill="none" stroke="%23e8d5cd" stroke-width="0.3"/><path d="M160,200 Q200,160 240,200 Q200,240 160,200Z" fill="none" stroke="%23c9a89c" stroke-width="0.5"/></svg>') center 30% / 300px no-repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-kr);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 6px;
  margin-bottom: 28px;
}

.hero-names .groom,
.hero-names .bride {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.hero-names .amp {
  font-family: var(--font-en);
  font-weight: 300;
  font-style: italic;
  color: var(--rose);
  margin: 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.hero-date {
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.hero-venue {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-text {
  font-family: var(--font-kr);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--accent);
  animation: scrollTextPulse 2.5s ease-in-out infinite;
}

@keyframes scrollTextPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.scroll-line {
  width: 2px;
  height: 72px;
  background: linear-gradient(to bottom, var(--rose-light) 0%, var(--rose) 50%, transparent 100%);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.scroll-dot {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--rose);
  border-radius: 50%;
  animation: scrollDotDrop 2.2s ease-in infinite;
  box-shadow: 0 0 10px rgba(201, 168, 156, 0.6), 0 0 20px rgba(201, 168, 156, 0.3);
}

@keyframes scrollDotDrop {
  0% { top: -8px; opacity: 0; transform: translateX(-50%) scale(0.5); }
  15% { opacity: 1; transform: translateX(-50%) scale(1.2); }
  30% { transform: translateX(-50%) scale(1); }
  85% { opacity: 0.8; }
  100% { top: 72px; opacity: 0; transform: translateX(-50%) scale(0.3); }
}

/* =====================
   섹션 공통 타이틀
   ===================== */
.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title .en-title {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--text);
}

/* =====================
   인사말
   ===================== */
#greeting {
  background: var(--white);
}

.greeting-text {
  text-align: center;
  margin-bottom: 36px;
}

.greeting-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  color: var(--text);
}

.parents-info {
  text-align: center;
}

.parent-row {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.parent-row strong {
  color: var(--text);
  font-weight: 400;
}

.parent-names {
  font-weight: 300;
}

/* =====================
   캘린더 & 카운트다운
   ===================== */
#calendar {
  background: var(--beige);
}

.calendar-date {
  text-align: center;
  margin-bottom: 24px;
}

.cal-main-date {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--text);
}

.cal-time {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-top: 4px;
}

.calendar-grid {
  margin-bottom: 32px;
}

.calendar-grid table {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 14px;
}

.calendar-grid th {
  padding: 8px 0;
  font-weight: 300;
  font-size: 12px;
  color: var(--text-light);
}

.calendar-grid td {
  padding: 8px 0;
  text-align: center;
  font-weight: 300;
  color: var(--text);
}

.calendar-grid .sun { color: #d4837d; }
.calendar-grid .sat { color: #7a9ebd; }

.calendar-grid .highlight span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--rose);
  color: var(--white);
  border-radius: 50%;
  font-weight: 400;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-item {
  text-align: center;
  min-width: 56px;
}

.cd-num {
  display: block;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
}

.cd-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
}

.countdown-sep {
  font-family: var(--font-en);
  font-size: 24px;
  color: var(--rose-light);
  margin-top: -14px;
}

/* =====================
   오시는 길
   ===================== */
#location {
  background: var(--white);
}

.venue-info {
  text-align: center;
  margin-bottom: 24px;
}

.venue-name {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
}

.venue-detail {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.venue-tel {
  font-size: 13px;
  color: var(--accent);
}

.map-wrapper {
  margin-bottom: 20px;
}


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

.map-btn {
  flex: 1;
  max-width: 120px;
  padding: 10px 0;
  font-size: 13px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--rose-light);
  color: var(--text);
  transition: all 0.3s ease;
}

.map-btn:active {
  background: var(--rose-light);
  color: var(--white);
}

/* =====================
   교통 정보
   ===================== */
#transport {
  background: var(--beige);
}

.transport-tabs {
  max-width: 400px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--rose-light);
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--rose);
}

.tab-content {
  display: none;
  padding: 0 4px;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 10px;
  line-height: 1.8;
  color: var(--text);
}

.tab-content strong {
  font-weight: 400;
  color: var(--text);
}

/* =====================
   갤러리
   ===================== */
#gallery {
  background: var(--white);
}

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

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--beige), var(--rose-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.gallery-item:active .gallery-placeholder {
  transform: scale(1.05);
}

/* =====================
   라이트박스
   ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  color: #fff;
  z-index: 2;
  padding: 8px;
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  z-index: 2;
  padding: 16px;
}

.lb-prev { left: 4px; }
.lb-next { right: 4px; }

.lb-content {
  width: 90%;
  max-width: 400px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--beige), var(--rose-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--white);
}

.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
}

/* =====================
   RSVP
   ===================== */
#rsvp {
  background: var(--beige);
}

.rsvp-desc {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.8;
}

.rsvp-form {
  max-width: 360px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-kr);
  font-size: 14px;
  border: 1px solid var(--rose-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--rose);
}

.radio-group {
  display: flex;
  gap: 12px;
}

.radio-group-wrap {
  flex-wrap: wrap;
}

.radio-label.radio-sm {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 10px 14px;
}

.rsvp-other-input {
  margin-top: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rose-light);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-kr);
  outline: none;
  transition: border-color 0.3s;
}
.rsvp-other-input:focus {
  border-color: var(--accent);
}

.radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--rose-light);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--white);
}

.radio-label input {
  display: none;
}

.radio-label:has(input:checked) {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--rose);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-kr);
  border-radius: 8px;
  letter-spacing: 2px;
  transition: background 0.3s;
}

.submit-btn:active {
  background: var(--rose-gold);
}

.rsvp-result {
  text-align: center;
  padding: 24px;
}

.rsvp-result p {
  font-size: 15px;
  color: var(--text);
}

/* =====================
   방명록
   ===================== */
#guestbook {
  background: var(--white);
}

.guestbook-desc {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.guestbook-form {
  max-width: 360px;
  margin: 0 auto 28px;
}

.guestbook-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-kr);
  font-size: 14px;
  border: 1px solid var(--rose-light);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color 0.3s;
}

.guestbook-form textarea:focus {
  border-color: var(--rose);
}

.guestbook-form input[type="text"],
.guestbook-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-kr);
  font-size: 14px;
  border: 1px solid var(--rose-light);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.guestbook-form input:focus {
  border-color: var(--rose);
}

.guestbook-list {
  max-width: 360px;
  margin: 0 auto;
}

.gb-loading {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  padding: 16px 0;
}

.gb-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--beige);
}

.gb-item:last-child {
  border-bottom: none;
}

.gb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.gb-author {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}

.gb-date {
  font-size: 11px;
  color: var(--text-light);
}

.gb-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  word-break: break-word;
}

.gb-delete {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  padding: 2px 0;
}

.gb-delete:hover {
  color: var(--rose);
}

.gb-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  padding: 24px 0;
}

.gb-more-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-family: var(--font-kr);
  color: var(--accent);
  border: 1px solid var(--rose-light);
  border-radius: 8px;
  margin-top: 16px;
  transition: all 0.3s;
}

.gb-more-btn:active {
  background: var(--rose-light);
  color: var(--white);
}

.board-link {
  display: block;
  max-width: 360px;
  margin: 20px auto 0;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-family: var(--font-kr);
  color: var(--white);
  background: var(--rose);
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.board-link:active {
  background: var(--rose-gold);
}

/* =====================
   계좌번호
   ===================== */
#account {
  background: var(--white);
}

.account-desc {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.8;
}

.account-cards {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-card {
  border: 1px solid var(--rose-light);
  border-radius: 12px;
  overflow: hidden;
}

.account-toggle {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-family: var(--font-kr);
  color: var(--text);
}

.toggle-arrow {
  font-size: 12px;
  color: var(--accent);
  transition: transform 0.3s;
}

.account-toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
}

.account-details {
  display: none;
  padding: 0 20px 16px;
}

.account-details.open {
  display: block;
}

.account-row {
  padding: 12px 0;
  border-top: 1px solid var(--beige);
}

.account-holder {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.account-number {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.copy-btn {
  padding: 6px 16px;
  font-size: 12px;
  font-family: var(--font-kr);
  color: var(--rose-gold);
  border: 1px solid var(--rose-light);
  border-radius: 6px;
  transition: all 0.3s;
}

.copy-btn:active {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

/* =====================
   푸터
   ===================== */
#footer {
  padding: 48px 0;
  text-align: center;
  background: var(--beige);
}

.footer-names {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--text);
}

.footer-names span {
  color: var(--rose);
  font-style: italic;
}

.footer-date {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-top: 6px;
}

/* =====================
   토스트
   ===================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(58,58,58,0.9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10001;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =====================
   Fade-in 애니메이션
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   언어 전환 토글 버튼
   ===================== */
.lang-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.lang-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  color: #8B7E6A;
  letter-spacing: 0.5px;
}

/* =====================
   배경음악 토글 버튼
   ===================== */
.bgm-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B7E6A;
  transition: transform 0.3s, background 0.3s;
}

.bgm-toggle:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.bgm-toggle.playing .bgm-icon {
  animation: bgm-pulse 1s ease-in-out infinite;
}

@keyframes bgm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =====================
   꽃잎 이펙트
   ===================== */
.petal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.falling-petal {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 12px;
  border-radius: 50% 0 50% 50%;
  opacity: 0.6;
  animation: petal-fall linear forwards;
}

@keyframes petal-fall {
  0% {
    transform: translateX(0) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translateX(-30px) rotate(90deg) scale(0.9);
  }
  50% {
    transform: translateX(20px) rotate(180deg) scale(0.85);
  }
  75% {
    transform: translateX(-15px) rotate(270deg) scale(0.8);
  }
  100% {
    transform: translateX(10px) rotate(360deg) scale(0.7);
    opacity: 0;
    top: 100vh;
  }
}

/* =====================
   공유하기
   ===================== */
#share {
  padding-bottom: 20px;
}

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

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-family: 'Noto Serif KR', serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kakao-share {
  background: #FEE500;
  color: #3C1E1E;
}

.link-copy {
  background: #f5f0eb;
  color: #5c5245;
}

/* =====================
   반응형 (큰 화면)
   ===================== */
@media (min-width: 768px) {
  .container {
    max-width: 540px;
  }

  .hero-names .groom,
  .hero-names .bride {
    font-size: 32px;
  }

  .gallery-grid {
    gap: 8px;
  }

  .gallery-item {
    border-radius: 8px;
  }
}

/* ========================
   하트 터치 이펙트
   ======================== */
.touch-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: heartFloat 1.2s ease-out forwards;
  opacity: 0;
}

@keyframes heartFloat {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -80%) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -140%) scale(0.8);
  }
}

/* ========================
   Confetti 폭죽 이펙트
   ======================== */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  opacity: 0;
  animation: confettiFall ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) translateX(var(--drift, 0px)) rotate(720deg);
  }
}
