@font-face {
  font-family: "Iropke Batang";
  src: url("./assets/fonts/IropkeBatangM.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Nanum SaRangHaeADeur";
  src: url("./assets/fonts/NanumSaRangHaeADeur.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

:root {
  --paper: #faf8f5;
  --paper-deep: #f3f0ea;
  --ink: #211e1a;
  --sub: #55504a;
  --muted: #948d84;
  --faint: #c3bcb1;
  --line: #e9e4dc;
  --accent: #a58a68;
  --serif: "Iropke Batang", "Noto Serif KR", serif;
  --display: "Cormorant Garamond", "Iropke Batang", serif;
  --label: "Jost", "Noto Sans KR", sans-serif;
  --ios: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Inter", "Noto Sans KR", sans-serif;
  --radius: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  background: #edeae4;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.8;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.page-frame {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

/* 필름 그레인 */
.page-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 25;
  width: min(100%, 430px);
  transform: translateX(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: 160px 160px;
  opacity: 0.05;
  pointer-events: none;
}

.invite-shell {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: block;
  width: min(100%, 430px);
  height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--paper);
  font-family: var(--serif);
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.invite-shell.locked {
  overflow: hidden;
}

.invite-shell::-webkit-scrollbar {
  display: none;
}

.section {
  position: relative;
  width: 100%;
  padding: 96px 32px;
}

/* 스크롤 진입 리빌 — .rv.rv로 버튼 등 자체 transition보다 우선 적용 */
.rv.rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(min(var(--i, 0), 4) * 70ms);
}

.rv.rv.in {
  opacity: 1;
  transform: none;
}

.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;
}

/* ---------- 오프닝 캘리그라피 ---------- */

@keyframes calligraphyLayer {
  0% {
    opacity: 0;
    visibility: visible;
  }

  8%,
  70% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes calligraphyWrite {
  0% {
    clip-path: inset(0 100% 0 0);
    filter: blur(0.4px);
    transform: translate3d(-5px, 2px, 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.hero-calligraphy {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(2px);
}

body.calligraphy-ready .hero-calligraphy {
  animation: calligraphyLayer 4300ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.hero-calligraphy-inner {
  position: relative;
  width: min(100% - 58px, 320px);
  transform: translateY(-12px);
  text-align: center;
}

.calligraphy-line {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  color: var(--ink);
  font-family: "Nanum SaRangHaeADeur", var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  transform-origin: left center;
  will-change: clip-path, opacity, transform;
}

body.calligraphy-ready .calligraphy-line {
  animation: calligraphyWrite 1900ms cubic-bezier(0.4, 0, 0.2, 1) 380ms both;
}

/* ---------- 잠금화면 (첫 페이지) ---------- */

.lock-screen {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #1a1815;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.lock-screen:active {
  cursor: grabbing;
}

.lock-screen.done {
  touch-action: auto;
  cursor: default;
}

.hero-lock-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  will-change: transform;
}

.hero-lock-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.42) 0%, rgba(12, 10, 8, 0.08) 26%, rgba(12, 10, 8, 0) 46%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.52) 0%, rgba(12, 10, 8, 0.1) 30%, rgba(12, 10, 8, 0) 48%);
  pointer-events: none;
}

.hero-lock {
  position: relative;
  z-index: 2;
  will-change: transform;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(max(22px, env(safe-area-inset-top)) + 26px) 24px calc(max(10px, env(safe-area-inset-bottom)) + 8px);
  color: #ffffff;
  text-align: center;
}

.hero-lock-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-date {
  margin: 0;
  font-family: var(--ios);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 24px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.lock-clock {
  margin: 0;
  font-family: var(--ios);
  font-size: 88px;
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.lock-widgets {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.lock-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--ios);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
}

.hero-lock-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-names {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 32px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

.lock-names span {
  margin: 0 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.lock-invite {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 24px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.lock-swipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--ios);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 18px;
  animation: lockSwipeFloat 2400ms ease-in-out infinite;
}

.lock-chevron {
  width: 10px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
}

@keyframes lockSwipeFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }

  50% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

.lock-home {
  display: block;
  width: 128px;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- 섹션 디바이더 ---------- */

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 2px 0;
  background: var(--paper);
}

.section-divider::before,
.section-divider::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line);
}

.section-divider span {
  width: 5px;
  height: 5px;
  background: var(--faint);
  transform: rotate(45deg);
}

/* ---------- 공통 섹션 타이틀 ---------- */

.intro-label,
.section-title {
  margin: 0;
  color: var(--accent);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  line-height: 20px;
  text-transform: uppercase;
  text-align: center;
}

.intro-heading,
.section-heading {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
}

.intro-heading::after,
.section-heading::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 22px auto 0;
  background: var(--line);
}

