/* ==========================================================================
   Export page — live export journey (scroll-driven)
   ========================================================================== */
.journey { padding: clamp(56px, 7vw, 100px) 0 clamp(40px, 5vw, 80px); position: relative; }
.journey__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

/* ---------- Left: narrative steps ---------- */
.journey__intro { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.journey__intro h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); line-height: 1.08; margin-bottom: 16px; }
.journey__intro p { max-width: 460px; }
.journey__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.journey__hint span { position: relative; width: 1px; height: 36px; background: var(--line-2); overflow: hidden; }
.journey__hint span::after { content: ''; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--gold); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { to { top: 36px; } }

.jstep { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease); }
.jstep.is-active { opacity: 1; }
.jstep:last-child { min-height: 150vh; justify-content: flex-start; padding-top: 28vh; }
.jstep__num { display: inline-flex; align-items: baseline; gap: 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.jstep__num b { font-family: var(--serif); font-size: 2.4rem; letter-spacing: 0; color: var(--gold); font-weight: 500; line-height: 1; }
.jstep h3 { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 500; }
.jstep p { color: var(--text-2); max-width: 460px; }
.jstep ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); }
.jstep li { display: inline-flex; align-items: center; gap: 6px; }
.jstep li .ic { color: var(--gold); }

/* ---------- Right: sticky stage ---------- */
.journey__stage-wrap { position: relative; height: 100%; }
.stage {
  position: sticky; top: 100px; height: min(620px, calc(100vh - 124px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.stage__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.stage__order b { color: var(--text); font-weight: 600; }
.stage__live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 6px; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.stage__rail { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.stage__rail span { display: block; width: 26px; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; position: relative; }
.stage__rail li.is-done span { background: var(--gold); }
.stage__rail li.is-active span::after { content: ''; position: absolute; inset: 0; background: var(--gold); animation: railFill 1.2s var(--ease) both; }
@keyframes railFill { from { transform: translateX(-100%); } }

.stage__scenes { position: relative; flex: 1; min-height: 0; }
.scene {
  position: absolute; inset: 0; padding: 22px; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.985);
  transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s linear .55s;
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* staggered lines inside documents */
.scene.is-active .ln { animation: lnIn .5s var(--ease) both; animation-delay: calc(.3s + var(--i, 0) * .17s); }
@keyframes lnIn { from { opacity: 0; transform: translateY(6px); } }

/* Paper documents look like paper in both themes */
.paper {
  position: relative; width: 100%; max-width: 480px; padding: 22px 24px; border-radius: 4px;
  background: #fffdf8; color: #1d1a14; font-size: .8rem; line-height: 1.5;
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 2px 0 -1px #f3efe6, 0 3px 1px -1px rgba(0,0,0,.05), 0 26px 40px -26px rgba(0,0,0,.55);
}
.paper small { color: #7a7266; display: block; font-size: .72rem; }
.paper__head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1.5px solid #1d1a14; }
.paper__brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.paper__brand em { color: #9a7330; }
.paper__right { text-align: right; }
.paper__right b { letter-spacing: .12em; font-size: .78rem; }

/* ---------- 1 · Inquiry ---------- */
.mail { width: 100%; max-width: 480px; padding: 18px 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 24px 40px -30px rgba(0,0,0,.6); }
.mail__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mail__head b { display: block; font-size: .9rem; }
.mail__head small { color: var(--muted); font-size: .75rem; }
.mail__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); color: var(--gold); flex: none; }
.mail__chip { margin-left: auto; font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); }
.mail__row { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.mail__row span { color: var(--muted); font-weight: 400; margin-right: 10px; }
.mail__body { min-height: 7.2em; margin: 12px 0; font-size: .9rem; color: var(--text-2); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scene.is-typed .caret { display: none; }
.mail__auto { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); font-size: .82rem; }
.mail__auto .ic { color: #16a34a; margin-top: 2px; }
.mail__auto b { display: block; }
.mail__auto small { color: var(--muted); }
.js .scene--inquiry .mail__auto { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.js .scene--inquiry.is-typed .mail__auto { opacity: 1; transform: none; }

/* ---------- 2 · Selection ---------- */
.scene--select { grid-template-rows: minmax(0, 1fr) auto; place-items: stretch; gap: 14px; }
.lightbox { position: relative; border-radius: 14px; overflow: hidden; background: #cfd0d2; min-height: 0; }
.lightbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1.2s ease; }
.lightbox.is-warm video { filter: sepia(.32) saturate(1.25) hue-rotate(-12deg) brightness(1.03); }
.lightbox__rec { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 6px; background: rgba(15,15,15,.72); color: #fff; font: 600 .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.lightbox__rec i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: blink 1.2s steps(1) infinite; }
.lightbox__light { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: rgba(15,15,15,.6); }
.lightbox__light span { padding: 4px 9px; border-radius: 6px; font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.6); transition: background .4s, color .4s; }
.lightbox__light span.is-on { background: #fff; color: #111; }
.instruments { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.meter { padding: 10px 14px 10px; border-radius: 12px; background: #2a2d2a; border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); color: #cfd6c4; }
.meter__label { display: flex; justify-content: space-between; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #9aa190; }
.meter__label em { font-style: normal; color: #f59e0b; }
.meter__label em.is-stable { color: #4ade80; }
.lcd {
  display: block; margin: 6px 0 2px; padding: 6px 10px; border-radius: 6px;
  background: linear-gradient(180deg, #b7c4a3, #a9b893); color: #1b2414; box-shadow: inset 0 2px 4px rgba(0,0,0,.35);
  font: 600 1.8rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; text-align: right; font-variant-numeric: tabular-nums;
}
.lcd--sm { font-size: 1.1rem; padding: 12px 10px; }
.meter small { font-size: .7rem; color: #9aa190; }

/* ---------- 3 · Invoice ---------- */
.invoice__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-bottom: 14px; }
.invoice__meta span { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #8b8378; }
.invoice__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.invoice__table th { text-align: left; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #8b8378; font-weight: 600; padding: 6px 4px; border-bottom: 1px solid #ddd5c6; }
.invoice__table td { padding: 8px 4px; border-bottom: 1px dashed #e5ded0; vertical-align: top; }
.invoice__table th:nth-child(n+2), .invoice__table td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.invoice__table tfoot td { border-bottom: 0; border-top: 1.5px solid #1d1a14; font-weight: 700; font-size: .9rem; padding-top: 10px; }
.stamp {
  position: absolute; right: 22px; bottom: 18px; padding: 4px 14px; border: 3px double #b42318; border-radius: 6px;
  color: #b42318; font: 800 1.1rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; transform: rotate(-11deg); opacity: .82; mix-blend-mode: multiply;
}
.scene.is-active .stamp { animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1) both 2.9s; }
@keyframes stamp { from { opacity: 0; transform: rotate(-11deg) scale(2.4); } }

.invoice__foot { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 14px; }
.invoice__foot > small { font-size: .64rem; line-height: 1.5; }
.invoice__sign { text-align: center; min-width: 150px; }
.invoice__sign span { display: block; font-size: .62rem; color: #7a7266; }
.invoice__sign svg { width: 120px; height: 30px; margin: 2px auto 0; }
.invoice__sign small { border-top: 1px solid #1d1a14; padding-top: 3px; margin-top: 2px; }
.scene.is-active .invoice__sign path { stroke-dasharray: 260; animation: sign 1.1s ease-out both 1.7s; }
@keyframes sign { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

/* ---------- 4 · Payment ---------- */
.bank { width: 100%; max-width: 460px; padding: 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 24px 40px -30px rgba(0,0,0,.6); }
.bank__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.bank__head span { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.bank__head b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.bank__track { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 16px; }
.bank__track::before, .bank__track::after { content: ''; position: absolute; left: 8px; top: 9px; bottom: 9px; width: 2px; background: var(--line-2); }
.bank__track::after { background: var(--gold); transform-origin: top; }
.scene.is-active .bank__track::after { animation: trackFill 2.4s linear both .4s; }
@keyframes trackFill { from { transform: scaleY(0); } }
.bank__track li { position: relative; display: flex; gap: 14px; align-items: flex-start; z-index: 1; }
.bank__track b { display: block; font-size: .88rem; }
.bank__track small { color: var(--muted); font-size: .76rem; }
.bank__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.scene.is-active .bank__dot { animation: dotOn .3s both; animation-delay: calc(.4s + var(--i) * .8s); }
@keyframes dotOn { from { background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); } }
.scene.is-active .bank__track li > div { animation: lnIn .4s both; animation-delay: calc(.4s + var(--i) * .8s); }
.bank__uetr { margin-top: 16px; font-size: .72rem; color: var(--muted); display: flex; gap: 8px; }
.bank__uetr code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); word-break: break-all; }
.bank__ok { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); font-size: .85rem; font-weight: 600; }
.bank__ok .ic { color: #16a34a; }
.scene.is-active .bank__ok { animation: lnIn .5s var(--ease) both 3.1s; }

/* ---------- 5 · Report & parcel ---------- */
.scene--pack { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; }
.report { padding: 18px 18px 14px; font-size: .74rem; max-width: 330px; justify-self: end; }
.report__head { padding-right: 64px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1.5px solid #1d1a14; }
.report__head b { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.report__img { position: absolute; top: 14px; right: 14px; width: 54px; height: 54px; border-radius: 6px; object-fit: cover; border: 1px solid #e6dfd1; }
.report dl { margin: 0; display: grid; }
.report dl div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px dotted #ddd5c6; }
.report dt { color: #8b8378; text-transform: uppercase; font-size: .6rem; letter-spacing: .1em; padding-top: 2px; }
.report dd { margin: 0; font-weight: 600; }

.parcel { position: relative; width: 220px; height: 280px; display: grid; place-items: center; }
.parcel__paper { position: relative; width: 120px; height: 120px; perspective: 520px; margin-top: -30px; }
.parcel__liner { position: absolute; inset: 0; display: grid; place-items: center; background: #d8e4f3; border: 1px solid #bfd0e6; box-shadow: 0 16px 26px -16px rgba(0,0,0,.6); }
.parcel__liner img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.flap { position: absolute; background: #fbfaf6; border: 1px solid #e3dccd; box-shadow: inset 0 0 12px rgba(0,0,0,.03); }
.flap--l { right: 100%; top: 0; width: 60px; height: 120px; transform-origin: right center; transform: rotateY(180deg); }
.flap--r { left: 100%; top: 0; width: 60px; height: 120px; transform-origin: left center; transform: rotateY(-180deg); }
.flap--b { top: 100%; left: 0; width: 120px; height: 60px; transform-origin: center top; transform: rotateX(180deg); }
.flap--t { bottom: 100%; left: 0; width: 120px; height: 60px; transform-origin: center bottom; transform: rotateX(-180deg); background: #f7f5ef; }
.scene.is-active .flap { animation: .7s cubic-bezier(.5, 0, .2, 1) both; }
.scene.is-active .flap--l { animation-name: foldL; animation-delay: 1.5s; }
.scene.is-active .flap--r { animation-name: foldR; animation-delay: 2.05s; }
.scene.is-active .flap--b { animation-name: foldB; animation-delay: 2.6s; }
.scene.is-active .flap--t { animation-name: foldT; animation-delay: 3.15s; }
@keyframes foldL { from { transform: rotateY(0); } }
@keyframes foldR { from { transform: rotateY(0); } }
@keyframes foldB { from { transform: rotateX(0); } }
@keyframes foldT { from { transform: rotateX(0); } }
.parcel__label {
  position: absolute; left: 50%; top: 168px; width: 150px; transform: translateX(-50%) rotate(-2deg);
  padding: 8px 10px; background: #fff; color: #1d1a14; border: 1px solid #ddd5c6; border-radius: 3px;
  font: .7rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 8px 14px -10px rgba(0,0,0,.6);
}
.parcel__label b { display: block; font-size: .82rem; }
.parcel__label span, .parcel__label small { display: block; color: #5b554b; }
.scene.is-active .parcel__label { animation: labelIn .5s var(--ease) both 3.9s; }
@keyframes labelIn { from { opacity: 0; transform: translateX(-50%) translateY(16px) rotate(4deg); } }
.parcel__seal {
  position: absolute; left: calc(50% + 34px); top: 46px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9534f, #8f1d1a 70%); color: #f6d5cf; font: 700 .8rem/1 var(--serif); letter-spacing: .05em;
  box-shadow: 0 4px 10px rgba(0,0,0,.35), inset 0 0 0 3px rgba(0,0,0,.12);
}
.scene.is-active .parcel__seal { animation: sealIn .4s cubic-bezier(.2, 1.4, .4, 1) both 4.4s; }
@keyframes sealIn { from { opacity: 0; transform: scale(1.9) rotate(-30deg); } }

/* ---------- 6 · Shipping ---------- */
.scene--ship { grid-template-rows: auto auto minmax(0, 1fr); place-items: stretch; gap: 12px; }
.ship__dest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ship__dest span { margin-right: 4px; }
.ship__dest button { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: .76rem; cursor: pointer; transition: all .2s; }
.ship__dest button:hover { border-color: var(--gold); }
.ship__dest button.is-on { background: var(--gold); color: #1a1408; border-color: var(--gold); font-weight: 600; }
.ship__map { border-radius: 14px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.ship__map svg { width: 100%; height: auto; display: block; }
.grat line { stroke: var(--line); stroke-width: 1; }
.grat text { fill: var(--muted); font-size: 8px; font-family: ui-monospace, Menlo, monospace; opacity: .7; }
.route { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.route--bg { stroke: var(--line-2); stroke-dasharray: 3 5; }
.city circle { fill: var(--muted); }
.city circle.halo { fill: none; stroke: none; }
.city.is-origin circle, .city.is-dest circle { fill: var(--gold); }
.city.is-origin circle.halo, .city.is-dest circle.halo { fill: none; stroke: var(--gold); opacity: .5; }
.city text { fill: var(--text-2); font-size: 10px; font-family: var(--sans); font-weight: 600; }
.city:not(.is-origin):not(.is-dest) text { fill: var(--muted); font-weight: 500; font-size: 9px; opacity: .7; }
.city:not(.is-origin):not(.is-dest) circle { opacity: .6; }
.plane path { fill: var(--gold); stroke: var(--bg); stroke-width: 1; }
.ship__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ship__stats div { padding: 8px 12px; border-right: 1px solid var(--line); }
.ship__stats div:last-child { border-right: 0; }
.ship__stats span { display: block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ship__stats b { font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.track { list-style: none; margin: 0; padding: 0 4px 0 0; overflow-y: auto; display: grid; align-content: start; gap: 2px; min-height: 0; }
.track li { display: grid; grid-template-columns: 92px 14px 1fr; gap: 10px; align-items: center; padding: 4px 0; font-size: .78rem; opacity: .3; transition: opacity .4s; }
.track li.is-on { opacity: 1; }
.track li time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .72rem; }
.track li i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); justify-self: center; }
.track li.is-on i { background: var(--gold); border-color: var(--gold); }
.track li.is-last { font-weight: 700; }
.track li.is-last i { box-shadow: 0 0 0 4px rgba(212, 175, 106, .25); }
.track li.is-delivered i { background: #22c55e; border-color: #22c55e; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .journey__grid { display: flex; flex-direction: column; gap: 0; }
  .journey__stage-wrap { order: -1; position: sticky; top: 78px; z-index: 5; height: auto; padding-bottom: 10px; background: var(--bg); }
  .stage { position: relative; top: 0; height: 60vh; min-height: 400px; border-radius: 16px; }
  .journey__intro { min-height: 40vh; padding-top: 24px; }
  .jstep { min-height: 70vh; justify-content: flex-start; padding-top: 6vh; }
  .jstep:last-child { min-height: 140vh; padding-top: 6vh; }
  .scene { padding: 14px; }
  .paper { padding: 14px 16px; font-size: .72rem; }
  .scene--pack { grid-template-columns: 1fr; }
  .scene--pack .report { display: none; }
  .instruments { grid-template-columns: 1fr 1fr; }
  .lcd { font-size: 1.3rem; } .lcd--sm { font-size: .78rem; padding: 9px 8px; }
  .stage__rail span { width: 16px; }
  .stage__order { font-size: .72rem; }
  .ship__stats { grid-template-columns: repeat(2, 1fr); }
  .ship__stats div:nth-child(2) { border-right: 0; }
  .track li { grid-template-columns: 76px 12px 1fr; font-size: .72rem; }
  .invoice__table small { display: none; }
  .invoice__foot { display: none; }
  .grat text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jstep { opacity: 1; }
}

/* ---------- v2 shipping: real dotted world map + tracker ---------- */
.ship__map { position: relative; background: var(--map-bg); border-color: var(--line-2); }
.ship__map svg { background: var(--map-bg); }
.land { fill: none; stroke: var(--map-dot); stroke-width: 2.7; stroke-linecap: round; }
.net path { fill: none; stroke: var(--gold); stroke-opacity: .16; stroke-width: 1; stroke-dasharray: 2 4; }
.net path.is-hidden { display: none; }
.route { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.route--bg { stroke: var(--gold); stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: 3 4; }
.route--glow { stroke-width: 7; stroke-opacity: .45; }
.city .cdot { fill: var(--text-2); }
.city .pulse { fill: none; stroke: none; }
.city text { font: 600 9.5px/1 var(--sans); fill: var(--muted); paint-order: stroke; stroke: var(--map-bg); stroke-width: 3px; stroke-linejoin: round; }
.city.is-origin .cdot, .city.is-dest .cdot { fill: var(--gold); }
.city.is-origin text, .city.is-dest text { fill: var(--text); font-size: 10.5px; }
.city.is-origin .pulse, .city.is-dest .pulse { stroke: var(--gold); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: mapPulse 2.2s ease-out infinite; }
.city.is-dest .pulse { animation-delay: 1.1s; }
@keyframes mapPulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.hub { fill: var(--gold); }
.plane path { fill: #fff; stroke: #1a1408; stroke-width: .8; }
:root[data-theme="light"] .plane path { fill: #1d1a14; stroke: #fff; }
.plane { transition: transform .12s linear; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }

.ship__hud { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.ship__status, .ship__awb { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; font-size: .72rem; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.ship__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ship__status.is-flying i { background: #38bdf8; animation: blink 1s steps(1) infinite; }
.ship__status.is-done i { background: #22c55e; }
.ship__status.is-done { border-color: rgba(34, 197, 94, .5); }
.ship__awb { color: var(--muted); }
.ship__awb b { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }

.ship__legs { display: grid; grid-template-columns: auto 1fr auto 3fr auto auto; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); font: 600 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); }
.leg { position: relative; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.leg--road { background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 7px); }
.leg b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); border-radius: 3px; }
.ship__legs em { font-style: normal; color: var(--gold); min-width: 3.2em; text-align: right; }

.track { position: relative; }
.track li { grid-template-columns: 88px 14px 1fr; align-items: start; padding: 5px 0; }
.track li time { padding-top: 1px; }
.track li i { margin-top: 3px; }
.track li span small { display: block; color: var(--muted); font-size: .7rem; font-weight: 400; }
@media (max-width: 960px) {
  .ship__awb { display: none; }
  .track li { grid-template-columns: 74px 12px 1fr; }
}
/* stats float over the map (bottom-left), like a flight tracker */
.ship__map .ship__stats {
  position: absolute; left: 10px; bottom: 44px; z-index: 2; display: flex; gap: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px);
}
.ship__map .ship__stats div { padding: 5px 10px; border-right: 1px solid var(--line); }
.ship__map .ship__stats div:first-child { display: none; }
.ship__map .ship__stats b { font-size: .74rem; }
.ship__map .ship__stats span { font-size: .55rem; }
@media (max-width: 960px) {
  .ship__map .ship__stats { grid-template-columns: none; }
  .ship__map .ship__stats div:nth-child(2) { display: none; }
}
