:root {
  color-scheme: light;
  --ivory: #F4F0E8;
  --paper: #FFFDF8;
  --ink: #13294B;
  --ink-2: #46546B;
  --ink-3: #8691A3;
  --line: #E3DCCF;
  --red: #F26B3A;
  --red-deep: #D24A1E;
  --gold: #E39B2D;
  --gold-soft: #FBE6C4;
  --sea: #2E7BC4;
  --ok: #2F8A6B;
  --skip: #9AA1AC;
  --serif: ui-serif, "New York", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --zh: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-1: 0 1px 2px rgba(28, 36, 48, .06), 0 4px 14px rgba(28, 36, 48, .06);
  --shadow-2: 0 2px 4px rgba(28, 36, 48, .06), 0 12px 32px rgba(28, 36, 48, .12);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.press { transition: transform 160ms var(--ease-out); }
.press:active { transform: scale(0.97); }

/* ---------- Lock ---------- */
.lock { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 80% at 50% 0%, #FDF6EA 0%, var(--ivory) 60%, #EFE6D6 100%); z-index: 50; }
.lock-in { width: min(360px, 100%); text-align: center; }
.lock .mark { width: 96px; height: 96px; margin: 0 auto 22px; filter: drop-shadow(0 14px 22px rgba(19, 41, 75, .25)); animation: float 6s ease-in-out infinite; }
.lock h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.lock p { color: var(--ink-2); margin: 0 0 26px; font-size: 15px; line-height: 1.5; }
.lock input { width: 100%; height: 54px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); font-size: 18px; text-align: center; letter-spacing: .04em; color: var(--ink); box-shadow: inset 0 1px 2px rgba(0,0,0,.04); outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.lock input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 134, 47, .15); }
.lock .btn-main { margin-top: 12px; width: 100%; }
.lock .err { color: var(--red); font-size: 14px; min-height: 20px; margin-top: 10px; }
.shake { animation: shake 360ms var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-8px) } 40% { transform: translateX(7px) } 60% { transform: translateX(-4px) } 80% { transform: translateX(2px) } }
@keyframes float { 50% { transform: translateY(-6px) } }

/* ---------- Buttons ---------- */
.btn-main { height: 52px; border-radius: 16px; background: linear-gradient(180deg, #FF8A5B, var(--red) 55%, var(--red-deep)); color: #fff; font-weight: 650; font-size: 17px; letter-spacing: .01em; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 18px rgba(210, 74, 30, .28); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-ghost { height: 52px; border-radius: 16px; background: #fff; color: var(--ink); font-weight: 650; font-size: 16px; border: 1.5px solid #E2D8C7; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-ghost svg { color: var(--red); }
.btn-main svg, .btn-soft svg, .btn-ghost svg { width: 19px; height: 19px; flex: 0 0 19px; }
.btn-soft { height: 44px; padding: 0 16px; border-radius: 14px; background: #F1EADD; color: var(--ink); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- App shell ---------- */
.app { padding-bottom: calc(92px + var(--safe-b)); }
.topbar { position: sticky; top: 0; z-index: 20; padding: calc(var(--safe-t) + 8px) 0 8px; background: rgba(247, 242, 233, .86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(230, 222, 208, .7); }
.brand { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 8px; }
.brand-l { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 28px; height: 28px; }
.brand b { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.offline-pill { font-size: 12px; font-weight: 600; color: var(--ok); background: #E4F1EB; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.offline-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.offline-pill.wait { color: var(--gold); background: var(--gold-soft); }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.dpill { flex: 0 0 auto; scroll-snap-align: center; width: 54px; padding: 7px 0 8px; border-radius: 16px; text-align: center; background: var(--paper); border: 1px solid var(--line); position: relative; transition: background 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.dpill .dw { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dpill .dn { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.dpill .dc { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.dpill .dot { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.dpill.done .dot { background: var(--ok); }
.dpill.today::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red); }
.dpill.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-2); }
.dpill.on .dw, .dpill.on .dc { color: rgba(255,255,255,.7); }
.dpill.sz:not(.on) .dc { color: var(--sea); }

/* ---------- Hero ---------- */
.hero { margin: 14px 14px 0; border-radius: 26px; overflow: hidden; position: relative; height: 252px; box-shadow: var(--shadow-2); isolation: isolate; transform: translateZ(0); }
.hero .art { position: absolute; inset: 0; }
.hero .art svg { width: 100%; height: 100%; display: block; }
.hero .art g[data-depth] { will-change: transform; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(18, 22, 32, .58) 100%); }
.hero .txt { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.hero .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; display: flex; gap: 8px; align-items: center; }
.hero .k .chip { background: rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 3px 8px; border-radius: 999px; letter-spacing: .08em; }
.hero h2 { font-family: var(--serif); font-size: 29px; line-height: 1.08; font-weight: 600; margin: 6px 0 4px; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.hero .sub { font-size: 14.5px; opacity: .92; }
.ring { position: absolute; top: 16px; left: 16px; width: 54px; height: 54px; }
.ring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .bg { stroke: rgba(255,255,255,.28); }
.ring .fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset 700ms var(--ease-out); }
.ring { filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.stamp { position: absolute; right: 14px; top: 12px; width: 92px; height: 92px; opacity: 0; transform: scale(1.6) rotate(-14deg); pointer-events: none; }
.stamp.show { animation: stamp 620ms var(--ease-out) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.7) rotate(-4deg) } 55% { opacity: 1; transform: scale(.94) rotate(-13deg) } 100% { opacity: .95; transform: scale(1) rotate(-12deg) } }