/* ---------- 인사말 ---------- */

.intro {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(36px, 6svh, 56px);
  padding-bottom: clamp(76px, 11svh, 104px);
  text-align: center;
}

.intro-poem,
.intro-body,
.intro-sign {
  width: min(100%, 270px);
  margin: 0 auto;
  color: var(--sub);
  font-size: 15px;
  font-weight: 400;
  line-height: 27px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.intro-poem {
  margin-top: 34px;
}

.intro-body {
  margin-top: 26px;
  color: var(--muted);
}

.intro-sign {
  margin-top: 34px;
}

.intro-family {
  display: grid;
  width: min(100%, 290px);
  gap: 2px;
  margin: 34px auto 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 26px;
}

.intro-family p {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: inherit;
}

.intro-family span {
  color: inherit;
  text-align: right;
  white-space: nowrap;
}

.intro-family em {
  color: var(--faint);
  font-style: normal;
  white-space: nowrap;
}

.intro-family strong {
  color: var(--ink);
  font-weight: 400;
  white-space: nowrap;
}

/* 고인 표시 국화 */
.mum {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin: 0 5px 0 1px;
  overflow: visible;
  vertical-align: -3.5px;
  filter: drop-shadow(0 0.6px 0 rgba(142, 123, 98, 0.18));
}

.mum-stem {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 1.05;
}

.mum-petal {
  fill: #fffdf8;
  stroke: #d7c9b8;
  stroke-width: 0.82;
}

.mum-center {
  fill: #f5e7c7;
  stroke: #d8bf8d;
  stroke-width: 0.75;
}

.mum-dot {
  fill: #c9ad70;
  stroke: none;
}

.intro-contact {
  margin-top: 36px;
}

/* ---------- 예식일 (달력) ---------- */

.wedding-day {
  padding-right: 0;
  padding-left: 0;
  text-align: center;
}

.calendar-wrap {
  width: min(78cqw, 312px);
  margin: 0 auto;
}

.calendar-title {
  display: grid;
  place-items: center;
  align-content: center;
}

.date-ko {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

.date-en {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 26px;
}

.date-holiday {
  color: var(--accent);
}

.date-holiday + span::before {
  content: "·";
  margin: 0 9px;
  color: var(--faint);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 0;
  margin-top: 34px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--sub);
  font-size: 14.5px;
  line-height: 26px;
}

.calendar div {
  display: grid;
  place-items: center;
  min-height: 32px;
}

.calendar .weekday {
  color: var(--faint);
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.calendar .sunday,
.calendar .holiday {
  color: #b3766a;
}

.calendar .selected {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border-radius: 50%;
  background: #9d9488;
  color: #fffdf9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.calendar .selected::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(157, 148, 136, 0.3);
  border-radius: 50%;
}

@keyframes ringPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(165, 138, 104, 0.32);
  }

  100% {
    box-shadow: 0 0 0 16px rgba(165, 138, 104, 0);
  }
}

.calendar-wrap.in .selected {
  animation: ringPulse 1500ms ease-out 700ms 2;
}

