/* 앱 화면 목업 — 폰 테두리와 앱 각 화면.
   화면 안쪽은 iPhone 390pt 폭 기준 px 로 그리고, 폰 크기는 --z(배율) 하나로 바꾼다.
   색은 앱 테마 토큰(--a-*)만 쓴다. 기본값은 site.css 의 :root(라이트·다크),
   테마 전환 폰은 아래 [data-app] 프리셋이 덮는다. 값은 lib/styles/theme/AppColorsExt.dart 와 같다. */

[data-app='light'] {
  --a-bg: #f1e8d8; --a-sf: #fcf7ec; --a-tx: #2e2822; --a-sub: #675e54; --a-desc: #746755;
  --a-pri: #9a4a2c; --a-on: #fff; --a-ic: #a99c8a; --a-bd: #e6dbc8; --a-fld: #ebe1d0;
}
[data-app='dark'] {
  --a-bg: #171310; --a-sf: #231e17; --a-tx: #f0e7d8; --a-sub: #9c8f7b; --a-desc: #8f8473;
  --a-pri: #e0a084; --a-on: #3a1e12; --a-ic: #8a8072; --a-bd: #342c22; --a-fld: #2c261e;
}
[data-app='silver'] {
  --a-bg: #d0d7e0; --a-sf: #dce1e8; --a-tx: #1f2937; --a-sub: #485566; --a-desc: #535d74;
  --a-pri: #33507a; --a-on: #fff; --a-ic: #8893a4; --a-bd: #c2c9d2; --a-fld: #bac2cc;
}
[data-app='pinkLemon'] {
  --a-bg: #f3f2d8; --a-sf: #ffffe8; --a-tx: #423a36; --a-sub: #70615c; --a-desc: #766c65;
  --a-pri: #ca4866; --a-on: #fff; --a-ic: #a89b92; --a-bd: #dcd2c9; --a-fld: #faf6ec;
}
[data-app='butterBlue'] {
  --a-bg: #fff7c7; --a-sf: #fbf9db; --a-tx: #3a3a3a; --a-sub: #6b675b; --a-desc: #757165;
  --a-pri: #397bab; --a-on: #fff; --a-ic: #9c9a8e; --a-bd: #dcd8c2; --a-fld: #ecead8;
}
[data-app='mintChoco'] {
  --a-bg: #cfe8e1; --a-sf: #ebfaf1; --a-tx: #3a352d; --a-sub: #615b52; --a-desc: #6a645a;
  --a-pri: #5b4636; --a-on: #fff; --a-ic: #9c968a; --a-bd: #9dbab1; --a-fld: #c8e1d7;
}
[data-app='matchaCream'] {
  --a-bg: #f6eacf; --a-sf: #f6f2e1; --a-tx: #3f3a2f; --a-sub: #666056; --a-desc: #70695d;
  --a-pri: #598041; --a-on: #fff; --a-ic: #a39c8c; --a-bd: #dcd6c0; --a-fld: #e9e2cb;
}

/* ───────── 폰 테두리 ───────── */

.phone {
  --z: 0.78;
  --bezel: 11px;
  position: relative;
  flex: none;
  width: calc(390px * var(--z) + var(--bezel) * 2);
  height: calc(844px * var(--z) + var(--bezel) * 2);
  max-width: 100%;
  padding: var(--bezel);
  border-radius: calc(56px * var(--z) + var(--bezel));
  background: linear-gradient(145deg, #3b332d, #14110e 40%, #2a241f);
  box-shadow:
    inset 0 0 0 1.5px #5a4f46,
    inset 0 0 0 4px #0d0a08,
    0 50px 90px -40px var(--shadow-deep),
    0 22px 40px -24px var(--shadow-deep);
}
/* 옆 버튼 */
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2a241f;
}
.phone::before { left: -2px; top: 22%; height: 9%; }
.phone::after { right: -2px; top: 28%; height: 13%; }

.screen {
  position: relative;
  width: 390px;
  height: 844px;
  zoom: var(--z);
  overflow: hidden;
  border-radius: 48px;
  background: var(--a-bg);
  color: var(--a-tx);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s, color 0.5s;
}
.screen * { transition: background-color 0.5s, color 0.5s, border-color 0.5s; }

