/* ================= 第七幕 奔赴（地图导航） ================= */
.jr-stage { background: transparent; }
.jr-view { position: absolute; inset: 0; overflow: hidden; }
.jr-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.w-region { width: 2400px; height: 3444px; }
.w-city { width: 1500px; height: 2700px; opacity: 0; visibility: hidden; }
.jr-world img { width: 100%; height: 100%; }
.jr-tint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; }
.jr-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.jr-layer { position: absolute; inset: 0; pointer-events: none; }
.jr-fog { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }

/* markers */
.mk { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: opacity .3s; }
.mk.city i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff8ec; border: 3px solid var(--ink); box-shadow: 0 0 0 3px rgba(255, 248, 236, .35); }
.mk.city span { position: absolute; left: 12px; top: -12px; white-space: nowrap; font-size: 15px; color: #fff8ec;
  text-shadow: 1.6px 0 var(--ink), -1.6px 0 var(--ink), 0 1.6px var(--ink), 0 -1.6px var(--ink), 1.1px 1.1px var(--ink), -1.1px -1.1px var(--ink), 1.1px -1.1px var(--ink), -1.1px 1.1px var(--ink); }
.mk.city.start i, .mk.city.end i { width: 20px; height: 20px; left: -10px; top: -10px; background: var(--gold); }
.mk.city.end i { background: var(--pink); }
.mk.city.start span, .mk.city.end span { font-size: 19px; left: 16px; top: -15px; color: #fff2c4; }
.mk.city.other i { width: 10px; height: 10px; left: -5px; top: -5px; border-width: 2.5px; background: rgba(255, 248, 236, .7); }
.mk.city.other span { font-size: 13px; opacity: .8; left: 9px; top: -11px; }
.mk.spot img { position: absolute; width: 58px; height: 58px; left: -29px; top: -54px; filter: drop-shadow(0 4px 0 rgba(42, 26, 18, .25)); }
.mk.spot span { position: absolute; top: 6px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--ink); background: var(--cream); padding: 1px 9px; border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 2px 0 rgba(42, 26, 18, .35); transition: background .3s; }
.mk.spot.station img { width: 66px; height: 66px; left: -33px; top: -62px; }
.mk.spot.home img { width: 64px; height: 64px; left: -32px; top: -60px; }
.mk.spot.hl img { width: 92px; height: 92px; left: -46px; top: -86px; filter: drop-shadow(0 0 18px rgba(255, 220, 130, .9)) drop-shadow(0 4px 0 rgba(42, 26, 18, .25)); transition: filter .6s; }
.mk.spot.hl span { background: var(--gold3); font-size: 14px; }
.mk.spot.reached span { background: var(--pink); }
.mk.spot.pop img { animation: reach .6s var(--ease-pop); }
@keyframes reach { 0% { scale: .7; } 60% { scale: 1.18; } 100% { scale: 1; } }
.hl-on .mk.spot.hl img { filter: drop-shadow(0 0 26px rgba(255, 220, 130, 1)) drop-shadow(0 0 6px rgba(255, 240, 200, 1)); }

/* actors: a small dot sits exactly on the route, the avatar pin stands right on top of it */
.actor { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: opacity .35s; z-index: 2; }
.actor .dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.boy .dot { background: var(--gold); }
.girl .dot { background: var(--pink); }
.couple .dot { background: #ff5d93; }
.av-ring { position: absolute; width: 50px; height: 50px; left: -25px; top: -70px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--ink), 0 6px 0 rgba(42, 26, 18, .3); overflow: hidden; background: #fff; }
.av-ring img { width: 100%; height: 100%; object-fit: cover; }
.actor.boy::before, .actor.girl::before { content: ''; position: absolute; left: -7px; top: -19px; border: 7px solid transparent; border-top: 11px solid var(--ink); }
.av-label { position: absolute; left: 0; top: -98px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--ink); background: var(--gold3); border: 2px solid var(--ink); border-radius: 99px; padding: 0 9px; }
.girl .av-label { background: var(--pink3); }
.boy .vehicle { position: absolute; width: 40px; height: 40px; left: 18px; top: -46px; opacity: 0; transition: opacity .3s; }
.boy.moving .vehicle { opacity: 1; animation: bob .5s ease-in-out infinite alternate; }
.boy.moving .av-ring { animation: bob .5s ease-in-out infinite alternate; }
.girl.waiting .av-ring { animation: wait-pulse 1.6s ease-out infinite; }
@keyframes wait-pulse { 0% { box-shadow: 0 0 0 3px var(--ink), 0 0 0 3px rgba(255, 158, 196, .8); } 100% { box-shadow: 0 0 0 3px var(--ink), 0 0 0 20px rgba(255, 158, 196, 0); } }
.girl.walking .av-ring { animation: bob .4s ease-in-out infinite alternate; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -5px; } }
.couple .cp-pair { position: absolute; left: -44px; top: -74px; width: 88px; height: 56px; }
.couple .cp-pair::after { content: ''; position: absolute; left: 37px; top: 52px; border: 7px solid transparent; border-top: 11px solid var(--ink); }
.couple .av-ring { top: 0; }
.couple .av-ring:first-child { left: 0; }
.couple .av-ring:nth-child(2) { left: 36px; }
.cp-heart { position: absolute; left: 31px; top: -22px; width: 26px; height: 26px; background: url(../assets/art/heart.webp) center / contain no-repeat; animation: hpbeat 1.2s ease-in-out infinite; }
.couple.walking .cp-pair { animation: bob .36s ease-in-out infinite alternate; }
.couple.pop .cp-pair { animation: pop-in .7s var(--ease-pop); }
@keyframes pop-in { 0% { scale: .4; } 60% { scale: 1.25; } 100% { scale: 1; } }
.petmini img { position: absolute; width: 40px; height: 40px; left: -20px; top: -36px; }
.petmini.walking img { animation: bob .3s ease-in-out infinite alternate; }

