@charset "utf-8";

/* ============================================================
   1. 디자인 토큰
   ============================================================ */
:root {
  /* 맑은 화이트 톤 — 크림/테라코타 대신 은빛 포인트 */
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #eef0f3;

  --ink: #1f2329;
  --ink-soft: #4a5160;
  --muted: #8b92a0;
  --line: #e4e7ec;
  --line-soft: #eef1f5;

  --gold-deep: #6e7585;
  --gold: #9aa3b2;
  --gold-light: #d5dae3;
  --gold-glow: rgba(154, 163, 178, 0.35);

  --blush: #c9a8a8;

  --font-kr: 'Gowun Batang', 'Nanum Myeongjo', 'Apple SD Gothic Neo', serif;
  --font-en: 'Cormorant Garamond', 'Gowun Batang', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard',
    'Malgun Gothic', sans-serif;

  --shell: 480px;
  --pad: 30px;
  --radius: 3px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 10px 30px -18px rgba(40, 48, 70, 0.22);
  --shadow-card: 0 1px 2px rgba(40, 48, 70, 0.04), 0 12px 28px -22px rgba(40, 48, 70, 0.22);
}

/* ============================================================
   2. 리셋
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

/* display 를 지정한 요소에서도 hidden 속성이 항상 동작하도록 */
[hidden] {
  display: none !important;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
fieldset,
legend {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-size: inherit;
}

canvas {
  display: block;
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

/* ============================================================
   3. 페이지 셸 (모바일 폭 고정 + 종이 질감)
   ============================================================ */
.page {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 60px -20px rgba(40, 48, 70, 0.14);
  overflow: hidden;
}

/* 아주 옅은 종이 결 */
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

.section {
  position: relative;
  padding: 82px var(--pad) 0;
  text-align: center;
}

.section--tight {
  padding-inline: 18px;
}

.section:last-of-type {
  padding-bottom: 20px;
}

/* ── 1순위: Since · 함께한 날 ── */
.cover__since {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}

.countdown__together {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.countdown__together strong {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 500;
}

/* ── 3순위: 잡지형 챕터 ── */
.chapter {
  position: relative;
}

.chapter__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.chapter__no {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--line);
}

.chapter__label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.42em;
}

.cover.chapter .chapter__head {
  margin-bottom: 18px;
}

.editorial-rail {
  position: fixed;
  right: max(8px, calc(50% - var(--shell) / 2 - 42px));
  top: 50%;
  z-index: 55;
  transform: translateY(-50%);
  pointer-events: auto;
}

.editorial-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editorial-rail__item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  cursor: pointer;
  opacity: 0.28;
  transition: opacity 0.25s var(--ease);
}

.editorial-rail__item.is-active {
  opacity: 1;
}

.editorial-rail__no {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.editorial-rail__label {
  font-family: var(--font-en);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 72px;
  text-align: right;
  line-height: 1.3;
}

/* ── 2순위: 숲길 안내 ── */
.forest-trail {
  margin: 8px 0 28px;
  padding: 24px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--paper-2));
  text-align: left;
}

.forest-trail__head {
  margin-bottom: 18px;
  text-align: center;
}