.dday {
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

.dday strong {
  color: var(--accent);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- 갤러리 ---------- */

.gallery-section {
  padding-right: 0;
  padding-left: 0;
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: clamp(38px, 9.7cqw, 46px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  width: calc(100% - 28px);
  margin: 34px auto 0;
}

.gallery-thumb {
  position: relative;
  display: block;
  grid-column: span 3;
  grid-row: span 6;
  min-width: 0;
  min-height: 0;
  border: 0;
  background-color: var(--paper-deep);
  background-position: var(--focus-x, 50%) var(--focus-y, 34%);
  background-repeat: no-repeat;
  background-size: cover;
  cursor: default;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 640ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}

.gallery-thumb.in {
  opacity: 1;
  transform: none;
}

.gallery-thumb--feature {
  grid-column: span 4;
  grid-row: span 6;
  --focus-y: 38%;
}

.gallery-thumb--tall {
  grid-column: span 3;
  grid-row: span 7;
  --focus-y: 32%;
}

.gallery-thumb--narrow {
  grid-column: span 2;
  grid-row: span 6;
  --focus-y: 30%;
}

.gallery-thumb--square {
  grid-column: span 2;
  grid-row: span 3;
  --focus-y: 28%;
}

/* ---------- 버튼 ---------- */

.primary-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.primary-btn {
  width: min(100%, 190px);
  margin-top: 36px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--label);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.outline-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.outline-btn:hover,
.outline-btn:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- 오시는 길 ---------- */

.location {
  padding-right: 0;
  padding-left: 0;
  text-align: center;
}

.location-info {
  padding: 0 32px;
  margin-top: 32px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 26px;
}

.hall-name {
  margin: 0;
}

.address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 26px;
}

.copy-inline {
  min-height: 22px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--faint);
  background: transparent;
  color: var(--sub);
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.map-wrap {
  position: relative;
  display: block;
  margin: 30px 22px 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.05);
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
}

.map-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 22px;
  margin: 14px 0 34px;
}

.directions {
  width: calc(100% - 64px);
  margin: 0 auto;
  text-align: left;
}

.directions h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
}

.directions h3::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.directions p {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
  line-height: 26px;
}

/* ---------- 마음 전하실 곳 ---------- */

.gift-inline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  padding-right: 0;
  padding-left: 0;
  text-align: center;
}

.gift-top {
  display: flex;
  width: min(calc(100% - 104px), 297px);
  flex-direction: column;
  gap: 26px;
}

.gift-inline h2 {
  margin-top: 10px;
}

.gift-description {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 26px;
  word-break: keep-all;
}

.account-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.account-inner {
  display: flex;
  width: 100%;
  max-width: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.account-group {
  display: flex;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefd;
  transition: border-color 220ms ease;
}

.account-group.open {
  border-color: var(--faint);
}

.account-head {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 26px;
  cursor: pointer;
}

.account-arrow {
  position: absolute;
  top: 50%;
  right: 19px;
  width: 8px;
  height: 8px;
  transform: translateY(-65%) rotate(45deg);
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transition: transform 260ms ease;
}

.account-group.open .account-arrow {
  transform: translateY(-35%) rotate(-135deg);
}

.account-list {
  display: flex;
  max-height: 0;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  list-style: none;
  transition:
    max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms ease;
}

.account-list.on {
  max-height: 24rem;
  opacity: 1;
}

.account-item {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.account-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-family: "Inter", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 24px;
}

.account-holder,
.account-number {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  line-height: 24px;
  text-align: left;
}

.account-holder svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: var(--muted);
}

.account-number {
  flex-wrap: nowrap;
  color: var(--sub);
  white-space: nowrap;
}

.account-number .bank {
  color: var(--muted);
}

.gift-note {
  width: min(calc(100% - 72px), 320px);
  margin: -4px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 24px;
  word-break: keep-all;
}

/* ---------- 엔딩 ---------- */

.ending {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 96px;
  text-align: center;
}

