/* ============================================================
   15MIN — 스파르타를 바꾸는 시간
   style.css  |  디자이너 에이전트 작성
   ============================================================ */

/* ── 0. CSS Custom Properties ───────────────────────────── */
:root {
  /* Brand tokens */
  --bg:     #F4F1ED;
  --fg:     #1C1B18;
  --accent: #470024;
  --muted:  #A89F98;
  --sub:    #6B6560;
  --border: #E2DDD8;
  --warm:   #C4A882;

  /* Typography */
  --font-base: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-logo: 'Barlow Condensed', var(--font-base);

  /* Spacing */
  --page-h-pad: 20px;
  --card-radius: 10px;
  --modal-radius: 16px;

  /* Motion */
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-modal: 350ms;
  --duration-fast: 180ms;
}

/* ── 1. Reset ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  min-height: 100dvh;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ── site-nav (상단 고정 네비게이션) ─────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 80;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-h-pad);
  height: 52px;
}

/* 모바일에서 PC 토글 버튼 숨김 */
.nav-sheet-toggle {
  display: none;
}

.site-nav__logo {
  line-height: 1;
  user-select: none;
}

.site-nav__logo-img {
  height: 12px;
  width: auto;
  display: block;
  /* 빈티지: 살짝 눌린 느낌 */
  text-shadow: 0.4px 0.4px 0 rgba(28,27,24,0.18);
}

.site-nav__sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── 2. 페이지 레이아웃 ─────────────────────────────────── */
.page {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg);
  min-height: 100dvh;
  overflow: hidden;
  padding-top: 52px;
  padding-bottom: 80px;
}

/* ── 3. 인트로 블록 (A안) ───────────────────────────────── */
.intro-block {
  padding: 36px var(--page-h-pad) 20px;
}

.intro-block__text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* ── Day 라벨 ──────────────────────────────────────────── */
.day-label {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(146,122,132,0.5);
  padding: 36px var(--page-h-pad) 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.day-label__date {
  font-size: 18px;
  font-weight: 600;
  color: #470024;
}

.day-label--day2 {
  margin-top: 56px;
  padding-bottom: 6px;
}

/* ── 4. 타임 섹션 ──────────────────────────────────────── */
.time-section {
  padding: 28px 0 0;
}

.time-section:first-of-type {
  padding-top: 6px;
}

.time-section__header {
  padding: 0 var(--page-h-pad) 12px;
}

.time-section__slot {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 400;
  color: rgba(146,122,132,0.68);
}

/* ── 5. 슬라이더 (Swiper.js) ────────────────────────────── */
.swiper {
  width: 100%;
  padding: 0 var(--page-h-pad) !important;
  overflow: visible !important;
}

/* 슬라이더 스크롤바 숨김 */
.swiper::-webkit-scrollbar,
.swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.swiper-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.swiper-slide {
  width: calc(82% - 6px);
  flex-shrink: 0;
}

/* ── 6. 카드 ────────────────────────────────────────────── */
.card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background-color: #FEFCF8;
  /* 페이지 배경과 명확히 구분되는 shadow + thin outline */
  box-shadow:
    0 2px 16px rgba(0,0,0,0.10),
    0 0 0 0.5px rgba(28,27,24,0.10);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* ── 카드 헤더: 브랜드 + 카테고리 ── */
.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 0;
  flex-shrink: 0;
}

.card__brand {
  font-family: 'Courier Prime', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

.card__brand-logo {
  height: 10px;
  width: auto;
  opacity: 0.5;
}

.card__cat {
  font-family: var(--font-base);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(146,122,132,0.68);
}

/* ── 오라 영역 ── */
.card__aura {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
}

.card__aura-blob {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card__aura-logo {
  display: none;
}

.card__hook {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19.5px;
  font-weight: 300;
  font-style: italic;
  color: var(--fg);
  line-height: 1.38;
  letter-spacing: 0.01em;
  text-align: center;
  word-break: keep-all;
  white-space: pre-line;
}

/* ── 하단: 연사 + 성분표 + 시간 ── */
.card__bottom {
  flex-shrink: 0;
  padding: 0 18px 16px;
}

.card__sub-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.card__rule {
  height: 0.5px;
  background: rgba(28,27,24,0.12);
  margin-bottom: 10px;
}

.card__meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card__speaker-line {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 400;
  color: #470024;
}
.card__speaker-line .card__speaker-bio {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 9px;
  color: rgba(146,122,132,0.68);
}

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

.card__note-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card__note-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card__note-label {
  font-family: var(--font-base);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(146,122,132,0.68);
  width: 44px;
  flex-shrink: 0;
}

.card__note-value {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #470024;
}

.card__note-pct {
  font-family: var(--font-base);
  font-size: 9px;
  font-weight: 300;
  color: rgba(146,122,132,0.68);
}

.card__time-date {
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #470024;
}

.card__time-vol {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-style: italic;
  font-weight: 300;
  color: rgba(146,122,132,0.68);
}

/* ── 체크 배지 ── */
.card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  z-index: 10;
  transition:
    opacity var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out-smooth);
}

