/*
  홈 히어로의 앱 화면 데모 (지도 → 방문기록 → 추억 달력 순환).
  동작은 phone-demo.js. 장면이 .is-playing 일 때만 애니메이션이 돌고,
  기본 상태는 "다 그려진 화면"이라 JS 없음·동작 줄이기 설정에서도 그대로 보인다.
  폰 화면 안은 앱 라이트 테마 색(AppColorsExt.light)을 그대로 쓴다.
*/

.demo {
  --demo-lavender: #8775bc;
  --demo-lavender-soft: #f4effa;
  --demo-text: #393939;
  --demo-sub: #7b708b;
  --demo-bg: #fafafa;
  /* 앱: 헤드라인 ZenSerif · 본문 Pretendard. ZenSerif 는 재배포 금지라 비슷한 Gowun Batang 으로 대신한다. */
  --demo-serif: "Gowun Batang", "ZenSerif", serif;
  --demo-sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --mark-favorite: #f4a8c6;
  --mark-wishlist: #97c6f6;
  --mark-normal: #dbdbdb;
  --map-land: #f2efe8;
  --map-block: #e9e5dc;
  --map-park: #d5e8c4;
  --map-water: #bfdcf2;
  --map-road: #ffffff;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ── 폰 프레임 ───────────────────────────────────────── */

.phone {
  position: relative;
  width: 280px;
  height: 580px;
  padding: 10px;
  border-radius: 46px;
  background: #1f1e24;
  box-shadow:
    0 30px 60px rgba(60, 40, 110, 0.22),
    0 0 0 2px #3a3842 inset;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--demo-bg);
  color: var(--demo-text);
  font-family: var(--demo-sans);
  font-size: 12px;
  line-height: 1.4;
}

.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 82px;
  height: 24px;
  margin-left: -41px;
  border-radius: 20px;
  background: #1f1e24;
  z-index: 5;
}

.phone-status {
  position: absolute;
  inset: 0 0 auto 0;
  height: 40px;
  padding: 13px 24px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  z-index: 4;
}

/* ── 장면 전환 ───────────────────────────────────────── */

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.45s, transform 0.45s, visibility 0s 0.45s;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s, transform 0.45s;
}

.scene-head {
  padding: 46px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scene-head b { font-size: 16px; }
.scene-head span { color: var(--demo-sub); font-size: 11px; }

/* ── 장면 1: 지도 ───────────────────────────────────── */

.scene-map { background: var(--map-land); }

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-art .block { fill: var(--map-block); }
.map-art .park { fill: var(--map-park); }
.map-art .water { fill: var(--map-water); }
.map-art .road { stroke: var(--map-road); fill: none; stroke-linecap: round; }

.map-top {
  position: absolute;
  top: 44px;
  left: 12px;
  right: 12px;
  z-index: 3;
}

.map-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff;
  color: #9a9a9a;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.map-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.map-chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.map-chip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

.markers {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* 핀의 끝점이 (left, top) 좌표에 오도록 아래 가운데를 기준으로 둔다 */
.pin {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
}

.pin svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18)); }

.pin .pin-icon {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1;
}

.pin .pin-name {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* 핀이 떨어질 때 바닥에 퍼지는 물결 */
.pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 22px;
  height: 8px;
  margin: -4px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid var(--demo-lavender);
  opacity: 0;
  pointer-events: none;
}

.pin.is-selected { z-index: 2; }
.pin.is-selected svg { animation: pin-bounce 0.8s ease-in-out infinite; }

.map-count {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--demo-text);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  z-index: 3;
  opacity: 0; /* 다 그려진 상태에선 장소 카드가 그 자리를 쓴다 */
}

.map-count b { color: var(--mark-favorite); }

/* 마커를 누르면 뜨는 장소 요약 카드 (PlaceSummaryCard 배치 축소) */
.place-sheet {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 11px;
  padding: 16px;
  border-radius: 13px;
  background: var(--demo-bg);
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.12);
  z-index: 4;
}