.status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 32px 0 44px;
  font-weight: 600;
  font-size: 16px;
  color: var(--a-tx);
}
.status.on-photo { color: #fff; }
.status .island {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 122px;
  height: 36px;
  margin-left: -61px;
  border-radius: 20px;
  background: #000;
}
.status .sys { display: flex; gap: 6px; align-items: center; }
.status svg { width: 18px; height: 12px; fill: currentColor; }
.status .batt { width: 26px; }

.scr-body {
  position: absolute;
  inset: 54px 0 0;
  overflow: hidden;
}
.scr-body.has-tabs { bottom: 82px; }
.scr-body.full { top: 0; }

/* ───────── 공용 요소 ───────── */

.a-serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }
.a-pad { padding-inline: 22px; }
.a-ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.a-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 22px 0;
}
.a-head h3 { margin: 0; font-size: 34px; line-height: 1.1; }
.a-head .meta { margin-top: 4px; font-size: 12px; color: var(--a-sub); }
.a-head .grow { flex: 1; min-width: 0; }
.a-head .today {
  margin: 4px 0 0 2px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--a-pri);
  background: color-mix(in srgb, var(--a-pri) 13%, var(--a-bg));
}
.a-head .search { color: var(--a-sub); margin: 12px 8px 0 0; }
.a-plus {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--a-pri);
  color: var(--a-on);
}
.a-plus .a-ico { width: 24px; height: 24px; stroke-width: 2.2; }

.a-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--a-tx);
}
.a-heading::after { content: ''; flex: 1; height: 1px; background: var(--a-bd); }

.a-dash { height: 0; border-top: 1.5px dashed var(--a-bd); }

.a-tabs {
  position: absolute;
  inset: auto 0 0;
  height: 82px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 8px;
  border-top: 1px solid var(--a-bd);
  background: var(--a-sf);
}
.a-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--a-ic);
}
.a-tabs .on { color: var(--a-pri); font-weight: 600; }
.a-tabs .a-ico { width: 24px; height: 24px; }

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 14px 22px 0;
  padding: 3px;
  border-radius: 12px;
  background: var(--a-fld);
  font-size: 14px;
  font-weight: 600;
}
.seg span { padding: 8px 0; text-align: center; border-radius: 9px; }
.seg .on { background: var(--a-sf); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }

/* 여행 도장 (TripStamp) — js 가 svg 로 그린다. */
.stamp { width: 96px; height: 96px; color: #fff; transform: rotate(-12deg); }
.stamp text { fill: currentColor; font-family: var(--font-body); }

/* 폴라로이드 */
.pola {
  display: block;
  padding: 7px 7px 22px;
  background: #fff;
  box-shadow: 0 6px 14px -6px rgb(40 25 10 / 0.35), 0 1px 2px rgb(40 25 10 / 0.12);
}
.pola img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ───────── 달력 화면 ───────── */

.cal-dow,
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-inline: 14px;
}
.cal-dow { margin-top: 18px; font-size: 12px; color: var(--a-sub); text-align: center; }
.cal-dow .sun,
.cal-week .sun { color: #b8433f; }
.cal-week { grid-template-rows: 22px 34px 14px; row-gap: 2px; margin-top: 6px; }
.cal-cell {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
  font-size: 13px;
  border-radius: 12px;
}
.cal-cell.dim { color: var(--a-ic); }
.cal-cell.today { background: color-mix(in srgb, var(--a-pri) 15%, var(--a-bg)); }
.cal-cell img {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  object-fit: cover;
}
.cal-cell .mood { font-size: 19px; line-height: 31px; }
.cal-band {
  grid-row: 3;
  z-index: 1;
  height: 14px;
  padding-left: 8px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  white-space: nowrap;
  color: #fff;
  background: #c27650;
}
.cal-band.start { border-radius: 8px 0 0 8px; margin-left: 4px; }
.cal-band.end { border-radius: 0 8px 8px 0; margin-right: 6px; }

.report-card {
  position: relative;
  margin: 22px 22px 0;
  padding: 18px 20px 16px 38px;
  border-radius: 0 16px 16px 0;
  background: var(--a-sf);
  border: 1px solid var(--a-bd);
}
.report-card::before {
  /* 가죽 책갈피 끈 */
  content: '';
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 12px;
  background:
    repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.55) 0 3px, transparent 3px 7px) 50% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, var(--leather-dark), var(--leather));
}
.report-card .lbl { font-size: 12px; color: var(--a-sub); }
.report-card p { margin: 6px 0 8px; font-size: 21px; line-height: 1.35; }
.report-card b,
.num-hl { color: var(--a-pri); font-weight: 400; }
.report-card .more { font-size: 14px; font-weight: 600; color: var(--a-pri); }