.card__check svg {
  width: 10px;
  height: 10px;
}

/* ── 카드 상태 ── */
.card--selected {
  box-shadow:
    inset 0 0 0 2px var(--fg),
    0 2px 16px rgba(0,0,0,0.10);
}

.card--selected .card__check {
  opacity: 1;
  transform: scale(1);
}

.card--sibling {
  opacity: 0.35;
  filter: saturate(0.15);
  pointer-events: none;
}

/* ── 7. 모달 ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(28, 27, 24, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 100;
  pointer-events: none;
  transition:
    background-color var(--duration-modal) ease,
    backdrop-filter var(--duration-modal) ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay--active {
  background-color: rgba(28, 27, 24, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 390px;
  background-color: #FFFCF6;
  border-radius: var(--modal-radius) var(--modal-radius) 0 0;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform var(--duration-modal) var(--ease-out-smooth);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 모달 스크롤바 숨김 */
.modal::-webkit-scrollbar { display: none; }
.modal { -ms-overflow-style: none; scrollbar-width: none; }

.modal--open {
  transform: translateY(0);
  animation: slideUpModal var(--duration-modal) var(--ease-out-smooth) forwards;
}

.modal__label-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal__close {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--duration-fast) ease;
}

.modal__close:hover { opacity: 0.5; }

.modal__close svg {
  width: 14px;
  height: 14px;
  stroke: var(--sub);
  stroke-width: 2;
  fill: none;
}

/* 모달 내부 레이아웃 */
.modal__inner {
  padding: 20px var(--page-h-pad) 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 라벨 프레임 */
.modal__frame {
  border: 1px solid rgba(181,164,168,0.25);
  margin-bottom: 14px;
}

/* 헤더: No. + 카테고리 + X */
.modal__label-top {
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 14px;
  border-bottom: 0.5px solid rgba(181,164,168,0.25);
  gap: 8px;
}

.modal__label-top .modal__cat-tag {
  flex: 1;
  text-align: right;
}

.modal__no {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(181,164,168,1);
}

.modal__cat-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(181,164,168,1);
}