.forest-trail__title {
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.forest-trail__sub {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.forest-trail__path {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.forest-trail__path::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

.forest-trail__step {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  padding: 0 0 18px;
}

.forest-trail__step:last-child {
  padding-bottom: 0;
}

.forest-trail__dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.forest-trail__label {
  font-size: 0.88rem;
  color: var(--ink);
}

.forest-trail__detail {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.forest-trail__leaf {
  display: none;
}

/* ── 탑승권 ───────────────────────────────────────────────
   가로형 실물 ATB를 항상 90° 세워 세로로 긴 띠로만 표시.
   (가로/세로 화면 전환과 무관하게 고정 · 화면 밖으로 넘치지 않음)
   ──────────────────────────────────────────────────────── */
.boarding-pass {
  /* strip = 화면에 보이는 띠의 가로폭 = 티켓 짧은 변 */
  --bp-strip: min(70vw, 240px);
  --bp-ratio: 2.35; /* 긴변 / 짧은변 ≈ 실물 탑승권 */
  --bp-navy: #00205b;
  --bp-blue: #0066b3;
  --bp-sky: #e8f2fb;
  --bp-line: #9bb4cc;
  --bp-ink: #0a1f33;
  --bp-muted: #5a6f84;
  --bp-accent: #c8102e;
  margin: 20px auto 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  animation: ticket-in 0.75s var(--ease) both;
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.boarding-pass__hint {
  margin: 0 0 14px;
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.boarding-pass__stage {
  position: relative;
  width: var(--bp-strip);
  height: calc(var(--bp-strip) * var(--bp-ratio));
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  filter: drop-shadow(0 14px 26px rgba(0, 32, 91, 0.2));
}

.boarding-pass__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--bp-strip) * var(--bp-ratio));
  height: var(--bp-strip);
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

.bp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px 78px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 2px;
  overflow: hidden;
  text-align: left;
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, 'Apple SD Gothic Neo', sans-serif;
  color: var(--bp-ink);
}

.bp__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: #fff;
}

.bp__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: linear-gradient(90deg, var(--bp-navy) 0%, #003a7a 55%, var(--bp-blue));
  color: #fff;
  border-bottom: 2px solid var(--bp-accent);
  flex: 0 0 auto;
}

.bp__brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bp__airline {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  white-space: nowrap;
}

.bp__airline-ko {
  font-size: 0.3rem;
  letter-spacing: 0.16em;
  opacity: 0.9;
  line-height: 1.1;
}

.bp__head-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bp__doc {
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.05;
}

.bp__doc-ko {
  font-size: 0.28rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
}

.bp__head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.bp__alliance {
  font-size: 0.28rem;
  letter-spacing: 0.16em;
  opacity: 0.85;
}

.bp__class-tag {
  font-size: 0.32rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bp__passenger {
  padding: 3px 8px 2px;
  border-bottom: 1px solid #d5e4f2;
  flex: 0 0 auto;
}

.bp__passenger-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--bp-ink);
}

.bp__passenger-meta {
  display: block;
  font-size: 0.32rem;
  color: var(--bp-muted);
  line-height: 1.2;
}

.bp__route {
  display: grid;
  grid-template-columns: 1fr auto 1fr 64px;
  gap: 4px;
  align-items: center;
  padding: 3px 8px;
  flex: 0 0 auto;
  border-bottom: 1px solid #d5e4f2;
}

.bp__airport--to {
  text-align: right;
}

.bp__code {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--bp-blue);
}

.bp__city {
  display: block;
  font-size: 0.32rem;
  color: var(--bp-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp__flight-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 0 6px;
}

.bp__flight-mid::before,
.bp__flight-mid::after {
  content: '';
  position: absolute;
  top: 55%;
  width: 16px;
  border-top: 1px dashed var(--bp-line);
}

.bp__flight-mid::before {
  right: calc(100% - 2px);
}

.bp__flight-mid::after {
  left: calc(100% - 2px);
}

.bp__plane {
  font-size: 0.55rem;
  line-height: 1;
  color: var(--bp-navy);
}

.bp__flight-no {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--bp-ink);
}

.bp__operated {
  font-size: 0.22rem;
  letter-spacing: 0.04em;
  color: var(--bp-muted);
  white-space: nowrap;
}

.bp__flight-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 4px;
  background: var(--bp-sky);
  border: 1px solid #c5daf0;
}

.bp__details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  flex: 0 0 auto;
  border-bottom: 1px solid #d5e4f2;
  background: linear-gradient(180deg, #f3f8fd, #fff);
}

.bp__details .bp__field {
  padding: 3px 6px;
  border-right: 1px solid #d5e4f2;
  border-bottom: 1px solid #d5e4f2;
}

.bp__details .bp__field:nth-child(4n) {
  border-right: 0;
}