.ps-info { flex: 1; min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 5px;
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.badge svg { width: 10px; height: 10px; }
.badge-status { background: rgba(178, 164, 212, 0.1); color: #b2a4d4; }
.badge-category { background: rgba(245, 245, 245, 0.5); color: var(--demo-text); }
.badge-rating { background: rgba(255, 152, 0, 0.1); color: #ff9800; }
.badge-like { background: rgba(0, 163, 140, 0.1); color: #00a38c; }
.badge-rating svg,
.badge-like svg { width: 16px; height: 16px; }

.ps-title {
  margin: 8px 0 5px;
  font-family: var(--demo-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* 앱처럼 한 줄을 넘으면 말줄임 (maxLines 1) */
.ps-address {
  margin-top: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 8.5px;
  color: rgba(0, 0, 0, 0.54);
}

.ps-address svg { width: 9px; height: 9px; margin-right: 3px; vertical-align: -1px; }

.ps-badges { display: flex; gap: 8px; margin-top: 8px; }

.ps-actions { display: flex; gap: 8px; }

.circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 700;
}

.circle-btn i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-btn svg { width: 16px; height: 16px; }

/* 지도앱 — 대각선 반반: 왼쪽 위 카카오 노랑, 오른쪽 아래 네이버 초록 */
.btn-mapapp i { background: linear-gradient(135deg, #fee500 50%, #03c75a 50%); color: var(--demo-text); }
.btn-review { color: #b2a4d4; }
.btn-review i { background: rgba(178, 164, 212, 0.25); }

/* ── 장면 2: 방문기록 상세 ──────────────────────────── */
/* ReviewScreen 의 배치를 그대로 축소했다 (실제 dp × 약 0.67).
   앱바 → 작성자·별점 배지 → 방문일 + 마스킹테이프 → 함께한 사람 → 사진 슬라이더
   → 한 줄·본문 → 좋아요·공유 → 댓글 → 댓글 입력바. */

.scene-review { font-family: var(--demo-sans); }

.app-bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 82px;
  padding: 40px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--demo-bg);
  z-index: 3;
}

.app-bar svg { width: 16px; height: 16px; color: var(--demo-text); }
.app-bar b { font-family: var(--demo-serif); font-size: 13.5px; font-weight: 700; }

.rv-viewport {
  position: absolute;
  top: 82px;
  bottom: 46px;
  left: 0;
  right: 0;
  overflow: hidden;
}

.rv-scroll { transform: translateY(var(--scroll-y, 0)); }
.rv-scroll.is-scrolled { transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1); }

.rv-author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px 11px;
}

.rv-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.rv-author .name { font-family: var(--demo-serif); font-size: 12.5px; font-weight: 700; }
.rv-author .date { font-size: 9.5px; color: rgba(0, 0, 0, 0.54); }

.rating-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 7px 3px 4px;
  border-radius: 8px;
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  font-family: var(--demo-serif);
  font-size: 12.5px;
  font-weight: 800;
}

.rating-badge svg { width: 22px; height: 22px; }

.rv-visited {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px 14px;
}

.visited-pill {
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(178, 164, 212, 0.1);
  color: #b2a4d4;
  font-size: 9.5px;
  font-weight: 700;
}

/* 추억 색 마스킹테이프 — 40% 추억 색 + 깅엄 체크 + 지그재그 끝 */
.tape {
  position: absolute;
  right: 16px;
  top: -9px;
  width: 66px;
  height: 16px;
  background-color: rgba(255, 193, 138, 0.4); /* memoryOrange */
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 50%, transparent 50%),
    linear-gradient(rgba(0, 0, 0, 0.05) 50%, transparent 50%);
  background-size: 10px 10px;
  clip-path: polygon(4% 0, 96% 0, 100% 17%, 96% 33%, 100% 50%, 96% 67%, 100% 83%, 96% 100%, 4% 100%, 0 83%, 4% 67%, 0 50%, 4% 33%, 0 17%);
}

.rv-with { padding: 0 16px 12px; }

.rv-with .head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.rv-with .head svg { width: 12px; height: 12px; color: rgba(0, 0, 0, 0.54); }

.rv-with .list { display: flex; gap: 11px; margin-top: 8px; }

.rv-with .item {
  width: 43px;
  text-align: center;
  font-size: 9.5px;
}

.rv-with .item img {
  display: block;
  width: 37px;
  height: 37px;
  margin: 0 auto 4px;
  border-radius: 50%;
  object-fit: cover;
}

/* 사진 슬라이더 — 여러 장이면 다음 사진이 오른쪽에 살짝 보인다 (viewportFraction 0.92) */
.rv-slider { overflow: hidden; }

.rv-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-track.is-next { transform: translateX(-92%); }

/* 첫 장이 양옆 4% 씩 남기고 가운데 오도록 — PageView(viewportFraction 0.92) 와 같다 */
.rv-slide { flex: 0 0 92%; padding: 0 4px; }
.rv-slide:first-child { margin-left: 4%; }

.rv-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 11px;
  object-fit: cover;
}

.rv-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 7px;
}