/* 타이틀 + 향 노트 */
.modal__main {
  padding: 18px 16px 14px;
  border-bottom: 0.5px solid rgba(181,164,168,0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__hook {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #470024;
  word-break: keep-all;
}

.modal__notes {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  color: rgba(181,164,168,1);
  letter-spacing: 0.14em;
}

/* 후킹 문장 — 주인공 */
.modal__desc-area {
  padding: 40px 20px;
  border-bottom: 0.5px solid rgba(181,164,168,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.modal__desc {
  font-family: 'Obangju', var(--font-base);
  font-size: 21px;
  line-height: 1.7;
  color: #470024;
  white-space: pre-line;
  text-align: center;
}

/* 이런 향이 맞는 분 */
.modal__fit-area {
  padding: 18px 16px 16px;
  border-bottom: 0.5px solid rgba(181,164,168,0.25);
}

.modal__fit-label {
  font-family: 'Courier Prime', monospace;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: rgba(181,164,168,1);
  margin-bottom: 8px;
}

.modal__fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal__fit-item {
  font-size: 12px;
  line-height: 1.5;
  color: #470024;
  padding-left: 12px;
  position: relative;
}

.modal__fit-item::before {
  content: '—';
  position: absolute;
  left: 0;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: rgba(181,164,168,1);
  line-height: 1.6;
}

/* 조향사 — 한 줄 */
.modal__perfumer-area {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
}

.modal__perfumer-label {
  font-family: var(--font-base);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(181,164,168,1);
  flex-shrink: 0;
}

.modal__speaker-name {
  font-size: 14px;
  font-weight: 500;
  color: #470024;
}

.modal__speaker-bio {
  font-size: 12px;
  color: rgba(181,164,168,1);
}

/* ── 8. 버튼 ─────────────────────────────────────────────── */
.btn-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 6px;
  background-color: #470024;
  color: #FFFCF6;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) ease,
    opacity var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out-smooth);
}

.btn-pick:active { transform: scale(0.98); }

.btn-pick--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── 오픈 전 안내 ── */
.modal__open-notice {
  text-align: center;
  padding: 14px 20px;
  margin: 0 20px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.btn-pick--selected {
  background-color: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}

.btn-pick--selected:active { transform: scale(0.98); }

/* ── 바텀시트 액션 영역 ── */
.bottom-sheet__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px var(--page-h-pad) max(16px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}

.btn-explore {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 6px;
  background-color: #470024;
  color: #FFFCF6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    opacity var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out-smooth);
}
.btn-explore:active { transform: scale(0.98); }

.btn-explore--hidden {
  display: none;
}

.btn-complete-text {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 400;
  color: #470024;
  opacity: 0.45;
  cursor: pointer;
  padding: 8px 0;
  letter-spacing: 0.02em;
  transition: opacity var(--duration-fast) ease;
}
.btn-complete-text:active { opacity: 0.7; }

.btn-complete-text--disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

/* 4개 다 채웠을 때: 탐색 버튼 숨기고 완성하기가 강조로 승격 */
.btn-complete-text--promoted {
  width: 100%;
  height: 52px;
  border-radius: 6px;
  background-color: #470024;
  color: #FFFCF6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 1;
  cursor: pointer;
}
.btn-complete-text--promoted:active { transform: scale(0.98); }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background-color: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out-smooth);
}

.btn-primary:active { transform: scale(0.98); }

/* ── 9. 교체 팝업 ────────────────────────────────────────── */
.replace-popup {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 88px);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: calc(100% - 40px);
  max-width: 350px;
  background-color: var(--fg);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition:
    opacity var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out-smooth);
}

.replace-popup--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.replace-popup__text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bg);
  opacity: 0.88;
}

.replace-popup__actions {
  display: flex;
  gap: 8px;
}

.replace-popup__actions button {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--duration-fast) ease;
}

.replace-popup__actions button:first-child {
  background-color: rgba(245, 242, 238, 0.12);
  color: var(--bg);
}

.replace-popup__actions button:last-child {
  background-color: var(--bg);
  color: var(--fg);
}

/* ── 10. 바텀시트 ──────────────────────────────────────── */
.sheet-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 89;
}

.sheet-backdrop--active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  /* 기본: peek 상태 — header만 보임 */
  transform: translateX(-50%) translateY(calc(100% - 64px));
  width: 100%;
  max-width: 390px;
  background: #FFFCF6;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(181,164,168,0.3);
  z-index: 90;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  height: max-content;
  max-height: 80dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bottom-sheet--open {
  transform: translateX(-50%) translateY(0);
}

.bottom-sheet__handle-bar {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 0;
  cursor: pointer;
}

.bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--page-h-pad) 12px;
  cursor: pointer;
}

.bottom-sheet__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #470024;
}

.bottom-sheet__count {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* ── 프로그레스 바 ──────────────────────────────────────────── */
.sheet-progress {
  height: 3px;
  background: var(--border);
  margin: 8px var(--page-h-pad) 0;
  border-radius: 2px;
  overflow: hidden;
}

.sheet-progress__fill {
  height: 100%;
  width: 0;
  background: rgba(71, 0, 36, 0.25);
  border-radius: 2px;
  transition: width 500ms var(--ease-out-smooth);
}

/* ── 빈 슬롯 유도 문구 (PC에서만) ────────────────────────────── */
.slot__empty-hint {
  display: none;
}

/* ── 노트 플레이스홀더 ─────────────────────────────────────── */
.sheet-placeholder {
  flex-shrink: 0;
  margin: 8px var(--page-h-pad) 8px;
  padding: 8px 16px 8px 18px;
  border-left: 2px solid #D4C9C0;
  max-height: 120px;
  overflow: hidden;
  transition:
    opacity 220ms ease,
    max-height 300ms var(--ease-out-smooth),
    padding 300ms ease,
    margin 300ms ease;
}

.sheet-placeholder--hidden {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.sheet-placeholder__text {
  display: block;
  font-family: 'Obangju', var(--font-base);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 30px;
  white-space: pre-wrap;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.bottom-sheet__body {
  flex: 0 0 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(80dvh - 230px);
}

.bottom-sheet__slots {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--page-h-pad);
}

/* 슬롯 */
.slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(181,164,168,0.2);
  background: transparent;
  min-height: 56px;
}

.slot:last-child {
  border-bottom: none;
}

.slot--empty {
  border-bottom: 1px dashed rgba(181,164,168,0.3);
  background: transparent;
  border-bottom-style: dashed;
}

.slot--empty:last-child {
  border-bottom: none;
}

.slot__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  justify-content: center;
}