/* scene motion */
.wave { animation: drift linear infinite; }
@keyframes drift { to { transform: translateX(-50px) } }
.star { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25 } }
.win { animation: twinkle 4.5s ease-in-out infinite; }
.tw-light { animation: twinkle 1.6s ease-in-out infinite; }
.m-plane { animation: fly 16s linear infinite; }
@keyframes fly { 0% { transform: translate(-40px, 124px) rotate(-11deg) } 100% { transform: translate(440px, 34px) rotate(-11deg) } }
.m-lantern { animation: sway 4s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(4deg) } }
.m-birds { animation: birds 14s ease-in-out infinite; }
@keyframes birds { 50% { transform: translate(30px, -8px) } }
.m-boat { animation: boat 26s linear infinite; }
@keyframes boat { 0% { transform: translate(-60px, 196px) } 100% { transform: translate(430px, 196px) } }
.m-spark { animation: spark 2.6s ease-in-out infinite; }
@keyframes spark { 0%, 100% { transform: scale(.3); opacity: 0 } 50% { transform: scale(1); opacity: .95 } }
.m-fall { animation: fall 1.2s linear infinite; }
@keyframes fall { to { stroke-dashoffset: -22 } }
.m-conf { animation: conf linear infinite; }
@keyframes conf { 0% { transform: translateY(0) rotate(0) } 100% { transform: translateY(260px) rotate(540deg) } }
.sun { animation: breathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { transform: scale(1.06) } }

/* ---------- Now board ---------- */
.board { margin: 14px 14px 0; border-radius: 22px; background: var(--ink); color: #fff; padding: 16px 16px 14px; box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.board::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 100% 0%, rgba(242, 107, 58, .38), transparent 60%); pointer-events: none; }
.board .lbl { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); position: relative; }
.board .live { display: inline-flex; align-items: center; gap: 6px; color: #FF8A78; }
.board .live i { width: 7px; height: 7px; border-radius: 50%; background: #FF6B5A; box-shadow: 0 0 0 0 rgba(255,107,90,.6); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,107,90,0) } 100% { box-shadow: 0 0 0 0 rgba(255,107,90,0) } }
.board .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; position: relative; }
.board h3 { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin: 0; font-weight: 600; }
.board .zh { font-family: var(--zh); font-size: 14px; color: rgba(255,255,255,.7); margin-top: 3px; }
.flap { display: flex; gap: 3px; font-variant-numeric: tabular-nums; }
.flap b { display: grid; place-items: center; min-width: 26px; height: 36px; padding: 0 4px; border-radius: 6px; background: linear-gradient(180deg, #2C3646 50%, #253040 50%); font-size: 21px; font-weight: 700; box-shadow: inset 0 -1px 0 rgba(0,0,0,.35); position: relative; }
.flap b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); }
.flap small { align-self: flex-end; font-size: 11px; color: rgba(255,255,255,.6); margin: 0 4px 2px 1px; }
.board .acts { display: flex; gap: 8px; margin-top: 14px; position: relative; }
.board .acts .btn-main { flex: 1; height: 48px; }
.board .acts .btn-soft { background: rgba(255,255,255,.1); color: #fff; height: 48px; }
.board.pre h3 { font-size: 20px; }
.countdown-big { font-family: var(--serif); font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }

/* ---------- Timeline ---------- */
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 20px 10px; }
.section-h h4 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.section-h span { font-size: 13px; color: var(--ink-3); }
.tl { position: relative; margin: 0 14px; padding-left: 30px; }
.tl::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 30px; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 10px); }
.tl .fill { position: absolute; left: 11px; top: 14px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--red)); transition: height 600ms var(--ease-out); border-radius: 2px; }
.nowline { position: absolute; left: 0; right: 0; height: 0; z-index: 3; pointer-events: none; transition: top 600ms var(--ease-out); }
.nowline::before { content: ""; position: absolute; left: 6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(242, 107, 58, .18); animation: pulse 1.6s ease-out infinite; }
.nowline span { position: absolute; left: 24px; top: -9px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--red); background: var(--ivory); padding: 1px 6px; border-radius: 6px; }