.rv-dots i {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.16);
  transition: width 0.2s, background 0.2s;
}

.rv-dots i.is-active { width: 12px; background: #b2a4d4; }

.rv-body { padding: 16px 16px 8px; }

.rv-title {
  min-height: 19px;
  font-family: var(--demo-serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.rv-title .caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--demo-lavender);
  opacity: 0;
}

.scene.is-playing .rv-title .caret { animation: blink 0.8s steps(1) infinite; }

.rv-content {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(57, 57, 57, 0.9);
}

.rv-actions {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.heart { position: relative; width: 27px; height: 27px; }
.heart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.heart .heart-on { opacity: 0; transform: scale(0.4); }
.heart.is-liked .heart-off { opacity: 0; }
.heart.is-liked .heart-on { opacity: 1; transform: none; transition: transform 0.45s cubic-bezier(0.3, 1.8, 0.5, 1), opacity 0.15s; }

.like-count {
  padding: 0 7px;
  font-family: var(--demo-serif);
  font-size: 12.5px;
  font-weight: 700;
}

.rv-actions .share { width: 20px; height: 20px; margin-left: 2px; color: #919191; }

.rv-comments { padding: 14px 16px 16px; }

.rv-comments .head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-family: var(--demo-serif);
  font-size: 12.5px;
  font-weight: 700;
}

.rv-comments .head svg { width: 20px; height: 20px; }

.count-pill {
  margin-left: 2px;
  padding: 1px 5px;
  border-radius: 7px;
  background: rgba(178, 164, 212, 0.1);
  color: #b2a4d4;
  font-family: var(--demo-sans);
  font-size: 9.5px;
  font-weight: 700;
}

.rv-comment {
  display: flex;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(214, 214, 214, 0.3);
}

.rv-comment img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.rv-comment .meta { display: flex; font-size: 9.5px; font-weight: 700; }
.rv-comment .meta span { margin-left: auto; font-weight: 400; color: rgba(0, 0, 0, 0.54); }
.rv-comment p { margin: 2px 0 0; font-size: 11px; }

.rv-input {
  position: absolute;
  inset: auto 0 0 0;
  height: 46px;
  padding: 6px 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-top: 1px solid #eee;
}

.rv-input .field {
  flex: 1;
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #9a9a9a;
  font-size: 10.5px;
}

.rv-input svg { width: 18px; height: 18px; color: #b2a4d4; }

/* ── 장면 3: 홈 추억 달력 ───────────────────────────── */
/* HomeScreen 상단 + MemoryCalendarSection 배치 축소:
   로고 앱바 → 문구·"나의 맛집 기록" → 리포트 입구 카드 → 달력 카드 → 고른 날의 기록 */

.home-bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 80px;
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--demo-bg);
  z-index: 3;
}

.home-bar img { height: 16px; opacity: 0.85; }

.home-bar svg {
  position: absolute;
  right: 14px;
  top: 51px;
  width: 18px;
  height: 18px;
  color: var(--demo-text);
}

.home-body { position: absolute; top: 80px; left: 13px; right: 13px; }

.home-tagline { font-size: 10px; color: rgba(0, 0, 0, 0.54); }

.home-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.home-title b { font-family: var(--demo-serif); font-size: 14px; font-weight: 800; }

.home-title span {
  font-family: var(--demo-serif);
  font-size: 11px;
  color: #b2a4d4;
}

.report-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 9px 9px 9px 13px;
  border-radius: 11px;
  border: 1px solid rgba(214, 214, 214, 0.15);
  background: #fff;
  font-family: var(--demo-serif);
  font-size: 11.5px;
}