.slot__thumb {
  width: 40px;
  height: 52px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--border);
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: -0.02em;
  transition: background-color 700ms ease, color 900ms ease;
}

/* 카테고리 색상 — background가 정적 상태 담당, ::before는 애니메이션 전용 */
.slot__thumb--colored {
  background-color: var(--slot-color);
  color: var(--ink);
}

/* 숫자 레이어 — ::before 위에, 독립 레이어로 승격해 첫 애니메이션 시 깜빡임 방지 */
.slot__thumb span {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
}

/* 물드는 효과 — ::before가 원형에서 퍼지며 채워짐 */
.slot__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  z-index: 0;
  will-change: transform, opacity, filter;
}
.slot__thumb::before { background-color: var(--slot-color-strong, var(--slot-color)); }

.slot__thumb--fill::before {
  animation: thumbFill 1500ms ease-out forwards;
}

@keyframes thumbFill {
  0%   { transform: scale(0);    opacity: 0;    filter: blur(8px); }
  15%  { transform: scale(0.35); opacity: 0.55; filter: blur(5px); }
  55%  { transform: scale(1.2);  opacity: 0.85; filter: blur(2px); }
  72%  { transform: scale(1.8);  opacity: 1;    filter: blur(0px); }
  100% { transform: scale(1.8);  opacity: 0;    filter: blur(0px); }
}

.slot--empty .slot__thumb {
  background-color: var(--border);
  color: var(--bg);
}

.slot__time-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(181,164,168,1);
}

.slot__title {
  font-size: 15px;
  font-weight: 500;
  color: #470024;
  line-height: 1.3;
  white-space: pre-line;
}

.slot__time {
  display: none;
}

.slot--empty .slot__inner::before {
  content: attr(data-slot-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--border);
}

.slot__remove {
  position: static;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid rgba(181,164,168,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.slot__remove svg {
  width: 10px;
  height: 10px;
  stroke: var(--sub);
  stroke-width: 2;
  fill: none;
}

.bottom-sheet__status {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  padding: 4px var(--page-h-pad) 12px;
  margin-bottom: 0;
}

.bottom-sheet__status:empty {
  padding: 0;
}

/* ── 10-1. 뒤로가기 버튼 (레시피·서명 페이지 공용) ──────── */
.btn-back {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: max(var(--page-h-pad), calc((100% - 390px) / 2 + var(--page-h-pad)));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: none;
  border: none;
  color: var(--fg);
  opacity: 0.5;
  cursor: pointer;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.btn-back:active {
  opacity: 1;
}

.recipe-page__inner .btn-back {
  position: static;
  margin-bottom: 16px;
}

/* ── 11. 최종 확인 페이지 ──────────────────────────────── */
.recipe-page {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 110;
  transform: translateX(100%);
  transition: transform var(--duration-modal) var(--ease-out-smooth);
}

.recipe-page--active {
  transform: translateX(0);
}

.recipe-page__inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--page-h-pad) calc(env(safe-area-inset-bottom, 0px) + 32px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.recipe-page__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 8px;
}

.recipe-page__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--sub);
  line-height: 1.55;
  margin-bottom: 32px;
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recipe-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #FEFCFA;
}

.recipe-item__time {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.recipe-item__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.recipe-item__speaker {
  font-size: 13px;
  font-weight: 400;
  color: var(--sub);
}

.recipe-item__alt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.recipe-item__alt input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.recipe-alt-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--sub);
  cursor: pointer;
  line-height: 1.4;
}