.stop { position: relative; margin-bottom: 12px; opacity: 0; transform: translateY(10px); animation: rise 420ms var(--ease-out) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.node { position: absolute; left: -30px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); display: grid; place-items: center; z-index: 2; transition: background 240ms ease, border-color 240ms ease, transform 160ms var(--ease-out); }
.node svg { width: 13px; height: 13px; color: var(--ink-3); }
.stop.done .node { background: var(--ok); border-color: var(--ok); }
.stop.done .node svg, .stop.skip .node svg { color: #fff; }
.stop.skip .node { background: var(--skip); border-color: var(--skip); }
.stop.current .node { border-color: var(--red); box-shadow: 0 0 0 5px rgba(242, 107, 58, .14); }
.stop.current .node svg { color: var(--red); }

.card { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-1); border: 1px solid rgba(230, 222, 208, .6); overflow: hidden; transition: box-shadow 240ms ease, opacity 240ms ease, transform 300ms var(--ease-out); touch-action: pan-y; position: relative; z-index: 1; }
.stop.current .card { box-shadow: 0 0 0 1.5px rgba(242, 107, 58, .45), var(--shadow-2); }
.card-h { padding: 13px 14px 0; display: flex; gap: 12px; }
.when { min-width: 50px; }
.when b { display: block; font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.when small { display: block; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 1px; }
.what { flex: 1; min-width: 0; }
.kind { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-bottom: 5px; }
.kind svg { width: 11px; height: 11px; }
.k-food { color: #B4441F; background: #FBE6DB; }
.k-sight { color: #2F6F8F; background: #E0EEF4; }
.k-shop { color: #8A5A0E; background: #F6EACB; }
.k-spa { color: #6A4E9A; background: #ECE5F6; }
.k-rest { color: #4D5A6C; background: #E9ECF0; }
.k-train, .k-arrive, .k-depart { color: #1F5D63; background: #DDF0EE; }
.k-hotel { color: #7A3B2E; background: #F4E3DC; }
.what h5 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: -.005em; }
.what .zh { font-family: var(--zh); font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.meta { padding: 10px 14px 0 76px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.meta div { display: flex; gap: 8px; }
.meta svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; color: var(--ink-3); }
.meta .must { color: var(--ink); }
.meta .chk { color: #8A5A0E; }
.meta .chk svg { color: var(--gold); }
.card-a { display: flex; gap: 8px; padding: 12px 14px 14px 76px; }
.card-a .go { flex: 1; height: 44px; border-radius: 14px; font-size: 15.5px; }
.card-a .sk { height: 44px; padding: 0 16px; }
.state-line { display: none; padding: 10px 14px 13px 76px; font-size: 13.5px; font-weight: 600; align-items: center; gap: 8px; }
.state-line svg { width: 17px; height: 17px; flex: 0 0 17px; }
.state-line .undo { margin-left: auto; color: var(--sea); font-weight: 650; padding: 6px 4px; }
.stop.done .state-line, .stop.skip .state-line { display: flex; }
.stop.done .card-a, .stop.skip .card-a, .stop.done .meta, .stop.skip .meta { display: none; }
.stop.done .state-line { color: var(--ok); }
.stop.skip .state-line { color: var(--ink-3); }
.stop.skip .card { opacity: .62; }
.stop.skip h5 { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.swipe-hint { position: absolute; inset: 0; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-weight: 700; font-size: 14px; color: #fff; }
.swipe-hint .l { opacity: 0; } .swipe-hint .r { opacity: 0; }

/* ---------- Sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(18, 22, 32, .38); opacity: 0; pointer-events: none; transition: opacity 300ms ease; z-index: 60; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--paper); border-radius: 26px 26px 0 0; padding: 8px 18px calc(18px + var(--safe-b)); box-shadow: 0 -12px 40px rgba(0,0,0,.18); transform: translateY(105%); transition: transform 500ms var(--ease-drawer); max-height: 88dvh; overflow-y: auto; touch-action: none; }
.sheet.on { transform: translateY(0); }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #DDD5C6; margin: 2px auto 14px; }
.sheet h3 { font-family: var(--serif); font-size: 24px; margin: 0; font-weight: 600; line-height: 1.15; }
.sheet .zhbig { font-family: var(--zh); font-size: 20px; font-weight: 600; margin-top: 6px; }
.sheet .addr { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.sheet .how { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #F6F0E4; font-size: 14px; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.sheet .how svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--gold); margin-top: 1px; }
.go-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tile { border-radius: 18px; background: #fff; border: 1px solid var(--line); padding: 14px; text-align: left; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); }
.tile .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.tile .ic svg { width: 19px; height: 19px; }
.tile b { font-size: 15px; display: block; margin-top: 10px; }
.tile small { color: var(--ink-3); font-size: 12px; }
.tile.wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; min-height: 0; }
.tile.wide b { margin-top: 0; }
.ic.amap { background: linear-gradient(135deg, #2D8CF0, #1565C0); }
.ic.apple { background: linear-gradient(135deg, #5AC8FA, #34A0D8); }
.ic.didi { background: linear-gradient(135deg, #FF8A3D, #F26B1D); }
.ic.drv { background: linear-gradient(135deg, #E4553F, var(--red-deep)); }
.ic.metro { background: linear-gradient(135deg, #8E5BB5, #6A3F94); }
.ic.done { background: linear-gradient(135deg, #3FA37F, var(--ok)); }
.sheet .foot { display: flex; gap: 10px; margin-top: 14px; }
.sheet .foot .btn-main { flex: 1; }

.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.reason { padding: 11px 14px; border-radius: 14px; background: #F3EDE2; font-size: 15px; font-weight: 600; border: 1.5px solid transparent; transition: background 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
.reason.on { background: #FCE7E2; border-color: var(--red); color: var(--red-deep); }
.sheet textarea { width: 100%; margin-top: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 12px; font: inherit; font-size: 15px; min-height: 56px; resize: none; outline: none; color: var(--ink); }
.later { margin-top: 12px; width: 100%; }

/* ---------- Driver card ---------- */
.driver { position: fixed; inset: 0; z-index: 80; background: #FFFDF6; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 18px) 22px calc(var(--safe-b) + 18px); opacity: 0; pointer-events: none; transform: scale(.98); transition: opacity 220ms ease, transform 300ms var(--ease-out); }
.driver.on { opacity: 1; pointer-events: auto; transform: none; }
.driver .top { display: flex; justify-content: space-between; align-items: center; }
.driver .top span { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.driver .x { width: 40px; height: 40px; border-radius: 50%; background: #F1EADD; display: grid; place-items: center; }
.driver .body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.driver .please { font-family: var(--zh); font-size: 22px; color: var(--ink-2); }
.driver .dest { font-family: var(--zh); font-size: clamp(34px, 11vw, 60px); line-height: 1.18; font-weight: 700; margin: 14px 0; color: var(--ink); }
.driver .daddr { font-family: var(--zh); font-size: clamp(20px, 6vw, 30px); line-height: 1.35; color: var(--ink); border-top: 2px solid var(--red); padding-top: 14px; }
.driver .en { margin-top: 16px; color: var(--ink-3); font-size: 15px; }
.driver .seal { width: 64px; height: 64px; align-self: flex-end; }

/* ---------- Trip tab ---------- */
.map-card { margin: 14px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-2); overflow: hidden; }
.map-card svg { display: block; width: 100%; height: auto; }
.route { stroke-dasharray: 6 7; animation: march 1.4s linear infinite; }
@keyframes march { to { stroke-dashoffset: -26 } }
.trip-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 14px; }
.stat { background: var(--paper); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-1); }
.stat b { font-family: var(--serif); font-size: 28px; font-weight: 600; display: block; }
.stat small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.dayrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 14px 8px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-1); text-align: left; width: calc(100% - 28px); }
.dayrow .dd { width: 44px; text-align: center; }
.dayrow .dd b { font-family: var(--serif); font-size: 20px; display: block; line-height: 1; }
.dayrow .dd small { font-size: 10.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; }
.dayrow .dt { flex: 1; min-width: 0; }
.dayrow .dt b { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dayrow .dt small { color: var(--ink-3); font-size: 12.5px; }
.bar { height: 5px; border-radius: 3px; background: #EEE7DA; margin-top: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--ok)); border-radius: 3px; transition: width 600ms var(--ease-out); }

/* ---------- Help tab ---------- */
.hcard { margin: 14px; padding: 16px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-1); }
.hcard h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.hcard p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.hcard .zh { font-family: var(--zh); font-size: 16px; font-weight: 600; margin-top: 6px; color: var(--ink); }
.hcard .row2 { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.sos a { text-decoration: none; color: var(--ink); background: #FCEDE9; border-radius: 16px; padding: 12px 8px; text-align: center; }
.sos a b { display: block; font-size: 24px; color: var(--red); font-weight: 800; }
.sos a small { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.phr { display: grid; gap: 8px; margin-top: 10px; }
.phr button { text-align: left; padding: 12px 14px; border-radius: 14px; background: #F6F0E4; }
.phr b { font-family: var(--zh); font-size: 18px; display: block; }
.phr small { color: var(--ink-2); font-size: 13px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #F0E9DC; font-size: 14.5px; line-height: 1.4; }
.checklist label:last-child { border-bottom: 0; }
.checklist input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: 0 0 22px; margin: 0; display: grid; place-items: center; transition: background 160ms ease, border-color 160ms ease; }
.checklist input:checked { background: var(--ok); border-color: var(--ok); }
.checklist input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.checklist input:checked + span { color: var(--ink-3); text-decoration: line-through; }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); height: 66px; border-radius: 24px; background: rgba(255, 253, 248, .86); backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px); box-shadow: 0 10px 30px rgba(28, 36, 48, .16), inset 0 0 0 1px rgba(230, 222, 208, .8); display: flex; z-index: 30; padding: 6px; }
.tabbar button { flex: 1; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; transition: color 200ms ease, background 200ms ease; }
.tabbar button svg { width: 23px; height: 23px; }
.tabbar button.on { color: var(--red); background: #FDEBE2; }

.view { display: none; }
.view.on { display: block; animation: viewin 260ms var(--ease-out); }
@keyframes viewin { from { opacity: 0; transform: translateY(6px) } }

.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 300ms var(--ease-out); z-index: 90; white-space: nowrap; box-shadow: var(--shadow-2); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.install { margin: 14px; padding: 14px 16px; border-radius: 18px; background: var(--gold-soft); display: none; gap: 12px; align-items: center; font-size: 14px; line-height: 1.4; }
.install b { display: block; }
.install button { margin-left: auto; font-weight: 700; color: #8A5A0E; padding: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .stop { opacity: 1; transform: none; }
  .hero .art g[data-depth] { transform: none !important; }
}
@media (min-width: 640px) {
  .app { max-width: 520px; margin: 0 auto; }
  .tabbar { max-width: 496px; margin: 0 auto; }
}

/* ---------- Photos ---------- */
.ph { display: block; width: 100%; height: 164px; border: 0; padding: 0; background: #DCD5C8 center / cover no-repeat; position: relative; cursor: zoom-in; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,41,75,0) 55%, rgba(19,41,75,.55)); }
.ph span { position: absolute; left: 12px; bottom: 9px; z-index: 1; color: #fff; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; display: inline-flex; gap: 6px; align-items: center; }
.ph span svg { width: 14px; height: 14px; }
.stop.done .ph, .stop.skip .ph { display: none; }
.board.has-ph::after { content: ""; position: absolute; inset: 0; background: var(--ph) center / cover; opacity: .32; mix-blend-mode: luminosity; pointer-events: none; }
.board.has-ph::before { z-index: 1; }
.board.has-ph > * { position: relative; z-index: 2; }
.qv-img { width: calc(100% + 36px); margin: -14px -18px 14px; height: min(46vh, 380px); background: #DCD5C8 center / cover; border-radius: 26px 26px 0 0; position: relative; }
.qv-img .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-size: 12px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.qv-img .cap a { color: #fff; }
.qv-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,.45)); pointer-events: none; }
.qv-img .cap { z-index: 1; }
.expect { margin-top: 14px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.expect div { display: flex; gap: 10px; }
.expect svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; color: var(--gold); }
.sheet .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-top: 14px; }

/* ---------- Passport ---------- */
.passport { margin: 14px; padding: 18px 16px 20px; border-radius: 22px; background: linear-gradient(180deg, #FFFDF8, #FBF5EA); box-shadow: var(--shadow-1); border: 1px solid #EDE4D3; position: relative; overflow: hidden; }
.passport::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(19,41,75,.035) 27px 28px); pointer-events: none; }
.passport h4 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; position: relative; }
.passport p { margin: 3px 0 12px; color: var(--ink-3); font-size: 13px; position: relative; }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.stamps button { aspect-ratio: 1; display: grid; place-items: center; }
.stamps svg { width: 100%; height: 100%; }
.stamps .off { opacity: .2; filter: grayscale(1); }
.stamps .on svg { animation: inkin 520ms var(--ease-out) both; }
@keyframes inkin { from { opacity: 0; transform: scale(1.35) rotate(-6deg); } }
.stamp svg { width: 100%; height: 100%; display: block; }
