/* ===== 색상 · 글꼴 토큰 ===== */
:root {
  --ivory: #fbf7f0;
  --paper: #fffdf8;
  --beige-100: #f4ece1;
  --beige-300: #e6d8c6;
  --beige-500: #b9a48c;
  --pink-100: #f9eae7;
  --pink-200: #f3d6d3;
  --pink-400: #e3aeb0;
  --rose-700: #94505a; /* 강조 글자 · 버튼 (아이보리 위 대비 6:1 이상) */
  --rose-800: #7c3f48;
  --ink: #3b312a;      /* 본문 */
  --ink-soft: #5f5248; /* 보조 글자 (대비 7:1 이상) */
  --wash: #fffdf8;     /* 카드 위쪽에 은은하게 깔리는 계절색 */
  --decor-top: none;   /* 카드 모서리 장식 (테마별) */
  --decor-bottom: none;

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --font-display: 'Jua', 'Gowun Dodum', 'Malgun Gothic', sans-serif; /* 제목·날짜: 둥근 글꼴 */
  --font-round: 'Gowun Dodum', 'Pretendard Variable', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; /* 초대 문구 */
  --font-latin: 'Quicksand', 'Pretendard Variable', sans-serif;

  --radius: 18px;
  color-scheme: light;
}

/* ===== 기본 ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }

img { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.no-js .js-only { display: none !important; }

:focus-visible {
  outline: 3px solid var(--rose-700);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== 카드 레이아웃 (모바일 우선) ===== */
.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: max(56px, env(safe-area-inset-top)) 24px max(48px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--wash) 0, var(--paper) 420px);
}

/* 계절 장식: 카드 오른쪽 위 · 왼쪽 아래 모서리에 작게 */
.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 84px;
  height: 48px;
  background: no-repeat center / contain;
  pointer-events: none;
}
.card::before { top: 6px; right: 8px; background-image: var(--decor-top); }
.card::after { bottom: 6px; left: 8px; background-image: var(--decor-bottom); }

/* ===== 첫 화면 ===== */
.hero { text-align: center; }

.eyebrow {
  font-family: var(--font-latin);
  font-style: normal;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--rose-700);
}

.hero-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-name {
  margin-top: 8px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-photo { margin: 32px auto 0; max-width: 380px; }

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 190px 190px var(--radius) var(--radius); /* 위쪽이 둥근 아치형 */
  background: var(--beige-100);
}

/* 원래 비율 그대로: 잘림 없이 표시 */
.photo-frame--original img { width: 100%; height: auto; }

/* 비율 틀 + 기준점(focus) 맞춤 */
.photo-frame--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 슬라이드: 사진을 겹쳐 두고 부드럽게 교차 전환 */
.slides { touch-action: pan-y; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.is-active { opacity: 1; }
.no-js .slide:not(:first-child) { display: none; }

.slide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--beige-300);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.slide-btn:hover { background: var(--beige-100); }
.slide-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slide-toggle { margin-right: 6px; }
.slide-toggle .icon-play { display: none; fill: currentColor; stroke-width: 1.5; }
.slide-toggle.is-paused .icon-play { display: block; }
.slide-toggle.is-paused .icon-pause { display: none; }

.slide-dots { display: flex; gap: 7px; padding: 0 6px; }
.slide-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--beige-300);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.slide-dots span.is-active { width: 20px; background: var(--rose-700); }

/* 사진이 없을 때 임시 영역 */
.photo-placeholder {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85), transparent 45%),
    radial-gradient(circle at 75% 80%, var(--pink-200), transparent 55%),
    linear-gradient(160deg, var(--beige-100) 0%, var(--pink-100) 100%);
}

.ph-heart { position: absolute; fill: var(--pink-400); }
.ph-heart--main { width: 22%; left: 39%; top: 41%; opacity: 0.75; }
.ph-heart--a { width: 7%; left: 22%; top: 30%; opacity: 0.45; transform: rotate(-14deg); }
.ph-heart--b { width: 5%; right: 22%; top: 36%; opacity: 0.4; transform: rotate(12deg); }
.ph-heart--c { width: 6%; right: 30%; bottom: 24%; opacity: 0.35; transform: rotate(-6deg); }

.hero-date { margin-top: 28px; }
.hero-date time { display: flex; flex-direction: column; gap: 2px; }
.hero-date-day {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}
.hero-date-time { font-size: 1.0625rem; color: var(--ink-soft); }