.signature-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signature-section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.signature-section__sub {
  font-size: 11px;
  font-weight: 400;
  color: rgba(181,164,168,1);
  margin-top: 6px;
}

.signature-select {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A89F98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.signature-select:focus {
  outline: none;
  border-color: var(--fg);
}

.recipe-page__footer {
  margin-top: 24px;
}

.btn-finalize {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  background-color: var(--accent);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out-smooth);
}

.btn-finalize:active { transform: scale(0.98); }

.btn-finalize:disabled {
  background-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

/* ── 11-1. 서명 페이지 ──────────────────────────────── */
.sign-page {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 120;
  transform: translateX(100%);
  transition: transform var(--duration-modal) var(--ease-out-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign-page--active {
  transform: translateX(0);
}

.sign-page__inner {
  width: 100%;
  max-width: 390px;
  padding: 0 var(--page-h-pad);
  display: flex;
  flex-direction: column;
  gap: 32px;
}


.sign-page__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.sign-page__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sign-page__desc {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sub);
  margin-top: -12px;
}

.sign-page__input {
  width: 100%;
  height: 48px;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  padding: 8px 0;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--fg);
  background: transparent;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--duration-fast, 150ms) ease;
}

.sign-page__input:focus {
  border-color: var(--fg);
}

.sign-page__input-wrap {
  position: relative;
}

.sign-page__suggestions {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #FFFCF6;
  border: 1px solid rgba(181,164,168,0.3);
  border-top: none;
  border-radius: 0 0 8px 8px;
  display: none;
  z-index: 10;
}

.sign-page__suggestions--open {
  display: block;
}

.sign-page__suggestion {
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(181,164,168,0.15);
}

.sign-page__suggestion:last-child {
  border-bottom: none;
}

.sign-page__suggestion:active {
  background: rgba(181,164,168,0.1);
}

.sign-page__suggestion--empty {
  font-size: 12px;
  color: rgba(181,164,168,1);
  cursor: default;
  justify-content: center;
}

.sign-page__suggestion-name {
  font-size: 14px;
  font-weight: 500;
  color: #470024;
}

.sign-page__suggestion-email {
  font-size: 11px;
  color: rgba(181,164,168,1);
}

.sign-page__error {
  font-size: 12px;
  color: #C0392B;
  min-height: 16px;
  line-height: 1.4;
}

.sign-page__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent);
  border: none;
  color: var(--bg);
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    opacity var(--duration-fast, 150ms) ease,
    transform var(--duration-fast, 150ms) var(--ease-out-smooth, ease);
}

.sign-page__btn:active { transform: scale(0.98); }
.sign-page__btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* sign-page exit 애니메이션 */
.sign-page--exit {
  animation: signExit 280ms ease-in forwards;
  pointer-events: none;
}
@keyframes signExit {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(0) scale(1.03); }
}

/* ── 12. 완료 페이지 ───────────────────────────────────── */
.done-page {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 380ms var(--ease-out-smooth), transform 380ms var(--ease-out-smooth);
}

.done-page--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.done-page__inner {
  width: 100%;
  max-width: 390px;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── eyebrow ── */
.done-eyebrow {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: doneItemFadeUp 800ms 400ms var(--ease-out-smooth) forwards;
}

/* ── 향수 레이블 래퍼 ── */
.done-label-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  opacity: 0;
  animation: doneItemFadeUp 900ms 1200ms var(--ease-out-smooth) forwards;
}

.done-label {
  position: relative;
  border: 1px solid rgba(28,27,24,0.22);
  border-radius: 2px;
  padding: 32px 24px 36px;
  background: #FAF7F3;
  box-shadow:
    0 1px 2px rgba(28,27,24,0.06),
    0 4px 16px rgba(28,27,24,0.08);
}

/* Diptyque 내부 가는 선 */
.done-label::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 0.5px solid rgba(28,27,24,0.14);
  border-radius: 1px;
  pointer-events: none;
}

/* ── 레이블 헤더 ── */
.done-label__brand {
  text-align: center;
  margin-bottom: 20px;
}

.done-label__brand-name {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--sub);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.done-label__brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--fg);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