.entry-list { margin-top: 18px; }
.entry-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
}
.entry-row + .entry-row { border-top: 1.5px dashed var(--a-bd); margin-inline: 22px; padding-inline: 0; }
.entry-row .d { width: 34px; text-align: center; font-size: 27px; line-height: 1; }
.entry-row .d small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 12px; color: var(--a-sub); }
.entry-row .t { flex: 1; min-width: 0; }
.entry-row .t strong { display: block; font-family: var(--font-serif); font-size: 21px; font-weight: 700; }
.entry-row .t span { font-size: 12px; color: var(--a-sub); }
.mini-pola {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 4px solid #fff;
  background: var(--a-fld);
  box-shadow: 0 3px 8px -3px rgb(0 0 0 / 0.3);
  font-size: 22px;
  transform: rotate(3deg);
}

/* ───────── 일기 읽기 화면 ───────── */

.diary-top {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 0;
  color: var(--a-tx);
}
.ribbon {
  position: absolute;
  right: 22px;
  top: 58px;
  width: 22px;
  height: 66px;
  background:
    repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.5) 0 4px, transparent 4px 8px) 50% 6px / 1px calc(100% - 12px) no-repeat,
    linear-gradient(90deg, var(--leather-dark), var(--leather) 60%, var(--leather-dark));
  box-shadow: 0 3px 6px -2px rgb(0 0 0 / 0.35);
}
.ribbon::after {
  content: '';
  position: absolute;
  inset: auto 0 -8px;
  height: 9px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 30%, 0 100%);
}
.diary-date { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.diary-date .big { font-size: 56px; line-height: 0.9; }
.diary-date .dow { font-size: 21px; font-weight: 700; line-height: 1.1; }
.diary-date small { display: block; font-size: 13px; color: var(--a-sub); }
.diary-ctx {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--a-sub);
}
.diary-ctx::before { content: ''; width: 18px; height: 4px; border-radius: 2px; background: #c27650; }
.diary-ctx em { margin-left: auto; margin-right: 52px; font-style: normal; }
.diary-title { margin: 18px 0 8px; font-size: 31px; line-height: 1.2; }
.diary-meta { display: flex; gap: 14px; font-size: 14px; color: var(--a-sub); }

.plan { display: grid; gap: 0; margin-top: 12px; }
.plan-row { position: relative; display: flex; align-items: center; gap: 14px; height: 46px; }
.plan-row + .plan-row::before {
  content: '';
  position: absolute;
  left: 13px;
  top: -14px;
  height: 18px;
  border-left: 2px dotted var(--a-ic);
}
.ink {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--a-pri);
}
.ink svg { position: absolute; inset: -2px; width: 32px; height: 32px; stroke: var(--a-pri); fill: none; stroke-width: 1.6; }
.plan-row strong { flex: 1; font-family: var(--font-serif); font-size: 19px; font-weight: 700; }
.plan-row time { font-size: 13px; color: var(--a-sub); font-variant-numeric: tabular-nums; }

.diary-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 18px 0; }
.diary-photos .pola:first-child { transform: rotate(-1.5deg); }
.diary-photos .pola:last-child { transform: rotate(1.8deg); }
.diary-text { margin: 20px 0 0; font-size: 17px; line-height: 1.75; }
.hl {
  padding: 1px 2px;
  color: #2e2822;
  background: linear-gradient(transparent 8%, #fbef7e 8%, #fbef7e 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
}
.ink-red { color: #c9443a; }
.ink-orange { color: #dd7a2e; }
.diary-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: #b56b4b; }
.diary-divider::before,
.diary-divider::after { content: ''; flex: 1; height: 1.5px; background: currentColor; opacity: 0.7; }
.diary-divider i { width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); }
.photo-left { display: grid; grid-template-columns: 136px 1fr; gap: 16px; align-items: start; }
.photo-left .pola { transform: rotate(-2deg); }
.photo-left p { margin: 0; font-size: 16px; line-height: 1.75; }

/* ───────── 여행 목록 · 여행 카드 ───────── */

.sort { margin: 10px 26px 0 0; text-align: right; font-size: 14px; color: var(--a-sub); }
.trip-cards { display: grid; gap: 16px; margin: 12px 22px 0; }
.trip-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--a-bd);
  background: var(--a-sf);
}
.trip-card .cover { position: relative; height: 184px; color: #fff; }
.trip-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-card .cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgb(0 0 0 / 0.62));
}
.trip-card .cap { position: absolute; left: 18px; bottom: 14px; z-index: 1; }
.trip-card .cap small { font-size: 12px; font-weight: 600; }
.trip-card .cap strong { display: block; margin: 2px 0; font-family: var(--font-serif); font-size: 27px; font-weight: 700; line-height: 1.15; }
.trip-card .cap span { font-size: 12px; }
.trip-card .stamp { position: absolute; right: 12px; top: 12px; z-index: 1; width: 84px; height: 84px; }
.trip-card .foot {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--a-sub);
}
.trip-card .foot b { font-weight: 500; color: var(--a-tx); font-variant-numeric: tabular-nums; }