/* overlays */
.jr-head { position: absolute; top: calc(9% + var(--st)); left: 50%; transform: translateX(-50%); width: min(92vw, 460px); padding: 0 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 7; pointer-events: none; }
.jr-intro { font-size: clamp(16px, 4.6vw, 21px); line-height: 1.8; }
.jr-date { position: absolute; z-index: 7; top: calc(14px + var(--st)); left: 12px; display: flex; align-items: center; gap: 7px; padding: 4px 13px 4px 5px; border-radius: 99px; background: var(--cream); border: 2.5px solid var(--ink); color: var(--ink); box-shadow: 0 3px 0 rgba(42, 26, 18, .35); opacity: 0; pointer-events: none; }
.jd-cal { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 26px; height: 26px; border: 2.5px solid var(--ink); border-radius: 6px; background: #fff; overflow: hidden; font-style: normal; }
.jd-cal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--pink2); border-bottom: 2px solid var(--ink); }
.jd-cal b { font-size: 12px; line-height: 1; padding-bottom: 2px; font-weight: 700; }
.jr-date span { font-size: 15px; white-space: nowrap; }
.jr-note { position: absolute; z-index: 7; top: calc(10% + var(--st)); left: 50%; width: max-content; max-width: min(86vw, 380px); padding: 8px 16px; display: flex; align-items: center; gap: 12px; transform: translate(-50%, -10px) scale(.92); opacity: 0; transition: all .45s var(--ease-pop); pointer-events: none; }
.jr-note.on { opacity: 1; transform: translate(-50%, 0); }
.jr-note.has-ph { padding-left: 10px; }
.jn-ph { flex: none; width: 74px; padding: 4px 4px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 3px; transform: rotate(-4deg); box-shadow: 0 3px 0 rgba(42, 26, 18, .25); }
.jn-ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.jn-tx { display: flex; flex-direction: column; align-items: center; text-align: center; }
.has-ph .jn-tx { align-items: flex-start; text-align: left; }
.jn-tx b { font-size: 13px; font-weight: normal; color: var(--rose); }
.jn-tx span { font-size: 15.5px; line-height: 1.55; }
.jr-hud { position: absolute; z-index: 7; left: 12px; right: 12px; bottom: calc(14px + var(--sb)); max-width: 480px; margin: 0 auto; padding: 10px 14px 12px; transition: opacity .35s, transform .35s; }
.jr-hud.hide { opacity: 0 !important; transform: translateY(30px); pointer-events: none; }
.jr-hud.dim { opacity: 0 !important; transform: translateY(40px); pointer-events: none; }
.hd-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.hd-row + .hd-row { border-top: 2px dashed rgba(42, 26, 18, .2); }
.hd-row img { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--ink); flex: none; }
.hd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.hd-main b { font-weight: normal; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-main span { font-size: 12.5px; color: var(--ink2); }
.hd-main em { font-style: normal; }
.hd-km { display: flex; align-items: baseline; gap: 2px; }
.hd-km b { font-size: 24px; color: var(--rose); min-width: 2.6em; text-align: right; }
.hd-km em { font-style: normal; font-size: 12px; color: var(--ink2); }
.hd-bar { position: relative; margin-top: 6px; height: 22px; border-radius: 99px; border: 2.5px solid var(--ink); background: rgba(255, 158, 196, .2); overflow: hidden; }
.hd-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--gold), var(--pink)); }
.hd-bar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--ink); }
.hd-done { display: flex; align-items: center; gap: 12px; }
.hd-done b { display: block; font-weight: normal; font-size: 18px; }
.hd-done span { font-size: 14px; color: var(--rose); }
.hd-pin { width: 40px; height: 40px; background: url(../assets/art/icon/pin.webp) center / contain no-repeat; animation: bob .6s ease-in-out infinite alternate; }
.hd-stop { display: flex; align-items: center; gap: 10px; }
.hs-n { font-size: 13px; color: #fff; background: var(--rose); padding: 0 10px; border-radius: 99px; border: 2px solid var(--ink); white-space: nowrap; }
.hd-stop b { font-weight: normal; font-size: 19px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-c { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.hd-dots { display: flex; gap: 6px; margin-top: 6px; }
.hd-dots i { flex: 1; height: 6px; border-radius: 3px; background: rgba(42, 26, 18, .15); }
.hd-dots i.done { background: var(--pink); }
.hd-dots i.on { background: var(--rose); }

/* memory cards: a little stack of polaroids per series */
.jr-cards { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.mcard { position: absolute; left: 50%; bottom: calc(16px + var(--sb)); width: min(92vw, 420px); display: flex; flex-direction: column; align-items: center; transform: translate(-50%, 60px) rotate(2deg); opacity: 0; transition: transform .55s var(--ease-pop), opacity .4s; pointer-events: none; }
.mcard.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mc-photos { position: relative; width: 84%; height: min(calc(var(--vh) * 36), 380px); margin-bottom: -16px; z-index: 1; cursor: pointer; }
.mcard.hl .mc-photos { height: min(calc(var(--vh) * 40), 420px); width: 92%; }
.mc-ph { position: absolute; inset: 0; margin: 0; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transform: rotate(var(--r)) translateY(12px) scale(.94); transition: opacity .4s, transform .5s var(--ease-pop); }
.mc-ph.on { opacity: 1; transform: rotate(var(--r)); }
/* the polaroid is as wide as its photo; the caption never widens it */
.mc-pol { position: relative; display: inline-block; max-width: 100%; padding: 7px 7px 0; background: #fff; border: 2.5px solid var(--ink); border-radius: 4px; box-shadow: 0 10px 24px rgba(10, 6, 40, .35); }
.mc-pol.nocap { padding-bottom: 22px; }
.mc-pol img { display: block; max-width: 100%; max-height: calc(min(calc(var(--vh) * 36), 380px) - 50px); object-fit: contain; }
.mcard.hl .mc-pol img { max-height: calc(min(calc(var(--vh) * 40), 420px) - 50px); }
.mc-cap { display: block; width: 0; min-width: 100%; padding: 6px 4px 8px; font-size: 14px; line-height: 1.3; color: #3a2418; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-pol .tape { position: absolute; top: -9px; left: 50%; width: 68px; height: 22px; margin-left: -34px; background: rgba(255, 211, 107, .8); transform: rotate(-4deg); border: 1.5px solid rgba(42, 26, 18, .25); }
.mc-ph:nth-child(2n) .tape { background: rgba(255, 158, 196, .78); transform: rotate(4deg); }
.mc-body { width: 100%; padding: 22px 16px 14px; }
.mc-top { display: flex; align-items: center; gap: 10px; }
.mc-tag { font-size: 13px; color: #fff; background: var(--rose); border-radius: 99px; padding: 0 10px; border: 2px solid var(--ink); white-space: nowrap; }
.mc-top b { flex: 1; min-width: 0; font-weight: normal; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-n { font-size: 13px; color: var(--ink2); }
.mc-text { margin-top: 6px; font-size: 15.5px; line-height: 1.6; }
.mc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.mc-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(42, 26, 18, .18); transition: all .3s; }
.mc-dots i.on { width: 20px; border-radius: 4px; background: var(--pink2); }
.mcard.hl .mc-body { background-color: #fff3d0; }
.mcard.meet .mc-tag { background: #e2456f; }
.mcard.last .mc-tag { background: #8d86c9; }
.jr-outro { position: absolute; z-index: 7; left: 20px; right: 20px; bottom: calc(18% + var(--sb)); text-align: center; font-size: clamp(16px, 4.6vw, 21px); line-height: 1.9; opacity: 0; pointer-events: none; }