.bp__field {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.bp__label {
  font-size: 0.24rem;
  letter-spacing: 0.08em;
  color: var(--bp-muted);
  white-space: nowrap;
  line-height: 1.1;
}

.bp__value {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--bp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.bp__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 6px;
  align-items: end;
  padding: 4px 8px 2px;
  margin-top: auto;
  flex: 0 0 auto;
}

.bp__scan {
  min-width: 0;
}

.bp__barcode {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.5px;
  height: 22px;
  background: #fff;
}

.bp__barcode span {
  display: block;
  flex: 0 0 auto;
  width: 1.3px;
  background: var(--bp-ink);
}

.bp__barcode span.is-wide {
  width: 2.6px;
}

.bp__barcode span.is-thin {
  width: 1.2px;
}

.bp__barcode span.is-gap {
  width: 1.6px;
  background: transparent;
}

.bp__eticket {
  margin: 2px 0 0;
  font-size: 0.26rem;
  letter-spacing: 0.04em;
  color: var(--bp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp__qr {
  width: 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  padding: 1px;
  box-sizing: border-box;
  border: 1px solid var(--bp-ink);
  background: #fff;
}

.bp__qr i {
  display: block;
  background: transparent;
}

.bp__qr i.is-on {
  background: var(--bp-ink);
}

.bp__notice {
  margin: 0;
  padding: 2px 8px;
  font-size: 0.22rem;
  letter-spacing: 0.04em;
  color: var(--bp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #eef4fa;
  border-top: 1px solid #d5e4f2;
  flex: 0 0 auto;
}

.bp__perforation {
  position: relative;
  background:
    radial-gradient(circle at center, var(--paper-3, #f0f2f5) 1.9px, transparent 2.1px) center / 100% 7px,
    repeating-linear-gradient(180deg, #8fa8c2 0 1px, transparent 1px 4px);
  background-color: #c5d6e8;
  border-left: 1px dashed #8fa8c2;
  border-right: 1px dashed #8fa8c2;
}

.bp__perforation::before,
.bp__perforation::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper-3, #eef0f3);
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px #b0c4d8;
}

.bp__perforation::before {
  top: -5px;
}

.bp__perforation::after {
  bottom: -5px;
}

.bp__stub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0 4px 3px;
  background: linear-gradient(180deg, var(--bp-sky) 0 16px, #fff 16px);
  border-left: 0;
}

.bp__mag {
  height: 6px;
  margin: 0 -4px 2px;
  background: repeating-linear-gradient(
    90deg,
    #111 0 2px,
    #333 2px 3px,
    #1a1a1a 3px 5px,
    #444 5px 6px
  );
  flex: 0 0 auto;
}

.bp__stub-head {
  flex: 0 0 auto;
  margin-bottom: 1px;
}

.bp__stub-airline {
  margin: 0;
  font-size: 0.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--bp-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp__stub-title {
  margin: 0;
  font-size: 0.24rem;
  letter-spacing: 0.1em;
  color: var(--bp-muted);
}

.bp__stub .bp__field {
  padding-bottom: 1px;
  border-bottom: 1px dotted #c5d5e6;
  flex: 0 0 auto;
}

.bp__stub .bp__label {
  font-size: 0.22rem;
}

.bp__stub .bp__value {
  font-size: 0.36rem;
}

.bp__stub-scan {
  margin-top: auto;
  padding-top: 2px;
  flex: 0 0 auto;
}

.bp__stub .bp__barcode {
  height: 14px;
}

.form-done--ticket {
  margin-top: 16px;
  padding-top: 0;
  border: 0;
  background: transparent;
}

.form-done--ticket .form-done__text {
  text-align: center;
}

.envelope__seal-initials--since {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

@media (max-width: 400px) {
  .editorial-rail {
    display: none;
  }
}

/* ============================================================
   4. 공통 요소
   ============================================================ */
.section__eyebrow,
.cover__eyebrow,
.outro__eyebrow {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 22px;
  padding-left: 0.42em;
}

.section__title {
  font-size: 1.32rem;
  line-height: 1.85;
  color: var(--ink);
  white-space: pre-line;
}

/* 은빛 크리스탈 셔머 텍스트 */
.shimmer {
  background: linear-gradient(
    100deg,
    var(--gold-deep) 0%,
    var(--gold) 22%,
    #ffffff 42%,
    var(--gold) 60%,
    var(--gold-deep) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -240% 0;
  }
}

/* 다이아몬드가 박힌 금색 구분선 */
.hairline {
  display: block;
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 1px;
  margin: 30px auto;
  background: linear-gradient(90deg, transparent, var(--line), var(--gold-light), var(--line), transparent);
}

.hairline--short {
  max-width: 40px;
  margin: 14px auto;
}

.hairline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 8px var(--gold-glow);
}

.hairline--short::after {
  width: 3px;
  height: 3px;
}

.prose {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 2.15;
  white-space: pre-line;
}

.prose--sm {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--muted);
}

/* 스크롤 등장 애니메이션 */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(5px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  transition: transform 0.18s var(--ease), border-color 0.25s, background 0.25s, color 0.25s;
}

.btn:active {
  transform: scale(0.975);
  border-color: var(--gold-light);
}

.btn--solid {
  background: linear-gradient(135deg, #2a2f3a, #3d4554);
  border-color: transparent;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-style: dashed;
}

.btn--block {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

.btn--kakao {
  background: #fee500;
  border-color: transparent;
  color: #3c1e1e;
}

.btn-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.btn-row--share {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 300px;
  margin-inline: auto;
}

.btn-row--share .btn {
  min-width: 140px;
}

/* 상단 스크롤 진행 바 */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-deep));
  transition: width 0.12s linear;
}

/* ============================================================
   5. 봉투 열기 인트로
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
  overflow: hidden;
}

.intro.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.intro__glow {
  display: none;
}

.intro__stage {
  position: relative;
  text-align: center;
  transition: opacity 0.7s ease, transform 0.9s var(--ease);
}

.intro.is-opening .intro__stage {
  opacity: 0;
  transform: scale(1.04);
  transition-delay: 1.12s;
}

.intro__eyebrow {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  padding-left: 0.38em;
}

.intro__hint {
  margin-top: 42px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.envelope {
  perspective: 820px;
  display: block;
  margin: 0 auto;
  border: 0;
  padding: 0;
  background: none;
}

.envelope:active .envelope__kit {
  transform: scale(0.992);
  transition: transform 0.22s var(--ease);
}

/* ── MrBlank CodePen envelope (https://codepen.io/MrBlank/pen/JjXxovL) ── */
.envelope__kit {
  --env-width: 280px;
  --env-height: 180px;
  --env-radius: 6px;
  --env-body: #eef1f5;
  --env-body-dark: #e4e8ee;
  --env-flap: #d8dde6;

  position: relative;
  display: block;
  width: var(--env-width);
  height: var(--env-height);
  margin-inline: auto;
  border-bottom-left-radius: var(--env-radius);
  border-bottom-right-radius: var(--env-radius);
  background-color: var(--env-flap);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: transform 0.22s var(--ease);
}

.envelope__front {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 3;
}

.envelope__flap {
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-bottom: 82px solid transparent;
  border-top: 98px solid var(--env-flap);
  transform-origin: top;
  pointer-events: none;
}

.envelope__pocket {
  border-left: 140px solid var(--env-body);
  border-right: 140px solid var(--env-body);
  border-bottom: 90px solid var(--env-body-dark);
  border-top: 90px solid transparent;
  border-bottom-left-radius: var(--env-radius);
  border-bottom-right-radius: var(--env-radius);
}

.envelope__letter {
  position: absolute;
  z-index: 1;
  left: 5%;
  width: 90%;
  height: 90%;
  top: 5%;
  background: var(--paper);
  border-radius: var(--env-radius);
  box-shadow: 0 2px 18px rgba(40, 48, 70, 0.08);
}

.envelope__letter::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 25%,
    rgba(238, 241, 245, 0.65) 55%,
    rgba(238, 241, 245, 1) 100%
  );
  pointer-events: none;
}

.envelope__word {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 14%;
  border-radius: 1px;
  background: var(--line-soft);
}

.envelope__word--1 {
  top: 15%;
  width: 20%;
  height: 7%;
}

.envelope__word--2 {
  top: 30%;
}

.envelope__word--3 {
  top: 50%;
}

.envelope__word--4 {
  top: 70%;
}

.envelope__seal {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 58%;
  width: auto;
  min-width: 132px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: 0 1px 3px rgba(40, 48, 70, 0.05);
  transition:
    transform 0.35s var(--ease),
    opacity 0.35s ease,
    border-color 0.2s var(--ease);
  pointer-events: none;
}

.envelope__seal-initials {
  font-family: var(--font-kr);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
}

/* 닫힘 — CodePen .close */
.envelope__kit.close .envelope__flap {
  transform: rotateX(0deg);
  transition: transform 0.4s 0.6s ease, z-index 1s;
  z-index: 5;
}

.envelope__kit.close .envelope__letter {
  transform: translateY(0);
  transition: transform 0.4s ease, z-index 1s;
  z-index: 1;
}

/* 열림 — CodePen .open (+ intro.is-opening 봉인 페이드) */
.intro.is-opening .envelope__seal {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 0;
}

.envelope__kit.open .envelope__flap {
  transform: rotateX(180deg);
  transition: transform 0.4s ease, z-index 0.6s;
  z-index: 1;
}

.envelope__kit.open .envelope__letter {
  transform: translateY(-60px);
  transition: transform 0.4s 0.6s ease, z-index 0.6s;
  z-index: 2;
}

/* ============================================================
   6. 커버
   ============================================================ */
.cover {
  position: relative;
  min-height: 100svh;
  padding: 68px var(--pad) 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(120% 80% at 50% 0%, #ffffff, var(--paper) 62%);
}

.cover__sparkle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.cover__eyebrow {
  margin-bottom: 26px;
}

.cover__names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.cover__name {
  font-family: var(--font-kr);
  font-size: 1.42rem;
  letter-spacing: 0.06em;
}

.cover__amp {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
}

.cover__frame {
  position: relative;
  width: 100%;
  margin: 34px 0 0;
  padding: 9px;
  overflow: hidden;
}

/* 사진을 감싸는 얇은 금색 액자선 */
.cover__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-light);
  pointer-events: none;
}

.cover__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* config.cover.focus 로 덮어쓸 수 있습니다 */
  object-position: 50% 30%;
  background: var(--paper-2);
}

/* 사진 위를 천천히 지나가는 빛 */
.cover__glare {
  position: absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: rotate(18deg);
  animation: glare 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glare {
  0%,
  62% {
    left: -80%;
  }
  100% {
    left: 150%;
  }
}

.cover__meta {
  margin-top: 30px;
}

.cover__date {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}

.cover__place {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cover__place-hall {
  font-size: 0.78rem;
  color: #b3aca2;
}

.cover__caption {
  margin-top: auto;
  padding-top: 30px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.scroll-cue {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  margin-top: 22px;
  background: var(--line);
  overflow: hidden;
}

.scroll-cue i {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 18px;
  background: var(--gold);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(46px);
    opacity: 0;
  }
}

/* ============================================================
   7. 받는 분 이름 (?to=) + 혼주 정보
   ============================================================ */
.guest-hail {
  font-family: var(--font-kr);
  font-size: 1.02rem;
  color: var(--gold-deep);
  margin-bottom: 26px;
  letter-spacing: 0.04em;
}

.guest-hail__suffix {
  color: var(--muted);
  font-size: 0.88rem;
  margin-left: 2px;
}

.family {
  margin-top: 40px;
  padding: 26px 20px 22px;
  background: linear-gradient(180deg, #fff, var(--paper-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.family__row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 7px 0;
}

.family__row--couple {
  gap: 8px;
}

.family__row--couple .family__order {
  font-size: 0.85rem;
}

.family__row--couple .family__child {
  font-size: 1.05rem;
  color: var(--ink);
}

.family__parents {
  color: var(--ink-soft);
}

.family__order {
  font-size: 0.8rem;
  color: var(--muted);
}

.family__child {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.family__contact {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ink-soft);
  transition: transform 0.18s var(--ease), border-color 0.25s;
}

.contact-chip:active {
  transform: scale(0.96);
  border-color: var(--gold-light);
}

.contact-chip__icon {
  color: var(--gold-deep);
  font-size: 0.72rem;
}

/* 연락처 시트 */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 22, 0.42);
  animation: fade-in 0.3s ease;
}

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-radius: 16px 16px 0 0;
  animation: slide-up 0.36s var(--ease);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
  }
}