/* 여행 상세 머리 (커버 사진) */
.trip-cover { position: relative; height: 270px; color: #fff; }
.trip-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / 0.25), transparent 30%, rgb(0 0 0 / 0.55)); }
.trip-cover .nav { position: absolute; inset: 64px 18px auto; z-index: 1; display: flex; justify-content: space-between; }
.trip-cover .cap { position: absolute; left: 22px; bottom: 18px; z-index: 1; }
.trip-cover .cap small { font-size: 13px; font-weight: 600; }
.trip-cover .cap strong { display: block; margin: 2px 0; font-family: var(--font-serif); font-size: 32px; font-weight: 700; }
.trip-cover .cap span { font-size: 13px; }
.trip-cover .stamp { position: absolute; right: 18px; bottom: 16px; z-index: 1; }

/* ───────── 문서 탭 ───────── */

.doc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 22px 0;
  padding: 16px 20px;
  border: 1px solid var(--a-bd);
  border-radius: 18px;
  background: var(--a-sf);
  font-size: 14px;
  color: var(--a-sub);
}
.doc-head b { flex: 1; font-weight: 400; }
.doc-head .add { color: var(--a-pri); font-weight: 700; }
.doc-group { margin: 18px 22px 0; font-size: 13px; font-weight: 600; color: var(--a-sub); }
.doc-row { display: flex; align-items: center; gap: 14px; margin: 10px 22px 0; }
.doc-row .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--a-fld);
  color: var(--a-sub);
}
.doc-row .ic .a-ico { width: 20px; height: 20px; }
.doc-row strong { flex: 1; font-size: 16px; font-weight: 600; }
.doc-row time { font-size: 13px; color: var(--a-sub); }
.doc-row .chev { width: 16px; height: 16px; color: var(--a-sub); }

/* ───────── 지출 탭 ───────── */

