/* 우리 여행: 홈 버튼 · 시트 · 추억 줄 · 고정된 여행 안내 (색·글꼴·크기는 tokens.css 토큰만) */
.topbar__r { display: flex; align-items: center; gap: 10px; }
.trips-btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; color: var(--on-dark); background: rgb(var(--deep-rgb) / .35); box-shadow: inset 0 0 0 1px var(--on-dark-2); white-space: nowrap; }
.view > .topbar .trips-btn, .find-head .trips-btn { color: var(--ink); background: var(--paper); box-shadow: var(--edge); }

.trip-actions { display: flex; align-items: center; gap: 8px; margin: 0 22px 12px; }
.trip-actions > .t-cap { flex: 1; }
.trip-actions button { min-height: 44px; }
.today-hero .trip-actions { margin: 12px 0 0; }

.trips-mem .rail--memories { padding-top: 2px; }
.mem-card { flex: none; position: relative; width: 168px; height: 212px; border-radius: var(--r-xl); overflow: hidden; scroll-snap-align: start; color: var(--on-dark); text-align: left; }
.mem-card .plate { position: absolute; inset: 0; border-radius: inherit; }
.mem-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--scrim) 100%); }
.mem-card__body { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.mem-card__t { font-size: var(--fs-lg); font-weight: 700; }
.mem-card__s { font-size: var(--fs-xs); color: var(--on-dark-2); }

.fixed-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--edge); }
.fixed-card__moon { width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--honey); box-shadow: inset -8px -3px 0 0 var(--paper); }

.trips-sheet { display: flex; flex-direction: column; gap: 14px; }
.trips-group { display: flex; flex-direction: column; gap: 6px; }
.trip-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.trip-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--edge); text-align: left; min-height: 64px; }
.trip-row.is-cur { box-shadow: var(--edge-strong); }
.trip-thumb { flex: none; width: 52px; height: 52px; border-radius: var(--r-sm); overflow: hidden; }
.trip-thumb .plate { width: 100%; height: 100%; }
.trip-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trip-row__main b { font-size: var(--fs-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-row__tag { flex: none; font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-3); }
/* 여행 기록 화면(#/record/<id>) */
.trip-rec { padding-bottom: 40px; }
.trip-rec-top { position: relative; z-index: 2; }
.trip-rec-top__r { display: flex; align-items: center; gap: 8px; }
.trip-rec-back { color: var(--on-dark); }   /* 위쪽 큰 그림 위에 놓여요 */
.trip-rec--plain .trip-rec-back { color: var(--ink); }
.trip-rec-editbtn { color: var(--on-dark); background: rgb(var(--deep-rgb) / .4); box-shadow: inset 0 0 0 1px var(--on-dark-2); }
.trip-rec-note { margin-top: 24px; text-align: center; }
.trip-rec-note + .btn { margin-top: 16px; }
.trip-rec-head { position: relative; margin-top: -52px; min-height: 300px; display: flex; align-items: flex-end; background: var(--night); border-radius: 0 0 var(--r-2xl) var(--r-2xl); overflow: hidden; color: var(--on-dark); }
.trip-rec-head .plate { position: absolute; inset: 0; border-radius: 0; }
.trip-rec-head__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--night-rgb) / .15) 0%, rgb(var(--night-rgb) / 0) 35%, rgb(var(--deep-rgb) / .85) 100%); }
.trip-rec-head__b { position: relative; padding: 0 24px 22px; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.trip-rec-head__t { color: var(--on-dark); }
.trip-rec-head__s { font-size: var(--fs-md); font-weight: 600; color: var(--on-dark-2); }
.trip-rec-head__c { font-size: var(--fs-sm); color: var(--on-dark-2); }
.trip-rec-head__cta:empty { display: none; }   /* 돌아보기 버튼 자리(사진 작업에서 채워요) */
.trip-rec-hint { padding: 14px 22px 0; }
.trip-rec-day { padding-top: 22px; }
.trip-rec-rows { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.trip-rec-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trip-rec-row--bare .trip-rec-row__n { color: var(--ink-2); font-weight: 600; }   /* 사진이 없는 장소: 일정 줄만 흐리게(읽을 수 있게 보조 글자색) */
.trip-rec-row__t { flex: none; width: 48px; font-size: var(--fs-md); color: var(--ink-3); }
.trip-rec-row__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trip-rec-row__n { font-size: var(--fs-lg); }
.trip-rec-row__m { font-size: var(--fs-sm); color: var(--ink-2); }
.trip-rec-row.is-edited .trip-rec-row__n::after { content: ' · 고침'; font-size: var(--fs-2xs); font-weight: 600; color: var(--ink-3); }
.trip-rec-row__photos:empty, .trip-rec-moments:empty { display: none; }   /* 줄마다 사진 띠 · 이 날의 순간 자리(사진 작업에서 채워요) */
.trip-rec-row__btns, .trip-rec-exp__btns { display: flex; gap: 14px; margin-top: 6px; }
.trip-rec-exp__btns { justify-content: flex-end; margin: -6px 0 6px; }
.trip-rec-add { margin-top: 12px; }
.trip-rec-stay { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--halo-2); }
.trip-rec-stay b { font-size: var(--fs-md); }
.trip-rec-exp { padding-top: 28px; }
.trip-rec-book { margin-top: 20px; }
.trip-rec-book__w { color: var(--ink-3); font-size: var(--fs-sm); margin-left: auto; }
.trip-rec-empty { padding-top: 28px; }
.trip-rec-menu__list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.topbar__r .duo { width: auto; padding-top: 0; }   /* 시작 화면 캐릭터용 .duo 규칙(width·padding)이 작은 아바타 쌍에 번지지 않게 */

/* 여행 사진: 기록 줄마다 대표 컷(크게) + 나머지(작게 옆으로) · 사진 시트 · 일정표 카메라 */
.trip-rec-ph { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.trip-rec-ph__big { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--halo-2); }
.trip-rec-ph__i, .trip-rec-ph__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-rec-ph__m { font-size: var(--fs-sm); color: var(--ink-2); }
.trip-rec-ph__snd { align-self: flex-start; padding: 2px 0; }
.trip-rec-ph__row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 2px; }
.trip-rec-ph__sm { flex: none; position: relative; width: 72px; height: 72px; border-radius: var(--r-md); overflow: hidden; background: var(--halo-2); scroll-snap-align: start; }
.trip-rec-cam { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.trip-rec-moments { padding-top: 12px; }
.trip-rec-moments__h { margin-bottom: 2px; }
.trip-pv { margin: 4px 0 12px; border-radius: var(--r-lg); overflow: hidden; background: var(--halo-2); }
.trip-pv__m { display: block; width: 100%; max-height: 52vh; object-fit: contain; }
.trip-pv__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.trip-cam { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); background: var(--halo-2); }