.sheet__title {
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 18px;
  color: var(--ink);
}

.sheet__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.sheet__who {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.sheet__who em {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--muted);
}

.sheet__actions {
  display: flex;
  gap: 6px;
}

.sheet__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 0.9rem;
  color: var(--gold-deep);
}

.sheet__btn:active {
  transform: scale(0.94);
}

/* ============================================================
   8. 캘린더 · 카운트다운
   ============================================================ */
.calendar {
  padding: 26px 18px 22px;
  background: linear-gradient(180deg, #fff, var(--paper-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.calendar__head {
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
  padding-left: 0.28em;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}

.calendar__dow {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}

.calendar__dow--sun {
  color: #c98f8f;
}

.calendar__cell {
  position: relative;
  display: grid;
  place-items: center;
  height: 38px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.calendar__cell--muted {
  color: #c5cad3;
}

.calendar__cell--sun {
  color: #c9a8a8;
}

.calendar__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 600;
  background: radial-gradient(circle at 34% 28%, #c8ced8, var(--gold) 50%, var(--gold-deep));
  animation: target-pulse 2.6s ease-in-out infinite;
}

@keyframes target-pulse {
  0%,
  100% {
    box-shadow: 0 3px 10px -3px rgba(60, 70, 95, 0.4), 0 0 0 0 var(--gold-glow);
  }
  60% {
    box-shadow: 0 3px 10px -3px rgba(60, 70, 95, 0.4), 0 0 0 10px rgba(154, 163, 178, 0);
  }
}

.calendar__mark::after {
  content: '♥';
  position: absolute;
  top: -8px;
  right: -3px;
  font-size: 0.55rem;
  color: var(--blush);
}

.countdown {
  margin-top: 26px;
}

.countdown__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.countdown__list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.countdown__list li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  height: 56%;
  border-left: 1px solid var(--line);
}

.countdown__list strong {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.countdown__list span {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.countdown__text {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.countdown__text b {
  font-weight: 400;
  color: var(--gold-deep);
}

/* ============================================================
   9. 갤러리 · 라이트박스
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  transition: transform 0.3s var(--ease);
}

.gallery__item:active {
  transform: scale(0.97);
}

/* 세로 사진의 얼굴이 잘리지 않도록 3:4 타일 + 위쪽으로 치우친 기준점 */
.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
}

.gallery__hint {
  margin-top: 16px;
  font-size: 0.76rem;
  color: #b8b1a7;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(24, 21, 18, 0.97);
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  animation: fade-in 0.25s ease;
}

.lightbox__track {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  height: 100%;
  align-items: center;
  transition: transform 0.35s var(--ease);
  touch-action: pan-y;
}

.lightbox__track img {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  padding: 0 14px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__close,
.lightbox__nav {
  position: relative;
  grid-row: 1;
  z-index: 2;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-ui);
}

.lightbox__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.lightbox__nav {
  width: 54px;
  height: 74px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav--prev {
  grid-column: 1;
  justify-self: start;
}

.lightbox__nav--next {
  grid-column: 3;
  justify-self: end;
}

.lightbox__counter {
  position: absolute;
  bottom: calc(26px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   10. 오시는 길
   ============================================================ */
.venue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.venue__hall {
  color: var(--gold-deep);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.venue__address {
  color: var(--ink-soft);
}

.venue__tel {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.map {
  display: block;
  position: relative;
  margin-top: 24px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  background: var(--paper-2);
}

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

.transport {
  margin-top: 34px;
  text-align: left;
  border-top: 1px solid var(--line-soft);
}

.transport li {
  display: flex;
  gap: 14px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.transport__icon {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  font-size: 0.9rem;
  color: var(--gold-deep);
}

.transport__title {
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.transport__lines {
  font-family: var(--font-ui);
  font-size: 0.79rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ============================================================
   11. 연락 · 마음 전하실 곳
   ============================================================ */
.accounts {
  margin-top: 26px;
  text-align: left;
}

.account-group {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 8px;
  overflow: hidden;
}

.account-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 18px;
  font-size: 0.92rem;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--paper-2));
}

.account-group__summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}

.account-group.is-open .account-group__summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.account-group__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}

.account-group.is-open .account-group__body {
  grid-template-rows: 1fr;
}

.account-group__inner {
  overflow: hidden;
}

.account {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
}

.account__info {
  min-width: 0;
}

.account__who {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.account__number {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  word-break: break-all;
}

.account__number--muted {
  color: var(--muted);
  font-size: 0.82rem;
}

.account__phone {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.account__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account__action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.account__action--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.account__action:active {
  transform: scale(0.95);
}

/* 구버전 클래스 호환 */
.account__copy {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* ============================================================
   12. 폼 (RSVP · 방명록)
   ============================================================ */
.form {
  margin-top: 28px;
  text-align: left;
}

.form__row {
  display: flex;
  gap: 12px;
}

.form__row .form__field {
  flex: 1;
}

.form__field {
  display: block;
  margin-bottom: 20px;
}

.form__row .form__field--narrow {
  flex: 0 0 76px;
}

.form__label,
.form__field legend {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.form__label em,
.form__field legend em {
  font-style: normal;
  color: #c0b9af;
}

.form input[type='text'],
.form input[type='password'],
.form input[type='number'],
.form textarea {
  width: 100%;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  resize: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #cbc4ba;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 0.79rem;
  color: var(--muted);
  transition: all 0.22s var(--ease);
}

.chip input:checked + span {
  border-color: var(--gold);
  background: linear-gradient(180deg, #ffffff, var(--paper-2));
  color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(154, 163, 178, 0.12);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form__status {
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-align: center;
  color: var(--gold-deep);
  min-height: 1.2em;
}

.form__status[data-error] {
  color: #c0736c;
}

.form-done {
  margin-top: 28px;
  padding: 30px 22px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, var(--paper-2));
}

.form-done__mark {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.form-done__text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.form-done__reset {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   13. 방명록 목록
   ============================================================ */
.messages {
  margin-top: 34px;
  text-align: left;
}

.messages__empty {
  padding: 30px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #bdb6ac;
}

.message {
  position: relative;
  padding: 18px 2px;
  border-top: 1px solid var(--line-soft);
  animation: msg-in 0.5s var(--ease) both;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.message__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
}

.message__name {
  font-size: 0.88rem;
  color: var(--ink);
}

.message__date {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: #c0b9af;
}

.message__delete {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: #c8c1b7;
  padding: 2px 4px;
}

.message__body {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-soft);
  white-space: pre-line;
  word-break: break-word;
}

/* ============================================================
   14. 마무리 · 축하 버튼
   ============================================================ */
.outro {
  position: relative;
  margin-top: 90px;
  padding: 76px var(--pad) calc(56px + env(safe-area-inset-bottom));
  text-align: center;
  background: radial-gradient(120% 90% at 50% 100%, #f7f8fa, var(--paper) 60%);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.outro__petals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.outro__eyebrow {
  margin-bottom: 24px;
}

.outro__text {
  position: relative;
  font-size: 0.92rem;
  line-height: 2.1;
  color: var(--ink-soft);
}

.outro__names {
  position: relative;
  margin-top: 26px;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.outro__heart {
  color: var(--blush);
  margin: 0 6px;
  font-size: 0.85rem;
}

.cheers {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  padding: 11px 20px;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--gold-deep);
  box-shadow: 0 6px 18px -12px rgba(60, 70, 95, 0.4);
  transition: transform 0.2s var(--ease);
}

.cheers:active {
  transform: scale(0.95);
}

.cheers__heart {
  color: var(--blush);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease);
}

.cheers.is-pop .cheers__heart {
  animation: heart-pop 0.6s var(--ease);
}

@keyframes heart-pop {
  35% {
    transform: scale(1.7);
  }
  70% {
    transform: scale(0.9);
  }
}

.cheers__count {
  font-variant-numeric: tabular-nums;
  padding-left: 9px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
}

.outro__credit {
  position: relative;
  margin-top: 46px;
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c5bfb5;
}

/* ============================================================
   15. 플로팅 버튼 · 토스트
   ============================================================ */
.floating {
  position: fixed;
  right: max(16px, calc(50% - var(--shell) / 2 + 16px));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.floating__btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-card);
  color: var(--gold-deep);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  transition: opacity 0.3s ease, transform 0.25s var(--ease);
}

.floating__btn:active {
  transform: scale(0.92);
}

.floating__btn.is-playing .floating__note {
  animation: note-spin 3.4s linear infinite;
}

@keyframes note-spin {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(9deg);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 110;
  transform: translate(-50%, 12px);
  max-width: calc(100% - 48px);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(38, 33, 28, 0.92);
  color: #fdfcfa;
  font-family: var(--font-ui);
  font-size: 0.79rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

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

/* ============================================================
   16. 접근성 · 모션 최소화
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* 아주 작은 화면 */
@media (max-width: 360px) {
  :root {
    --pad: 22px;
  }

  .cover__names {
    font-size: 1.65rem;
  }

  .cover__name {
    font-size: 1.26rem;
  }
}