/* ===== 구분선 ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 52px auto;
  max-width: 200px;
}
.divider span { flex: 1; height: 1px; background: var(--beige-300); }
.divider-heart { width: 14px; height: 14px; fill: var(--pink-400); flex: none; }

/* ===== 섹션 공통 ===== */
.section { text-align: center; }

.section-label {
  font-family: var(--font-latin);
  font-style: normal;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--rose-700);
}

.section-title {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
}

/* ===== 초대의 글 ===== */
.message {
  margin-top: 28px;
  font-family: var(--font-round);
  font-size: 1.125rem;
  line-height: 2;
}
.message p + p { margin-top: 1.5em; }

/* ===== 행사 안내 ===== */
.info-list {
  margin-top: 28px;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--ivory);
  border: 1px solid var(--beige-300);
  text-align: left;
}
.info-row {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
}
.info-row + .info-row { border-top: 1px solid var(--beige-300); }
.info-row dt { font-weight: 600; color: var(--rose-700); }
.info-row dd { min-width: 0; }

/* ===== 오시는 길 ===== */
.location { margin-top: 28px; }
.venue { font-weight: 600; font-size: 1.125rem; }
.address {
  margin-top: 4px;
  color: var(--ink-soft);
  -webkit-user-select: text;
  user-select: text;
}
.address.is-selected { background: var(--pink-100); border-radius: 6px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--rose-700); color: #fff; border: 1px solid var(--rose-700); }
.btn-primary:hover { background: var(--rose-800); border-color: var(--rose-800); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--beige-500); }
.btn-secondary:hover { background: var(--beige-100); }

.copy-status {
  min-height: 1.7em;
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.copy-status.is-error { color: var(--rose-800); }

.parking {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--ivory);
  border: 1px solid var(--beige-300);
  text-align: left;
}
.parking-title { font-size: 1rem; font-weight: 600; color: var(--rose-700); }
.parking ul { margin-top: 6px; padding-left: 1.1em; }