.ending-photo {
  position: relative;
  width: 100%;
  height: 56svh;
  overflow: hidden;
}

.ending-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--paper) 0%, rgba(250, 248, 245, 0) 30%);
}

.ending-photo img {
  width: 100%;
  height: 116%;
  margin-top: -8%;
  object-fit: cover;
  will-change: transform;
}

.ending-message {
  width: min(100%, 280px);
  margin: 44px auto 0;
  color: var(--sub);
  font-size: 15px;
  line-height: 28px;
  word-break: keep-all;
}

.ending-names {
  margin: 22px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 28px;
}

.ending-names span {
  margin: 0 6px;
  color: var(--faint);
  font-family: var(--display);
  font-size: 15px;
}

/* ---------- 배경음악 플레이어 ---------- */

.music-player {
  position: fixed;
  bottom: 14px;
  left: max(14px, calc((100vw - min(100vw, 430px)) / 2 + 14px));
  z-index: 30;
  display: grid;
  grid-template-columns: 26px auto 22px;
  align-items: center;
  width: auto;
  min-height: 32px;
  column-gap: 0;
  padding: 3px 7px 3px 3px;
  border: 1px solid rgba(35, 35, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    column-gap 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.music-player.title-open {
  column-gap: 6px;
  border-color: rgba(35, 35, 35, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
}

.music-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(35, 35, 35, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  cursor: pointer;
}

.music-icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.music-icon-pause,
.music-player.playing .music-icon-play {
  display: none;
}

.music-player.playing .music-icon-pause {
  display: block;
}

.music-copy {
  width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-8px);
  white-space: nowrap;
  transition:
    width 300ms ease,
    max-width 300ms ease,
    opacity 220ms ease,
    transform 300ms ease;
}

.music-player.title-open .music-copy {
  width: 104px;
  max-width: 104px;
  opacity: 1;
  transform: translateX(0);
}

.music-copy span {
  display: block;
  color: var(--faint);
  font-family: var(--ios);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
}

.music-copy strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 2px;
  height: 16px;
}

.music-wave i {
  display: block;
  width: 1.5px;
  height: 5px;
  border-radius: 2px;
  background: rgba(35, 35, 35, 0.3);
  transform-origin: 50% 50%;
}

.music-player.playing .music-wave i {
  animation: musicBar 920ms ease-in-out infinite;
}

.music-player.playing .music-wave i:nth-child(2) {
  animation-delay: 140ms;
}

.music-player.playing .music-wave i:nth-child(3) {
  animation-delay: 280ms;
}

.music-player.playing .music-wave i:nth-child(4) {
  animation-delay: 420ms;
}

.music-player.muted {
  color: var(--muted);
}

.music-player.muted .music-wave i {
  height: 3px;
  background: rgba(35, 35, 35, 0.18);
}

@keyframes musicBar {
  0%,
  100% {
    transform: scaleY(0.65);
  }

  50% {
    transform: scaleY(2.35);
  }
}

/* ---------- 모달 · 토스트 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(33, 30, 26, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(100%, 340px);
  padding: 32px 24px 24px;
  border-radius: 20px;
  background: var(--paper);
}

.modal-card h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 400;
  text-align: center;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-copy {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--sub);
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    color 220ms ease;
}

.contact-copy:hover,
.contact-copy:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.contact-copy span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.contact-copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "Inter", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 64px;
  z-index: 50;
  min-width: 160px;
  max-width: calc(100% - 48px);
  padding: 10px 18px;
  transform: translate(-50%, 18px);
  border-radius: 999px;
  background: rgba(33, 30, 26, 0.92);
  color: var(--paper);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------- 반응형 ---------- */

@media (max-width: 360px) {
  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .wedding-day,
  .gallery-section,
  .location,
  .gift-inline,
  .ending {
    padding-right: 0;
    padding-left: 0;
  }

  .lock-clock {
    font-size: 76px;
  }

  .intro-family p {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }

  .intro-family span {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }
}