/* 1초 영상(아이폰 앱, 예전 2초 영상도 그대로 보여요): 카메라 시트(사진 / 영상(1초)) · 고르기 시트(첫 장면 + 시작 지점 막대) */
.trip-clip-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.trip-clip-pick .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.trip-clip-pick .btn:first-child { grid-column: 1 / -1; }
.trip-clip-pick__note { margin-top: 10px; }
.trip-clip-pv { margin: 4px 0 12px; border-radius: var(--r-lg); overflow: hidden; background: var(--halo-2); }
.trip-clip-pv:empty { display: none; }
.trip-clip-pv__i { display: block; width: 100%; max-height: 40vh; object-fit: contain; }
.trip-clip-range__in { width: 100%; height: 32px; accent-color: var(--act); }
.trip-clip-range__t { margin: 2px 0 12px; }

/* 돌아보기(#/record/<id>/look): 어두운 전체 화면 · 장면마다 2초 · 사진은 천천히 확대 · 위쪽 막대 · 아래 제목 */
.trip-rec-head__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.trip-rec-look { background: var(--honey-soft); color: var(--brand-slate); }
.trip-rec-saveall, .trip-rec-movie { color: var(--on-dark); background: rgb(var(--deep-rgb) / .4); box-shadow: inset 0 0 0 1px var(--on-dark-2); }

/* 영상 만들기(js/trip_movie_make.js): 진행 시트(단계 글자 + 숫자 + 막대 + 그만두기) · 끝난 시트(사진첩 저장 · 공유) · 휴대폰 웹 안내 */
.trip-movie { display: flex; flex-direction: column; gap: 12px; }
.trip-movie__st { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 0; font-size: var(--fs-lg); font-weight: 700; }
.trip-movie__n { font-size: var(--fs-md); font-weight: 600; color: var(--ink-2); }
.trip-movie__bar { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.trip-movie__bar b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--honey); transition: width .3s ease; }
.trip-movie__msg { font-size: var(--fs-lg); font-weight: 700; }
.trip-movie__btns { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .trip-movie__bar b { transition: none; } }
.trip-look { position: fixed; inset: 0; z-index: 40; overflow: hidden; background: var(--brand-black); color: var(--on-dark); -webkit-user-select: none; user-select: none; }
.trip-look__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.trip-look__img, .trip-look__vid { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; }
.trip-look__img { animation: trip-look-zoom 2s linear forwards; }
.trip-look__bars { position: absolute; left: 12px; right: 56px; top: calc(var(--safe-t) + 14px); z-index: 3; display: flex; gap: 4px; }
.trip-look__bar { flex: 1; height: 3px; border-radius: var(--r-pill); background: var(--on-dark-2); opacity: .5; overflow: hidden; }
.trip-look__bar b { display: block; width: 0; height: 100%; background: var(--on-dark); }
.trip-look__bar.is-done { opacity: 1; }
.trip-look__bar.is-done b { width: 100%; }
.trip-look__bar.is-on { opacity: 1; }
.trip-look__bar.is-on b { animation: trip-look-fill 2s linear forwards; }
.trip-look__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0; padding: 56px 22px calc(var(--safe-b) + 28px); font-size: var(--fs-lg); font-weight: 700; text-align: center; background: linear-gradient(180deg, rgb(var(--deep-rgb) / 0), rgb(var(--deep-rgb) / .85)); pointer-events: none; }
.trip-look__memo { display: block; margin-top: 4px; font-size: var(--fs-sm); font-weight: 500; color: var(--on-dark-2); }
.trip-look__z { position: absolute; top: 56px; bottom: 90px; z-index: 2; background: transparent; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.trip-look__z--l { left: 0; width: 30%; }
.trip-look__z--c { left: 30%; width: 40%; }
.trip-look__z--r { right: 0; width: 30%; }
.trip-look__x { position: absolute; right: 8px; top: calc(var(--safe-t) + 4px); z-index: 4; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--on-dark); background: transparent; border: 0; }
.trip-look__end { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 32px; text-align: center; background: var(--sky); }
.trip-look__end .btn { min-width: 200px; }
.trip-look.is-paused .trip-look__img, .trip-look.is-paused .trip-look__bar b { animation-play-state: paused; }
@keyframes trip-look-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes trip-look-fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .trip-look__img { animation: none; }
  .trip-look__bar.is-on b { animation: none; width: 100%; }
}