/* ── 구분선 ── */
.done-label__divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}
.done-label__divider::before,
.done-label__divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(28,27,24,0.22);
}
.done-label__divider-ornament {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10px;
  color: var(--sub);
  letter-spacing: 0.1em;
}

/* ── 강연 목록 ── */
.done-label__notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
}

.done-label__note {
  display: flex;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 0.5px solid rgba(28,27,24,0.08);
  opacity: 0;
}
.done-label__note:last-child { border-bottom: none; }

@keyframes doneTypeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes doneItemFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.done-label__note:nth-child(1) { animation: doneTypeIn 700ms 1600ms var(--ease-out-smooth) forwards; }
.done-label__note:nth-child(2) { animation: doneTypeIn 700ms 1900ms var(--ease-out-smooth) forwards; }
.done-label__note:nth-child(3) { animation: doneTypeIn 700ms 2200ms var(--ease-out-smooth) forwards; }
.done-label__note:nth-child(4) { animation: doneTypeIn 700ms 2500ms var(--ease-out-smooth) forwards; }

.done-label__note-meta {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 9.5px;
  color: var(--sub);
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-width: 72px;
  padding-top: 1px;
}

.done-label__note-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--fg);
  letter-spacing: 0.01em;
  line-height: 1.4;
  flex: 1;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 시그니처 강연 */
.done-label__note--signature .done-label__note-title {
  color: var(--accent);
  font-weight: 700;
}
.done-label__note--signature .done-label__note-meta {
  color: var(--accent);
  opacity: 0.7;
}

.done-signature-mark {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 8px;
  color: var(--accent);
  opacity: 0.8;
  margin-left: 5px;
  flex-shrink: 0;
  align-self: center;
}

/* ── 레이블 푸터 ── */
.done-label__footer {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  opacity: 0;
  animation: doneItemFadeUp 700ms 2800ms var(--ease-out-smooth) forwards;
}

.done-label__owner {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 10px;
  color: var(--sub);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.done-label__owner-name {
  display: block;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.done-label__batch {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 0.12em;
  text-align: right;
  line-height: 1.6;
}


/* ── 완성 카피 ── */
.done-caption {
  margin-bottom: 32px;
  text-align: center;
  opacity: 0;
  animation: doneItemFadeUp 800ms 900ms var(--ease-out-smooth) forwards;
}

.done-caption__main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--fg);
  letter-spacing: 0.04em;
  line-height: 1.4;
  display: block;
}

.done-caption__sub {
  font-family: var(--font-base, inherit);
  font-weight: 300;
  font-size: 12px;
  color: var(--sub);
  letter-spacing: 0.04em;
  margin-top: 10px;
  display: block;
  line-height: 1.7;
}

.done-notice {
  text-align: center;
  margin-top: 24px;
  opacity: 0;
  animation: doneItemFadeUp 700ms 3200ms var(--ease-out-smooth) forwards;
}

.done-notice__main {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 400;
  color: rgba(181,164,168,1);
  margin-bottom: 4px;
}

.done-notice__sub {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;
  color: #470024;
}

/* ── 13. 담기 애니메이션 ──────────────────────────────── */
/* thumbFill keyframe은 slot__thumb::before 정의부에 위치 */