/* ===== 영상 ===== */
.video-frame {
  margin-top: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--beige-100);
  box-shadow: 0 8px 24px rgba(91, 70, 52, 0.1);
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}
.video-note {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* 영상 소리 켜기/끄기 버튼 (화면 오른쪽 아래 고정) */
.sound-toggle {
  position: fixed;
  z-index: 10;
  right: max(16px, env(safe-area-inset-right), calc(50% - 240px + 16px)); /* PC 에서는 카드 오른쪽 안 */
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--rose-700);
  border-radius: 999px;
  background: var(--rose-700);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(61, 46, 36, 0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sound-toggle[hidden] { display: none; }
.sound-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.sound-toggle svg .stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sound-toggle .icon-sound-on { display: none; }
/* 소리가 나오는 중: 눈에 덜 띄는 밝은 버튼 */
.sound-toggle.is-on { background: var(--paper); color: var(--ink); border-color: var(--beige-500); }
.sound-toggle.is-on .icon-sound-on { display: block; }
.sound-toggle.is-on .icon-sound-off { display: none; }
/* 버튼이 마지막 문구를 가리지 않도록 아래 여백 확보 */
.has-sound-toggle .card { padding-bottom: max(104px, env(safe-area-inset-bottom)); }

/* ===== 마무리 ===== */
.closing {
  margin-top: 64px;
  padding: 40px 8px 8px;
  border-top: 1px solid var(--beige-300);
  text-align: center;
  font-family: var(--font-round);
  font-size: 1.125rem;
  line-height: 1.9;
}
.closing-heart { width: 18px; height: 18px; fill: var(--pink-400); margin: 0 auto 14px; display: block; }

/* ===== PC 화면 ===== */
@media (min-width: 560px) {
  body {
    padding: 48px 16px;
    background:
      var(--decor-top) right 7% top 72px / 230px auto no-repeat,
      var(--decor-bottom) left 7% bottom 72px / 230px auto no-repeat,
      radial-gradient(circle at 15% 10%, var(--pink-100), transparent 40%),
      radial-gradient(circle at 85% 90%, var(--beige-100), transparent 45%),
      var(--ivory);
  }
  .card {
    padding: 64px 40px 52px;
    border-radius: 28px;
    border: 1px solid var(--beige-300);
    box-shadow: 0 18px 48px rgba(91, 70, 52, 0.08);
  }
}

/* ===== 배경 테마 (invitation.config.mjs 의 theme) ===== */
/* 단풍 — 따뜻한 크림색 + 단풍잎 주황 */
:root[data-theme="maple"] {
  --ivory: #faf2e8;
  --paper: #fffbf5;
  --beige-100: #f5e8da;
  --beige-300: #ebd6c1;
  --beige-500: #bf9f83;
  --pink-100: #f9e6d8;
  --pink-200: #f3d2bc;
  --pink-400: #e2a07f;
  --rose-700: #9a4a2e;
  --rose-800: #7d3b24;
  --ink: #3d2e24;
  --ink-soft: #5f4c3e;
  --wash: #f8e7d6;
  --decor-top: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><path d='M12 1.5L13.4 5.6L16.3 4.3L15.6 8.4L19.6 7.3L18 10.6L21.5 12L17.8 13.6L18.8 16.2L14.6 15.4L12.8 18V22.5H11.2V18L9.4 15.4L5.2 16.2L6.2 13.6L2.5 12L6 10.6L4.4 7.3L8.4 8.4L7.7 4.3L10.6 5.6Z' fill='%23e39468'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><path d='M12 1.5L13.4 5.6L16.3 4.3L15.6 8.4L19.6 7.3L18 10.6L21.5 12L17.8 13.6L18.8 16.2L14.6 15.4L12.8 18V22.5H11.2V18L9.4 15.4L5.2 16.2L6.2 13.6L2.5 12L6 10.6L4.4 7.3L8.4 8.4L7.7 4.3L10.6 5.6Z' fill='%23ecb48c'/></g><circle cx='8' cy='12' r='2.4' fill='%23ecb48c'/></svg>");
  --decor-bottom: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(84 48) rotate(180)'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><path d='M12 1.5L13.4 5.6L16.3 4.3L15.6 8.4L19.6 7.3L18 10.6L21.5 12L17.8 13.6L18.8 16.2L14.6 15.4L12.8 18V22.5H11.2V18L9.4 15.4L5.2 16.2L6.2 13.6L2.5 12L6 10.6L4.4 7.3L8.4 8.4L7.7 4.3L10.6 5.6Z' fill='%23e39468'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><path d='M12 1.5L13.4 5.6L16.3 4.3L15.6 8.4L19.6 7.3L18 10.6L21.5 12L17.8 13.6L18.8 16.2L14.6 15.4L12.8 18V22.5H11.2V18L9.4 15.4L5.2 16.2L6.2 13.6L2.5 12L6 10.6L4.4 7.3L8.4 8.4L7.7 4.3L10.6 5.6Z' fill='%23ecb48c'/></g><circle cx='8' cy='12' r='2.4' fill='%23ecb48c'/></g></svg>");
}
/* 은행잎 — 부드러운 노란빛 + 은행잎 */
:root[data-theme="ginkgo"] {
  --ivory: #fbf7ea;
  --paper: #fffdf6;
  --beige-100: #f6eedb;
  --beige-300: #e9dcbb;
  --beige-500: #b9a273;
  --pink-100: #faf0d4;
  --pink-200: #f4e2ad;
  --pink-400: #e5c15a;
  --rose-700: #7a5a1c;
  --rose-800: #634815;
  --ink: #3a3226;
  --ink-soft: #5c5040;
  --wash: #f8edc9;
  --decor-top: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><path d='M12 14.5C8.5 14 4.6 11 2.8 6.6C5.6 3.6 9 2.6 11.3 3.4L12 6.8L12.7 3.4C15 2.6 18.4 3.6 21.2 6.6C19.4 11 15.5 14 12 14.5ZM11.4 13.5H12.6V22.5H11.4Z' fill='%23e8c252'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><path d='M12 14.5C8.5 14 4.6 11 2.8 6.6C5.6 3.6 9 2.6 11.3 3.4L12 6.8L12.7 3.4C15 2.6 18.4 3.6 21.2 6.6C19.4 11 15.5 14 12 14.5ZM11.4 13.5H12.6V22.5H11.4Z' fill='%23f0d68e'/></g><circle cx='8' cy='12' r='2.4' fill='%23f0d68e'/></svg>");
  --decor-bottom: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(84 48) rotate(180)'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><path d='M12 14.5C8.5 14 4.6 11 2.8 6.6C5.6 3.6 9 2.6 11.3 3.4L12 6.8L12.7 3.4C15 2.6 18.4 3.6 21.2 6.6C19.4 11 15.5 14 12 14.5ZM11.4 13.5H12.6V22.5H11.4Z' fill='%23e8c252'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><path d='M12 14.5C8.5 14 4.6 11 2.8 6.6C5.6 3.6 9 2.6 11.3 3.4L12 6.8L12.7 3.4C15 2.6 18.4 3.6 21.2 6.6C19.4 11 15.5 14 12 14.5ZM11.4 13.5H12.6V22.5H11.4Z' fill='%23f0d68e'/></g><circle cx='8' cy='12' r='2.4' fill='%23f0d68e'/></g></svg>");
}
/* 가을 코스모스 — 분홍을 살린 깊은 장밋빛 + 코스모스 */
:root[data-theme="cosmos"] {
  --ivory: #fbf4f2;
  --paper: #fffcfa;
  --beige-100: #f5e9e5;
  --beige-300: #ead6d0;
  --beige-500: #bc9a92;
  --pink-100: #f9e4e7;
  --pink-200: #f2ccd3;
  --pink-400: #df98a6;
  --rose-700: #8a3a4c;
  --rose-800: #712f3e;
  --ink: #3a2c2e;
  --ink-soft: #5e4a4d;
  --wash: #f6dfe3;
  --decor-top: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(0 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(45 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(90 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(135 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(180 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(225 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(270 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(315 12 12)' fill='%23e7a3b3'/><circle cx='12' cy='12' r='2.6' fill='%23e8c36a'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(0 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(45 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(90 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(135 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(180 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(225 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(270 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(315 12 12)' fill='%23f1c6ce'/><circle cx='12' cy='12' r='2.6' fill='%23e8c36a'/></g><circle cx='8' cy='12' r='2.4' fill='%23f1c6ce'/></svg>");
  --decor-bottom: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(84 48) rotate(180)'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(0 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(45 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(90 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(135 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(180 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(225 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(270 12 12)' fill='%23e7a3b3'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(315 12 12)' fill='%23e7a3b3'/><circle cx='12' cy='12' r='2.6' fill='%23e8c36a'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(0 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(45 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(90 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(135 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(180 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(225 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(270 12 12)' fill='%23f1c6ce'/><ellipse cx='12' cy='6.2' rx='2.7' ry='5' transform='rotate(315 12 12)' fill='%23f1c6ce'/><circle cx='12' cy='12' r='2.6' fill='%23e8c36a'/></g><circle cx='8' cy='12' r='2.4' fill='%23f1c6ce'/></g></svg>");
}
/* 단풍 + 은행잎 — 섹션마다 번갈아 (글자·버튼 색은 단풍 기준) */
:root[data-theme="autumn"] {
  --ivory: #faf2e8;
  --paper: #fffbf5;
  --beige-100: #f5e8da;
  --beige-300: #ead8bd;
  --beige-500: #bf9f83;
  --pink-100: #f9e6d8;
  --pink-200: #f3d2bc;
  --pink-400: #e5a25f;
  --rose-700: #9a4a2e;
  --rose-800: #7d3b24;
  --ink: #3d2e24;
  --ink-soft: #5f4c3e;
  --wash: #f8e7d6;
  --decor-top: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><path d='M12 1.5L13.4 5.6L16.3 4.3L15.6 8.4L19.6 7.3L18 10.6L21.5 12L17.8 13.6L18.8 16.2L14.6 15.4L12.8 18V22.5H11.2V18L9.4 15.4L5.2 16.2L6.2 13.6L2.5 12L6 10.6L4.4 7.3L8.4 8.4L7.7 4.3L10.6 5.6Z' fill='%23e39468'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><path d='M12 1.5L13.4 5.6L16.3 4.3L15.6 8.4L19.6 7.3L18 10.6L21.5 12L17.8 13.6L18.8 16.2L14.6 15.4L12.8 18V22.5H11.2V18L9.4 15.4L5.2 16.2L6.2 13.6L2.5 12L6 10.6L4.4 7.3L8.4 8.4L7.7 4.3L10.6 5.6Z' fill='%23ecb48c'/></g><circle cx='8' cy='12' r='2.4' fill='%23ecb48c'/></svg>");
  --decor-bottom: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(84 48) rotate(180)'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><path d='M12 14.5C8.5 14 4.6 11 2.8 6.6C5.6 3.6 9 2.6 11.3 3.4L12 6.8L12.7 3.4C15 2.6 18.4 3.6 21.2 6.6C19.4 11 15.5 14 12 14.5ZM11.4 13.5H12.6V22.5H11.4Z' fill='%23e8c252'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><path d='M12 14.5C8.5 14 4.6 11 2.8 6.6C5.6 3.6 9 2.6 11.3 3.4L12 6.8L12.7 3.4C15 2.6 18.4 3.6 21.2 6.6C19.4 11 15.5 14 12 14.5ZM11.4 13.5H12.6V22.5H11.4Z' fill='%23f0d68e'/></g><circle cx='8' cy='12' r='2.4' fill='%23f0d68e'/></g></svg>");
  --decor-maple: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><path d='M12 1.5L13.4 5.6L16.3 4.3L15.6 8.4L19.6 7.3L18 10.6L21.5 12L17.8 13.6L18.8 16.2L14.6 15.4L12.8 18V22.5H11.2V18L9.4 15.4L5.2 16.2L6.2 13.6L2.5 12L6 10.6L4.4 7.3L8.4 8.4L7.7 4.3L10.6 5.6Z' fill='%23e39468'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><path d='M12 1.5L13.4 5.6L16.3 4.3L15.6 8.4L19.6 7.3L18 10.6L21.5 12L17.8 13.6L18.8 16.2L14.6 15.4L12.8 18V22.5H11.2V18L9.4 15.4L5.2 16.2L6.2 13.6L2.5 12L6 10.6L4.4 7.3L8.4 8.4L7.7 4.3L10.6 5.6Z' fill='%23ecb48c'/></g><circle cx='8' cy='12' r='2.4' fill='%23ecb48c'/></svg>");
  --decor-ginkgo: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 48'><g transform='translate(42 1) rotate(18 18 18) scale(1.8)'><path d='M12 14.5C8.5 14 4.6 11 2.8 6.6C5.6 3.6 9 2.6 11.3 3.4L12 6.8L12.7 3.4C15 2.6 18.4 3.6 21.2 6.6C19.4 11 15.5 14 12 14.5ZM11.4 13.5H12.6V22.5H11.4Z' fill='%23e8c252'/></g><g transform='translate(14 20) rotate(-24 9 9) scale(1)'><path d='M12 14.5C8.5 14 4.6 11 2.8 6.6C5.6 3.6 9 2.6 11.3 3.4L12 6.8L12.7 3.4C15 2.6 18.4 3.6 21.2 6.6C19.4 11 15.5 14 12 14.5ZM11.4 13.5H12.6V22.5H11.4Z' fill='%23f0d68e'/></g><circle cx='8' cy='12' r='2.4' fill='%23f0d68e'/></svg>");
  --wash-maple: #f8e7d6;
  --wash-ginkgo: #f8edc9;
}

/* 단풍 + 은행잎: 섹션마다 은행잎 → 단풍 → 은행잎 순으로 배경·장식이 번갈아 나옴
   (첫 화면과 마무리는 카드 장식: 위 단풍, 아래 은행잎) */
:root[data-theme="autumn"] .section {
  position: relative;
  /* 배경 패널만 카드 여백 쪽으로 넓히고, 내용 폭은 다른 테마와 같게 유지 */
  margin: 0 -14px;
  padding: 40px 14px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--section-wash) 0%, rgba(255, 255, 255, 0) 78%);
}
:root[data-theme="autumn"] .section::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 10px;
  width: 64px;
  height: 37px;
  background: var(--section-decor) no-repeat center / contain;
  pointer-events: none;
}
:root[data-theme="autumn"] .section:nth-of-type(odd) { --section-wash: var(--wash-ginkgo); --section-decor: var(--decor-ginkgo); }
:root[data-theme="autumn"] .section:nth-of-type(even) { --section-wash: var(--wash-maple); --section-decor: var(--decor-maple); }
:root[data-theme="autumn"] .section:nth-of-type(even)::before { right: auto; left: 10px; transform: scaleX(-1); }
:root[data-theme="autumn"] .divider { margin: 36px auto; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 0; }
  .actions, .copy-status { display: none; }
}