.report-entry svg { width: 9px; height: 9px; color: #d6d6d6; }

.cal {
  margin-top: 3px;
  padding: 6px 5px 5px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.05);
}

.cal-month {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--demo-serif);
  font-size: 11.5px;
  font-weight: 800;
}

.cal-month svg { width: 13px; height: 13px; color: #919191; }
.cal-month .cal-icon { width: 11px; height: 11px; margin-left: -2px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.cal-grid .wd {
  padding: 3px 0 2px;
  font-size: 8.5px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.54);
}

.cal-grid .wd.is-weekend { color: rgba(178, 164, 212, 0.6); }

/* 한 칸 — 바깥 여백 안쪽에 둥근 칸. 추억이 있으면 그날 추억 색 35% 로 칠한다 */
.cal-day { padding: 2px; }

.cal-cell {
  height: 29px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 7px;
  font-family: var(--demo-serif);
  font-size: 11px;
  transition: background 0.25s, color 0.25s;
}

.cal-day.is-weekend .cal-cell { color: #b2a4d4; }
.cal-day.has-memory .cal-cell { background: var(--fill); font-weight: 800; }
.cal-day.is-today .cal-cell { box-shadow: inset 0 0 0 1px rgba(178, 164, 212, 0.5); }
.cal-day.is-selected .cal-cell { background: #b2a4d4; color: #fff; box-shadow: none; }

.cal-dots { display: flex; gap: 1.5px; height: 4px; }

.cal-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.cal-day.is-selected .cal-dots i { box-shadow: 0 0 0 0.6px rgba(255, 255, 255, 0.9); }

/* 고른 날의 기록 */
.day-panel {
  margin-top: 6px;
  padding: 9px 8px 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.5);
}

.day-panel .label {
  padding: 0 5px 7px;
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.54);
}

.memo-card {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.05);
}

.memo-card img {
  width: 43px;
  height: 43px;
  border-radius: 7px;
  object-fit: cover;
}

.memo-card b { display: block; font-size: 10.5px; }
.memo-card .one { font-size: 8.5px; color: #7b708b; }

.memo-card .with {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 700;
  color: #b2a4d4;
}

.memo-card .with svg { width: 9px; height: 9px; }
.memo-card .date { margin-top: 2px; font-size: 7.5px; color: rgba(0, 0, 0, 0.54); }

/* 기록 카드 왼쪽 위에 비스듬히 붙은 추억 색 테이프 */
.memo-card .tape {
  left: -3px;
  right: auto;
  top: -4px;
  width: 54px;
  transform: rotate(-17deg);
}

/* ── 하단 탭바 (MainScreen) — 아이콘만, 마지막 칸은 내 프로필 사진 ── */

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 7px 8px 17px;
  background: var(--demo-bg);
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.06);
}

.tabbar svg { width: 18px; height: 18px; color: #919191; }

.tabbar .is-current {
  color: #b2a4d4;
  transform: scale(1.08);
  filter: drop-shadow(0 0 5px rgba(178, 164, 212, 0.45));
}

.tabbar img { width: 19px; height: 19px; border-radius: 50%; object-fit: cover; }

/* ── 장면 선택 칩 ───────────────────────────────────── */

.demo-steps {
  display: flex;
  gap: 6px;
}

.demo-steps button {
  position: relative;
  overflow: hidden;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.demo-steps button.is-active {
  color: var(--brand);
  border-color: var(--brand);
}

/* 현재 장면이 얼마나 남았는지 보여 주는 진행 막대 */
.demo-steps button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--brand);
  transform-origin: left;
  animation: progress var(--scene-ms, 6000ms) linear both;
}

.demo.is-paused .demo-steps button.is-active::after { animation: none; }