/* ── 14. 모달 바텀업 슬라이드 keyframe ────────────────── */
@keyframes slideUpModal {
  from {
    transform: translateY(100%);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── 15. 유틸리티 ─────────────────────────────────────── */
.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;
}

.divider {
  height: 1px;
  background-color: var(--border);
  margin: 24px 0;
}

/* ── 16. 반응형: 390px 이상에서 센터 정렬 ─────────────── */
@media (min-width: 390px) {
  .page {
    box-shadow: 0 0 0 1px var(--border), 0 8px 40px rgba(28, 27, 24, 0.08);
    min-height: 100dvh;
  }

  body {
    background-color: #ECE9E4;
  }
}

@media (min-width: 640px) {
  body {
    background-color: #E4E0DB;
  }
}

/* ── 17. PC 뷰 (768px+) ─────────────────────────────────── */
@media (min-width: 1024px) {

  /* ── 아이패드 프레임 제거 ── */
  body {
    background-color: var(--bg);
  }

  .page {
    max-width: 1100px;
    padding-left: 48px;
    padding-right: 48px;
    box-shadow: none;
  }

  .site-nav {
    max-width: 100%;
    padding: 0 48px;
  }

  /* 로고 + 서브타이틀을 왼쪽에 묶기 */
  .site-nav {
    gap: 12px;
  }

  .site-nav__sub {
    margin-right: auto;
    font-size: 11px;
  }

  /* ── 네비 토글 버튼 ── */
  .nav-sheet-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: none;
    border: 1.5px solid var(--accent);
    border-radius: 20px;
    font-family: var(--font-base);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
    white-space: nowrap;
  }

  .nav-sheet-toggle:hover {
    background: var(--accent);
    color: #FFFCF6;
  }

  .nav-sheet-toggle__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFCF6;
    font-size: 11px;
    font-weight: 700;
  }

  .nav-sheet-toggle:hover .nav-sheet-toggle__badge {
    background: #FFFCF6;
    color: var(--accent);
  }

  /* ── 카드: 비율 + 타이포 스케일업 ── */
  .card {
    aspect-ratio: 3 / 4;
  }

  .day-label {
    font-size: 14px;
    padding-top: 44px;
  }

  .day-label__date {
    font-size: 22px;
  }

  .time-section__slot {
    font-size: 13px;
  }

  .card__title {
    font-size: 22px;
  }

  .card__info-label,
  .card__info-value {
    font-size: 11px;
  }

  /* ── 모달: 중앙 전환 ── */
  .modal-overlay {
    align-items: center;
    padding: 40px;
  }

  .modal {
    max-width: 480px;
    border-radius: 16px;
    max-height: 80vh;
    transform: translateY(20px);
    opacity: 0;
    transition: transform var(--duration-modal) var(--ease-out-smooth),
                opacity 250ms ease;
  }

  .modal--open {
    animation: none;
    transform: translateY(0);
    opacity: 1;
  }

  /* ── 바텀시트 → 우측 사이드 패널 ── */
  .bottom-sheet {
    left: auto;
    right: 0;
    top: 52px;
    bottom: 0;
    width: 380px;
    max-width: 380px;
    max-height: none;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-top: none;
    border-left: 1px solid rgba(181,164,168,0.2);
    transform: translateX(100%);
    box-shadow: -4px 0 24px rgba(28, 27, 24, 0.06);
  }

  .bottom-sheet--open {
    transform: translateX(0);
  }

  .bottom-sheet__handle-bar {
    display: none;
  }

  /* 뱃지 → 닫기 버튼 (원 제거) */
  .sheet-badge {
    font-size: 0;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sheet-badge::after {
    content: '\00d7';
    font-size: 20px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1;
  }

  .bottom-sheet__body {
    flex: 1;
    max-height: none;
    overflow-y: auto;
  }

  .bottom-sheet__actions {
    margin-top: 24px;
    flex-shrink: 0;
  }

  /* 상단 여백 조정 */
  .bottom-sheet__header {
    padding: 20px 20px 12px;
  }

  .sheet-progress {
    margin: 8px var(--page-h-pad) 0;
  }

  .bottom-sheet__body {
    flex: 0 1 auto;
  }

  .slot__empty-hint {
    display: block;
    font-size: 11px;
    font-style: italic;
    color: var(--border);
    margin: 0;
    letter-spacing: 0.02em;
  }

  .sheet-backdrop {
    display: none;
  }

  /* ── 교체 팝업: 중앙 ── */
  .replace-popup {
    max-width: 400px;
    bottom: auto;
    top: 50%;
    transform: translateX(-50%) translateY(-50%) translateY(16px);
    z-index: 101;
  }

  .replace-popup--active {
    transform: translateX(-50%) translateY(-50%);
  }

  /* ── 레시피/서명/완료: max-width 확장 ── */
  .recipe-page__inner {
    max-width: 520px;
  }

  .sign-page__inner {
    max-width: 520px;
  }

  .done-page__inner {
    max-width: 520px;
  }

  .btn-back {
    left: max(var(--page-h-pad), calc((100% - 520px) / 2 + var(--page-h-pad)));
  }
}

/* ── 카드 hover (PC 전용) ── */
@media (hover: hover) and (min-width: 1024px) {
  .card {
    transition: opacity 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  }

  .card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 8px 24px rgba(28, 27, 24, 0.12),
      0 0 0 0.5px rgba(28,27,24,0.10);
  }

  .card--sibling {
    transform: none;
  }
}