.receipt {
  position: relative;
  margin: 16px 22px 0;
  padding: 18px 22px 30px;
  background: var(--a-sf);
  border: 1px solid var(--a-bd);
  border-bottom: 0;
  /* 영수증 톱니 끝 */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 9px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 9px repeat-x;
}
.receipt .row1 { display: flex; justify-content: space-between; font-size: 17px; color: var(--a-sub); }
.receipt .row1 b { font-family: var(--font-body); font-size: 14px; color: var(--a-pri); }
.receipt .total { margin: 6px 0 4px; font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.receipt .sub { font-size: 13px; color: var(--a-sub); }
.bars {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  align-items: end;
  gap: 7px;
  height: 64px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--a-bd);
}
.bars i { display: block; height: var(--h); border-radius: 3px; background: var(--a-fld); transform-origin: bottom; }
.bars i.sel { background: var(--a-pri); }
.bar-labels { display: grid; grid-template-columns: repeat(11, 1fr); gap: 7px; margin-top: 6px; font-size: 11px; text-align: center; color: var(--a-sub); }
.filters { display: flex; gap: 22px; margin: 18px 24px 0; font-size: 14px; color: var(--a-sub); }
.ledger-day { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 22px 6px; }
.ledger-day strong { font-family: var(--font-serif); font-size: 19px; font-weight: 400; }
.ledger-day strong small { font-family: var(--font-body); font-size: 11px; color: var(--a-sub); margin-left: 4px; }
.ledger-day span { font-size: 13px; color: var(--a-sub); }
.ledger { display: grid; grid-template-columns: 10px auto 1fr auto; column-gap: 10px; align-items: baseline; margin: 0 22px; }
.ledger .dot { width: 7px; height: 7px; border-radius: 2px; align-self: center; }
.ledger .nm { font-size: 16px; }
.ledger .lead { border-bottom: 1.5px dotted var(--a-ic); transform: translateY(-4px); }
.ledger .amt { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger .note { grid-column: 2 / -1; margin-bottom: 12px; font-size: 12px; color: var(--a-sub); }
.ledger .note em { font-style: normal; color: var(--a-pri); }

/* ───────── 리포트 화면 ───────── */

.rep-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 0; }
.rep-top h3 { margin: 0; font-size: 20px; }
.rep-month { margin: 16px 0 0; text-align: center; font-size: 19px; color: var(--a-sub); }
.rep-month span { margin: 0 18px; color: var(--a-tx); }
.rep-sentence { margin: 18px 22px 0; font-size: 22px; line-height: 1.5; }
.rep-section { margin: 22px 22px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 6px 9px;
  border: 1px solid color-mix(in srgb, var(--a-pri) 22%, var(--a-bd));
  border-radius: 20px;
  background: color-mix(in srgb, var(--a-pri) 9%, var(--a-bg));
  font-size: 13px;
  font-weight: 600;
  color: var(--a-sub);
}
.chip .a-ico { width: 14px; height: 14px; color: var(--a-pri); stroke-width: 2; }
.mood-bars { display: grid; gap: 9px; margin-top: 12px; }
.mood-bar { display: grid; grid-template-columns: 26px 64px 1fr 24px; align-items: center; gap: 6px; font-size: 13px; color: var(--a-sub); }
.mood-bar .e { font-size: 18px; }
.mood-bar .track { height: 10px; border-radius: 5px; background: var(--a-fld); overflow: hidden; }
.mood-bar .track i { display: block; height: 100%; width: var(--w); border-radius: 5px; background: var(--a-pri); transform-origin: left; }
.mood-bar b { font-weight: 600; text-align: right; color: var(--a-tx); }

/* ───────── 화면이 켜질 때(.is-on) 움직임 ─────────
   움직임이 없을 때의 모습이 완성된 모습이다. .is-on 이 붙으면 처음부터 다시 그린다. */

@media (prefers-reduced-motion: no-preference) {
  .is-on .cal-cell img,
  .is-on .cal-cell .mood { animation: pop 0.5s cubic-bezier(0.3, 1.5, 0.6, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms + 150ms); }
  .is-on .cal-band { animation: draw-x 0.7s ease-out backwards 0.7s; transform-origin: left; }
  .is-on .cal-band.end { animation-delay: 1.3s; }
  .is-on .hl { animation: highlight 0.8s ease-out backwards 0.9s; }
  .is-on .diary-photos .pola { animation: drop 0.7s cubic-bezier(0.2, 1.2, 0.5, 1) backwards; }
  .is-on .diary-photos .pola:last-child { animation-delay: 0.15s; }
  .is-on .diary-scroll { animation: peek 9s ease-in-out 2.4s infinite; }
  .is-on .trip-card { animation: rise 0.6s ease-out backwards; animation-delay: calc(var(--i, 0) * 120ms); }
  .is-on .trip-card .stamp,
  .is-on .trip-cover .stamp { animation: thump 0.5s cubic-bezier(0.3, 1.6, 0.6, 1) backwards; animation-delay: calc(var(--i, 0) * 120ms + 400ms); }
  .is-on .doc-row { animation: rise 0.5s ease-out backwards; animation-delay: calc(var(--i, 0) * 80ms + 100ms); }
  .is-on .bars i { animation: grow-y 0.6s ease-out backwards; animation-delay: calc(var(--i, 0) * 50ms + 200ms); }
  .is-on .chip { animation: pop 0.4s ease-out backwards; animation-delay: calc(var(--i, 0) * 40ms + 300ms); }
  .is-on .mood-bar .track i { animation: draw-x 0.8s ease-out backwards 0.6s; }
  .is-on .rep-scroll { animation: peek 10s ease-in-out 2.4s infinite; }
}

@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) rotate(-8deg); } }
@keyframes thump { from { opacity: 0; transform: scale(1.8) rotate(-30deg); } }
@keyframes highlight { from { background-size: 0 100%; } }
@keyframes peek {
  0%, 18% { transform: translateY(0); }
  45%, 70% { transform: translateY(var(--peek, -300px)); }
  100% { transform: translateY(0); }
}