/* ── 재생 중 애니메이션 ─────────────────────────────── */
/* --i: 같은 무리 안에서의 순번 (JS 가 넣는다). 순번만큼 늦게 시작한다. */

.scene-map.is-playing .pin {
  animation: pin-drop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  animation-delay: calc(var(--i) * 170ms + 250ms);
}

.scene-map.is-playing .pin::after {
  animation: ripple 0.6s ease-out both;
  animation-delay: calc(var(--i) * 170ms + 520ms);
}

.scene-map.is-playing .place-sheet {
  animation: slide-up 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
  animation-delay: 3.4s;
}

.scene-map.is-playing .map-count { animation: count-life 3.6s both; }

.scene-review.is-playing .rv-author { animation: slide-up 0.4s ease-out both 0.1s; }
.scene-review.is-playing .rv-visited { animation: slide-up 0.4s ease-out both 0.25s; }
.scene-review.is-playing .tape { animation: tape-stick 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both 0.8s; }

.scene-review.is-playing .rv-with .item {
  animation: pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  animation-delay: calc(var(--i) * 120ms + 0.5s);
}

.scene-review.is-playing .rv-slider { animation: slide-up 0.5s ease-out both 0.6s; }
.scene-review.is-playing .rv-content { animation: fade-in 0.5s both 5s; }
.scene-review.is-playing .rv-comment { animation: slide-up 0.45s ease-out both 6.3s; }

.scene-calendar.is-playing .home-body > * { animation: slide-up 0.45s ease-out both; }
.scene-calendar.is-playing .home-body > :nth-child(2) { animation-delay: 0.08s; }
.scene-calendar.is-playing .home-body > :nth-child(3) { animation-delay: 0.16s; }
.scene-calendar.is-playing .home-body > :nth-child(4) { animation-delay: 0.24s; }

/* 추억이 있는 날이 차례로 물들고 점이 톡 찍힌다 */
.scene-calendar.is-playing .cal-day.has-memory .cal-cell {
  animation: cell-fill 0.45s ease-out both;
  animation-delay: calc(var(--i) * 170ms + 0.7s);
}

.scene-calendar.is-playing .cal-dots i {
  animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: calc(var(--i) * 170ms + 0.85s);
}

.scene-calendar.is-playing .day-panel { animation: slide-up 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1) both 3.5s; }
.scene-calendar.is-playing .memo-card .tape { animation: tape-stick-tilted 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both 3.95s; }

@keyframes pin-drop {
  0% { transform: translate(-50%, -260%) scale(0.5); opacity: 0; }
  55% { transform: translate(-50%, -100%) scale(1.15, 0.9); opacity: 1; }
  75% { transform: translate(-50%, -112%) scale(0.95, 1.05); }
  100% { transform: translate(-50%, -100%) scale(1); }
}

@keyframes ripple {
  0% { opacity: 0.8; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(2.2); }
}

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes slide-up {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

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

@keyframes cell-fill {
  0% { background: transparent; transform: scale(0.6); }
  60% { transform: scale(1.12); }
  100% { background: var(--fill); transform: none; }
}

@keyframes tape-stick-tilted {
  0% { opacity: 0; transform: translateY(-8px) rotate(-30deg) scale(1.25); }
  100% { opacity: 1; transform: rotate(-17deg); }
}

/* 핀이 떨어지는 동안만 보였다가 장소 카드가 올라오기 직전에 사라진다 */
@keyframes count-life {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  6%, 90% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* 테이프가 위에서 툭 붙는 느낌 */
@keyframes tape-stick {
  0% { opacity: 0; transform: translateY(-8px) rotate(-8deg) scale(1.25); }
  100% { opacity: 1; transform: none; }
}

@keyframes blink {
  50% { opacity: 1; }
}

@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .scene { transition: none; }
  .scene.is-playing *,
  .scene.is-playing *::after,
  .demo-steps button.is-active::after { animation: none !important; }
}

/* 선택된 날은 물들이기 애니메이션의 마지막 색보다 선택 색이 우선한다 */
.scene-calendar.is-playing .cal-day.is-selected .cal-cell { animation: none; }
