:root {
  --ink: #281d18;
  --muted: #75685f;
  --cream: #fff9ec;
  --orange: #ff8a3d;
  --yellow: #ffd45c;
  --green: #66c7a3;
  --blue: #71b9ff;
  --pink: #ff91b8;
  --line: rgba(40, 29, 24, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", system-ui, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.eyebrow {
  margin: 0 0 12px;
  color: #b64c19;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hub {
  min-height: 100vh;
  padding: 48px clamp(22px, 6vw, 88px);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 212, 92, 0.58), transparent 24%),
    radial-gradient(circle at 12% 82%, rgba(102, 199, 163, 0.34), transparent 28%),
    var(--cream);
}
.venue-switch { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.back-link { color: #b64c19; font-weight: 800; text-decoration: none; }
.chooser { max-width: 1180px; margin: 0 auto; }
.chooser .lead { max-width: 760px; margin: 24px 0 34px; color: var(--muted); font-size: clamp(16px, 1.8vw, 21px); line-height: 1.55; }
.chooser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.chooser-card { position: relative; display: block; min-height: 330px; padding: 30px 30px 30px 44%; border-radius: 34px; color: white; text-decoration: none; overflow: hidden; box-shadow: 0 25px 70px rgba(57,44,34,.22); transition: transform .25s ease, box-shadow .25s ease; }
.chooser-card:hover { transform: translateY(-5px); box-shadow: 0 32px 80px rgba(57,44,34,.3); }
.chooser-card.haizhu { background: linear-gradient(150deg, #5a4a8c, #e3795f 60%, #ffd27a); }
.chooser-card.zhengjia { background: linear-gradient(150deg, #f47a3c, #f6b936 55%, #2a8f78); }
.chooser-card .eyebrow { color: rgba(255,255,255,.85); }
.chooser-card h2 { margin: 6px 0 10px; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.045em; line-height: 1; }
.chooser-card p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.5; }
.chooser-go { display: inline-block; margin-top: 22px; padding: 12px 18px; border-radius: 999px; background: white; color: var(--ink); font-weight: 900; font-size: 14px; }
.chooser-pet { position: absolute; left: 4%; bottom: 2%; width: 40%; }
.chooser-pet svg { display: block; width: 100%; height: auto; overflow: visible; }
.chooser-tools { margin-top: 40px; color: var(--muted); font-size: 13px; }
.chooser-tools a { color: #b64c19; font-weight: 800; }
@media (max-width: 720px) { .chooser-card { padding: 30px 26px 46% 26px; } .chooser-pet { left: 25%; width: 50%; bottom: -2%; } }
.venue-switch a { margin-left: 8px; color: #b64c19; font-weight: 800; }
.hub-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hub h1 { margin: 0; font-size: clamp(52px, 8vw, 108px); line-height: 0.88; letter-spacing: -0.075em; }
.hub h1 span { color: var(--orange); }
.hub .lead { max-width: 650px; margin: 28px 0; color: var(--muted); font-size: clamp(18px, 2vw, 25px); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary, .secondary {
  border: 0;
  border-radius: 999px;
  padding: 15px 23px;
  color: white;
  background: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(40, 29, 24, 0.15);
}
.secondary { color: var(--ink); background: white; box-shadow: inset 0 0 0 1px var(--line); }
.concept-card {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border-radius: 42px;
  background: linear-gradient(150deg, #fc7d44, #f3b93f 45%, #54bea1);
  box-shadow: 0 30px 80px rgba(101, 64, 37, 0.25);
}
.concept-card::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 30px; }
.concept-pet { position: absolute; width: 62%; left: 19%; bottom: 6%; }
.concept-pet svg { display: block; width: 100%; height: auto; overflow: visible; }
.concept-copy { position: absolute; inset: 42px 42px auto; color: white; z-index: 1; }
.concept-copy strong { display: block; font-size: 28px; }
.concept-copy span { opacity: .8; }
.orbit { position: absolute; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: white; font-size: 32px; box-shadow: 0 12px 25px rgba(66,42,28,.18); }
.orbit.one { right: 9%; top: 34%; transform: rotate(8deg); }
.orbit.two { left: 8%; top: 47%; transform: rotate(-10deg); }
.orbit.three { right: 14%; bottom: 10%; }

.story { max-width: 1180px; margin: 70px auto 0; }
.story h2 { margin-bottom: 24px; font-size: clamp(28px, 4vw, 50px); letter-spacing: -.04em; }
.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.story-step { min-height: 190px; padding: 22px; border-radius: 24px; background: rgba(255,255,255,.75); border: 1px solid var(--line); }
.story-step b { display: block; margin-bottom: 12px; color: var(--orange); font-size: 13px; }
.story-step strong { display: block; font-size: 20px; }
.story-step p { color: var(--muted); line-height: 1.55; }

.phone-page { min-height: 100vh; padding: 22px; background: #e8ddca; }
.phone-shell { max-width: 430px; min-height: calc(100vh - 44px); margin: 0 auto; overflow: hidden; border-radius: 38px; background: var(--cream); box-shadow: 0 25px 80px rgba(57,44,34,.2); }
.phone-hero { position: relative; min-height: 285px; padding: 28px; overflow: hidden; color: white; background: linear-gradient(145deg, #f47a3c, #f6b936); }
html[data-venue="chigang"] .phone-hero { background: linear-gradient(150deg, #4a3f85, #d4705f 58%, #ffc46a); }
.phone-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -80px; border-radius: 50%; border: 60px solid rgba(255,255,255,.12); }
.phone-hero h1 { position: relative; z-index: 1; margin: 0; max-width: 260px; font-size: 37px; line-height: 1.02; letter-spacing: -.045em; }
.phone-pet { position: absolute; z-index: 2; width: 172px; right: -6px; bottom: -8px; }
.phone-pet svg { display: block; width: 100%; height: auto; overflow: visible; }
.paint-board { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 50% 35%, #fff6dd, #ffe3b0); }
.paint-base { position: absolute; inset: 6%; }
.paint-base svg { display: block; width: 100%; height: 100%; }
#paintCanvas { position: absolute; inset: 6%; width: 88%; height: 88%; touch-action: none; cursor: crosshair; }
.paint-tools { display: grid; gap: 8px; margin-top: 10px; }
.paint-colors { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.paint-color { height: 36px; border: 3px solid rgba(40,29,24,.12); border-radius: 11px; background: var(--c); }
.paint-color.active { border-color: var(--ink); transform: translateY(-2px); }
.paint-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.paint-actions button { padding: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 12px; font-weight: 800; }
.paint-actions button.active { color: white; background: var(--ink); border-color: var(--ink); }
.phone-content { padding: 24px; }
.unlock-banner { display: none; margin: -4px 0 22px; padding: 15px; border-radius: 16px; color: #176443; background: #dcf7eb; font-weight: 850; text-align: center; animation: pop-in .35s ease-out; }
.unlock-banner.show { display: block; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 900; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-heading label { margin: 0; }
.field-help { margin: 7px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.text-button { padding: 0; border: 0; color: #b64c19; background: none; font-size: 12px; font-weight: 800; }
.field input, .field select { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 15px; background: white; outline: none; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch { height: 48px; border: 3px solid transparent; border-radius: 14px; }
.swatch.active { border-color: var(--ink); transform: translateY(-2px); }
.swatch[data-accent="orange"] { background: var(--orange); }
.swatch[data-accent="mint"] { background: var(--green); }
.swatch[data-accent="blue"] { background: var(--blue); }
.swatch[data-accent="pink"] { background: var(--pink); }
.scan-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin: 0 0 12px; padding: 14px; border: 2px dashed rgba(40,29,24,.28); border-radius: 16px; color: var(--ink); background: #fff8e6; font-weight: 900; }
.scan-button .scan-icon { font-size: 20px; }
.scanner { position: fixed; inset: 0; z-index: 50; color: white; background: #000; }
.scanner[hidden] { display: none; }
.scanner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: absolute; left: 50%; top: 50%; width: min(68vw, 300px); aspect-ratio: 1; transform: translate(-50%, -55%); border-radius: 22px; outline: 3px solid rgba(255,255,255,.92); box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.scanner-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) 20px 18px; background: linear-gradient(rgba(0,0,0,.6), transparent); font-size: 17px; }
.scanner-close { width: 40px; height: 40px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.2); font-size: 18px; }
.scanner-status { position: absolute; left: 20px; right: 20px; bottom: max(40px, env(safe-area-inset-bottom)); margin: 0; text-align: center; font-weight: 750; line-height: 1.5; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.collect-count { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff1cb; color: #8a6a1c; font-size: 11px; }
.checkpoint .status.stamp { animation: stamp .55s cubic-bezier(.2,1.4,.4,1) both; }
.phone-pet .appear { transform-box: fill-box; transform-origin: center; animation: accessory-pop .7s cubic-bezier(.34,1.56,.64,1) both; }
.pet-sparkle { position: absolute; opacity: 0; color: #fff4c2; font-size: 26px; pointer-events: none; text-shadow: 0 0 12px rgba(255,220,120,.9); }
.pet-sparkle.s1 { left: 6%; top: 10%; }.pet-sparkle.s2 { right: 8%; top: 2%; font-size: 20px; }.pet-sparkle.s3 { left: 16%; bottom: 12%; font-size: 18px; }
.phone-pet.receive .pet-sparkle { animation: sparkle 1s ease-out both; }
.phone-pet.receive .pet-sparkle.s2 { animation-delay: .12s; }.phone-pet.receive .pet-sparkle.s3 { animation-delay: .24s; }
.reward { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255,170,60,.55), rgba(20,10,6,.92) 70%); opacity: 0; transition: opacity .25s ease; }
.reward[hidden] { display: none; }
.reward.show { opacity: 1; }
.reward.leaving { opacity: 0; transition: opacity .55s ease .15s; }
.reward-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reward-stage { position: relative; display: grid; justify-items: center; padding: 30px 24px; color: white; text-align: center; }
.reward-rays { position: absolute; left: 50%; top: 86px; width: 420px; height: 420px; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255,230,150,.35) 0 12deg, transparent 12deg 30deg); border-radius: 50%; -webkit-mask: radial-gradient(circle, black 15%, transparent 68%); mask: radial-gradient(circle, black 15%, transparent 68%); animation: rays 9s linear infinite; }
.reward.show .reward-rays { animation: rays 9s linear infinite, pop-in .5s ease-out both; }
.reward-item { position: relative; display: grid; place-items: center; width: 172px; height: 172px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9e6, #ffd45c 60%, #ff9f43); box-shadow: 0 25px 60px rgba(0,0,0,.4), inset 0 -8px 0 rgba(0,0,0,.08); font-size: 92px; line-height: 1; }
.reward.show .reward-item { animation: item-pop .75s cubic-bezier(.34,1.56,.64,1) both; }
.reward.leaving .reward-item { visibility: hidden; }
.reward-kicker { margin: 26px 0 0; color: #ffe8a3; font-size: 13px; font-weight: 900; letter-spacing: .18em; }
.reward-title { margin: 6px 0 0; font-size: 40px; letter-spacing: -.03em; }
.reward-progress { margin: 8px 0 0; color: rgba(255,255,255,.78); font-weight: 750; }
.reward.show .reward-kicker, .reward.show .reward-title, .reward.show .reward-progress, .reward.show .reward-continue { animation: rise .55s ease-out both; }
.reward.show .reward-title { animation-delay: .1s; }.reward.show .reward-progress { animation-delay: .2s; }.reward.show .reward-continue { animation-delay: .35s; }
.reward-continue { margin-top: 26px; padding: 15px 28px; border: 0; border-radius: 999px; color: #251a15; background: #ffd45c; font-size: 16px; font-weight: 900; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.reward.complete .reward-item { background: radial-gradient(circle at 35% 30%, #fff, #b5f0d5 60%, #66c7a3); }
.reward-flyer { position: fixed; z-index: 70; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9e6, #ffd45c 60%, #ff9f43); font-size: 92px; line-height: 1; pointer-events: none; box-shadow: 0 20px 45px rgba(0,0,0,.35); }
.scanner.success .scanner-frame { outline-color: #5ee3a1; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45), 0 0 0 6px rgba(94,227,161,.45); animation: frame-pulse .45s ease-out; }
.scanner.success .scanner-status { color: #9ff5c9; }
@keyframes stamp { from { opacity: 0; transform: scale(2.4) rotate(-14deg); } 60% { opacity: 1; transform: scale(.92) rotate(3deg); } to { transform: scale(1) rotate(0); } }
@keyframes receive { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-22px) scale(1.08) rotate(-3deg); } 55% { transform: translateY(4px) scale(.97) rotate(2deg); } 100% { transform: translateY(0) scale(1); } }
@keyframes accessory-pop { from { opacity: 0; transform: scale(0) rotate(-20deg); } 70% { opacity: 1; transform: scale(1.18) rotate(4deg); } to { transform: scale(1) rotate(0); } }
@keyframes sparkle { 0% { opacity: 0; transform: scale(.3) rotate(0); } 35% { opacity: 1; transform: scale(1.3) rotate(40deg); } 100% { opacity: 0; transform: scale(.4) rotate(90deg) translateY(-14px); } }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes item-pop { from { opacity: 0; transform: scale(.2) rotate(-25deg); } 60% { opacity: 1; transform: scale(1.12) rotate(6deg); } to { transform: scale(1) rotate(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes frame-pulse { from { transform: translate(-50%, -55%) scale(1.08); } to { transform: translate(-50%, -55%) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .phone-pet, .concept-pet, .reward-rays, .reward.show .reward-item, .reward.show .reward-kicker, .reward.show .reward-title, .reward.show .reward-progress, .reward.show .reward-continue { animation: none !important; }
}
.checkpoints { display: grid; gap: 10px; }
.checkpoint { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 18px; text-align: left; background: white; }
.checkpoint .icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #fff1cb; font-size: 26px; }
.checkpoint strong, .checkpoint small { display: block; }
.checkpoint small { margin-top: 3px; color: var(--muted); }
.checkpoint .status { color: #b38c32; font-size: 12px; font-weight: 900; }
.checkpoint.collected { background: #effbf6; border-color: rgba(59,156,120,.32); }
.checkpoint.collected .status { color: #25845f; }
.send-button { width: 100%; margin-top: 22px; padding: 17px; border: 0; border-radius: 17px; color: white; background: var(--ink); font-weight: 900; }
.toast { display: none; margin-top: 14px; padding: 14px; border-radius: 14px; color: #176443; background: #dcf7eb; font-weight: 750; text-align: center; }
.toast.show { display: block; }
.toast.error { color: #9c3c25; background: #fff0e8; }

.checkpoint-page { min-height: 100vh; padding: 42px clamp(18px, 5vw, 70px); background: #f0e9dc; }
.checkpoint-header { max-width: 1100px; margin: 0 auto 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.checkpoint-header h1 { margin: 0; font-size: clamp(35px, 5vw, 65px); letter-spacing: -.055em; }
.checkpoint-header p { max-width: 600px; color: var(--muted); line-height: 1.55; }
.checkpoint-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.station-card { padding: 25px; border: 1px solid var(--line); border-radius: 28px; background: white; text-align: center; box-shadow: 0 16px 45px rgba(57,44,34,.1); break-inside: avoid; }
.station-card .station-icon { font-size: 46px; }
.station-card h2 { margin: 8px 0 4px; }
.station-card p { min-height: 42px; margin: 0 0 16px; color: var(--muted); }
.qr-frame { display: grid; place-items: center; aspect-ratio: 1; padding: 13px; border: 2px dashed rgba(40,29,24,.18); border-radius: 22px; background: #fffdf7; }
.qr-frame img { width: 100%; height: 100%; }
.station-card small { display: block; margin-top: 14px; color: var(--muted); }
.print-note { max-width: 1100px; margin: 22px auto 0; padding: 16px 19px; border-radius: 16px; color: #5d4b3f; background: #fff8dc; }

.route-page { min-height: 100vh; padding: 22px; background: #e8ddca; }
.route-shell { max-width: 720px; min-height: calc(100vh - 44px); margin: 0 auto; padding: 25px; border-radius: 34px; background: var(--cream); box-shadow: 0 25px 80px rgba(57,44,34,.18); }
.route-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.route-header h1 { margin: 0; font-size: clamp(28px, 7vw, 43px); line-height: 1; letter-spacing: -.045em; }
.route-header p:last-child { margin: 9px 0 0; color: var(--muted); }
.route-back { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: white; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); font-size: 24px; }
.route-map-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #f8f8f5; }
.route-map-card svg { display: block; width: 100%; height: auto; }
.map-shell { fill: #e8eaed; stroke: #b9bec5; stroke-width: 7; }
.mall-street, .mall-spoke { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 62; }
.mall-street.north { stroke: #ffd91a; }.mall-street.east { stroke: #27aee4; }.mall-street.south { stroke: #54c995; }.mall-street.west, .mall-spoke { stroke: #f26059; }.mall-spoke { stroke-width: 50; opacity: .7; }
.map-atrium { fill: white; stroke: #c9ced5; stroke-width: 5; }.map-label, .map-small { fill: #34404a; font: 700 22px system-ui; text-anchor: middle; }.map-small { font-size: 15px; font-weight: 650; }
.map-store rect { fill: #d9dde2; stroke: #aeb5bd; stroke-width: 3; }.map-store text { fill: #20262e; font: 800 16px system-ui; text-anchor: middle; }.map-store .map-unit { fill: #5d6874; font-size: 13px; font-weight: 600; }.map-store.lego-store rect { fill: #ffe500; stroke: #db251d; stroke-width: 7; }.map-store.muted { opacity: .65; }
.route-underlay, .route-progress { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 18; }.route-underlay { stroke: rgba(40,29,24,.22); stroke-dasharray: 2 28; }.route-progress { stroke: #ff6d3a; transition: stroke-dashoffset .55s ease; }
.you-marker { transition: transform .55s ease; }
.you-shadow { fill: rgba(40,29,24,.28); }
/* Direction the visitor faces: a soft beam, a ring round the feet and an arrow on the ring. */
.you-heading { transform-origin: 0 0; transform-box: view-box; transition: transform .25s linear; }
.you-beam { fill: rgba(40,120,189,.22); }
.you-ring { fill: none; stroke: rgba(40,120,189,.55); stroke-width: 6; }
.you-arrow { fill: #2878bd; stroke: #fff; stroke-width: 5; stroke-linejoin: round; }
.you-heading.from-compass .you-beam { fill: rgba(40,120,189,.3); }
.nav-turn { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: 14px; background: #eaf3fd; color: #1d4f86; font-size: 15px; }
.nav-turn.soon { background: #2878bd; color: #fff; }
.nav-turn-arrow { display: grid; place-items: center; width: 34px; height: 34px; flex: none; transition: transform .3s ease; }
.nav-turn-arrow path { fill: currentColor; }
.you-label rect { fill: #2878bd; stroke: white; stroke-width: 4; }
.you-label text { fill: white; font: 900 20px system-ui; text-anchor: middle; }
.destination-pin text { fill: #20262e; font: 800 17px system-ui; text-anchor: middle; paint-order: stroke; stroke: white; stroke-width: 5px; }.destination-pin path { fill: #db251d; stroke: white; stroke-width: 5; }.destination-pin circle { fill: #ffe500; }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 12px 15px; color: var(--muted); background: white; font-size: 11px; }.map-legend span { display: flex; align-items: center; gap: 6px; }.map-legend i { display: inline-block; width: 18px; height: 7px; border-radius: 9px; }.legend-you { background: #2878bd; }.legend-route { background: #ff6d3a; }
.route-instruction { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; margin-top: 16px; padding: 18px; border-radius: 20px; background: white; border: 1px solid var(--line); }.route-step-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: white; background: #2878bd; font-size: 29px; font-weight: 900; }.route-instruction span { color: var(--orange); font-size: 11px; font-weight: 900; }.route-instruction h2 { margin: 2px 0 3px; font-size: 20px; }.route-instruction p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.route-meter { height: 7px; margin: 14px 2px 0; overflow: hidden; border-radius: 8px; background: #e2d9cc; }.route-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--orange); transition: width .55s ease; }.route-next { margin-top: 12px; }
.arrival-card { display: none; margin-top: 16px; padding: 21px; border-radius: 21px; color: #176443; background: #dcf7eb; text-align: center; }.arrival-card.show { display: block; animation: pop-in .35s ease-out; }.arrival-card strong { font-size: 20px; }.arrival-card p { margin: 8px 0 18px; line-height: 1.55; }.route-disclaimer { margin: 17px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-13px) rotate(1deg); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

@media (max-width: 820px) {
  .hub-grid { grid-template-columns: 1fr; }
  .concept-card { min-height: 440px; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .checkpoint-grid { grid-template-columns: 1fr; }
  .checkpoint-header { align-items: start; flex-direction: column; }
}
@media (max-width: 520px) {
  .hub { padding: 30px 18px; }
  .story-grid { grid-template-columns: 1fr; }
  .phone-page { padding: 0; }
  .phone-shell { min-height: 100vh; border-radius: 0; }
  .route-page { padding: 0; }
  .route-shell { min-height: 100vh; padding: 18px; border-radius: 0; }
}

@media print {
  .checkpoint-page { padding: 12mm; background: white; }
  .checkpoint-header .actions, .print-note { display: none; }
  .checkpoint-grid { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .station-card { padding: 7mm; box-shadow: none; }
}

/* ---- Phone app shell: tabs, bottom navigation, drawing sheet ---------------- */
.app .phone-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.app .phone-pet { padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pet-draw-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 5px 10px; border-radius: 999px; color: #5a3416; background: rgba(255,255,255,.9); font-size: 11px; font-weight: 900; white-space: nowrap; box-shadow: 0 4px 12px rgba(80,40,10,.18); pointer-events: none; }
.tab-panel[hidden] { display: none; }
.tab-header { padding: 30px 24px 4px; }
.tab-header h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.progress-card { margin-bottom: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.progress-card > div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.progress-bar { height: 9px; margin-top: 10px; overflow: hidden; border-radius: 9px; background: #f1e7d6; }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .6s cubic-bezier(.34,1.56,.64,1); }
.app .send-button { margin-top: 6px; }
.app .toast { position: fixed; z-index: 30; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); width: min(390px, calc(100% - 32px)); margin: 0; transform: translateX(-50%); box-shadow: 0 12px 30px rgba(40,29,24,.18); animation: pop-in .3s ease-out; }

.event-list { display: grid; gap: 14px; }
.event-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.event-card.featured { color: white; border: 0; background: linear-gradient(145deg, #f47a3c, #f6b936); }
.event-card.featured p { color: rgba(255,255,255,.9); }
.event-emoji { font-size: 34px; }
.event-card h2 { margin: 6px 0 4px; font-size: 19px; }
.event-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.event-tag { position: absolute; top: 16px; right: 16px; padding: 4px 9px; border-radius: 999px; color: #8a6a1c; background: #fff1cb; font-size: 11px; font-weight: 900; }
.event-tag.live { color: #176443; background: #dcf7eb; }
.event-action { display: inline-block; margin-top: 12px; padding: 9px 14px; border: 0; border-radius: 999px; color: white; background: var(--ink); font-size: 13px; font-weight: 900; text-decoration: none; }
.event-card.featured .event-action { color: var(--ink); background: white; }
.demo-note { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }

.map-pin circle { fill: white; stroke: #db251d; stroke-width: 6; }
.map-pin text { font-size: 30px; text-anchor: middle; }
.map-pin.screen circle { stroke: #2878bd; }
.screen-atrium { fill: #fff8dc; stroke: #f6b936; }
.map-list { display: grid; gap: 10px; margin-top: 14px; }
.map-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; text-decoration: none; }
.map-row .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff1cb; font-size: 24px; }
.map-row strong, .map-row small { display: block; }
.map-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.map-row .go { padding: 7px 12px; border-radius: 999px; color: white; background: #2878bd; font-size: 12px; font-weight: 900; }
.map-row .go.muted { color: var(--muted); background: #f1e7d6; }

.me-pet { position: relative; display: block; width: 220px; margin: 0 auto 18px; padding: 0; border: 0; background: radial-gradient(circle at 50% 45%, #fff1cb, transparent 68%); cursor: pointer; }
.me-pet svg { display: block; width: 100%; height: auto; overflow: visible; }
.field-note { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mood { padding: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 12px; font-weight: 800; }
.mood.active { color: white; background: var(--ink); border-color: var(--ink); }
.me-pet .pet-draw-hint { bottom: 6px; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: end; width: min(430px, 100%); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-radius: 26px 26px 0 0; background: rgba(255,255,255,.96); box-shadow: 0 -10px 30px rgba(57,44,34,.12); backdrop-filter: blur(14px); }
.nav-item { display: grid; justify-items: center; gap: 2px; padding: 6px 0 2px; border: 0; color: #9a8c80; background: none; font-size: 11px; font-weight: 800; -webkit-tap-highlight-color: transparent; }
.nav-item .nav-icon { font-size: 22px; filter: grayscale(1); opacity: .6; transition: transform .2s; }
.nav-item.active { color: var(--ink); }
.nav-item.active .nav-icon { filter: none; opacity: 1; transform: translateY(-2px) scale(1.1); }
.nav-center { position: relative; justify-self: center; width: 74px; height: 74px; margin-top: -34px; padding: 0; border: 5px solid white; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd9a8, #ff8a3d); box-shadow: 0 10px 24px rgba(201,85,24,.4); -webkit-tap-highlight-color: transparent; animation: nav-breathe 3s ease-in-out infinite; }
.nav-center:active { transform: scale(.94); }
.nav-pet { position: absolute; inset: 2px 4px 6px; }
.nav-pet svg { display: block; width: 100%; height: 100%; }
.nav-pen { position: absolute; right: -6px; bottom: -4px; display: grid; place-items: center; width: 28px; height: 28px; border: 3px solid white; border-radius: 50%; background: var(--yellow); font-size: 13px; }

body.sheet-open { overflow: hidden; }
.draw-sheet { position: fixed; z-index: 40; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(30,18,10,0); transition: background .25s ease; }
.draw-sheet[hidden] { display: none; }
.draw-sheet.open { background: rgba(30,18,10,.5); }
.draw-inner { width: min(430px, 100%); max-height: 100%; overflow-y: auto; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--cream); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.draw-sheet.open .draw-inner { transform: none; }
.draw-header { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; margin-bottom: 12px; }
.draw-header h2 { margin: 0; font-size: 17px; text-align: center; }
.draw-header .text-button { justify-self: start; }
.draw-done { justify-self: end; padding: 9px 16px; border: 0; border-radius: 999px; color: white; background: var(--ink); font-weight: 900; }
.draw-help { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
@keyframes nav-breathe { 50% { box-shadow: 0 10px 30px rgba(255,138,61,.65); } }
@media (min-width: 521px) { .app .phone-shell { padding-bottom: 110px; } }

/* ---- Cute mall map (phone 地图 tab): full-bleed, pan + pinch zoom ------------- */
:root { --nav-h: calc(88px + env(safe-area-inset-bottom)); }
body.on-map .phone-shell { padding-bottom: 0; }
#tab-map { position: relative; }
.map-stage { position: relative; height: calc(100dvh - var(--nav-h)); min-height: 420px; overflow: hidden; background: #dff3e4; user-select: none; -webkit-user-select: none; }
@media (min-width: 521px) { .map-stage { height: calc(100vh - 44px - 110px); } }
.mall-map { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.mall-map:active { cursor: grabbing; }
.mall-map text { font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", system-ui, sans-serif; pointer-events: none; }
.mall-map .you-marker { pointer-events: none; }
.map-topbar { position: absolute; left: 14px; right: 14px; top: calc(12px + env(safe-area-inset-top)); z-index: 3; }
.map-search { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.96); text-align: left; box-shadow: 0 8px 24px rgba(40,29,24,.18); backdrop-filter: blur(10px); }
.map-search .map-search-icon { font-size: 18px; text-align: center; }
.map-search strong, .map-search small { display: block; }
.map-search strong { font-size: 14px; }
.map-search small { color: var(--muted); font-size: 11px; }
.map-search-list { padding: 6px 11px; border-radius: 999px; color: white; background: var(--ink); font-size: 12px; font-weight: 900; }
.map-controls { position: absolute; right: 12px; top: calc(78px + env(safe-area-inset-top)); z-index: 3; display: grid; gap: 6px; justify-items: center; }
.map-controls button { width: 42px; height: 42px; border: 0; border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.96); font-size: 20px; font-weight: 900; box-shadow: 0 6px 18px rgba(40,29,24,.16); -webkit-tap-highlight-color: transparent; }
.map-controls button:disabled { opacity: .4; }
.map-controls button.locate { color: white; background: #2878bd; }
.map-controls button:active { transform: scale(.94); }
.map-zoom-label { padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--muted); font-size: 10px; font-weight: 900; }
.map-hint { position: absolute; left: 50%; bottom: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; transform: translateX(-50%); color: #5a3416; background: rgba(255,255,255,.85); font-size: 11px; font-weight: 800; white-space: nowrap; pointer-events: none; animation: hint-fade 9s ease forwards; }
@keyframes hint-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* Level of detail: far shows the big-brand pins, near shows every shop block. */
.shop, .poi { cursor: pointer; transition: opacity .35s ease; -webkit-tap-highlight-color: transparent; }
.lod-far .shop .shop-icon, .lod-far .shop .shop-name, .lod-far .poi { opacity: 0; }
.lod-far .shop .shop-body { opacity: .55; }
.lod-far .shop .shop-awning { opacity: .35; }
.lod-far .poi { pointer-events: none; }
.lod-far .atria text { opacity: 0; }
.atria text { transition: opacity .35s ease; }
.lod-near .pin { opacity: 0; pointer-events: none; }
.pin { transition: opacity .35s ease; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.shop-shadow { fill: rgba(60,40,20,.14); }
.shop-body { stroke-width: 4; transition: opacity .35s ease; }
.shop-awning { transition: opacity .35s ease; }
.shop-icon, .shop-name { transition: opacity .35s ease; }
.shop-name { font-size: 14px; font-weight: 900; }
.shop-check, .pin-check { display: none; }
.shop.done .shop-check, .pin.done .pin-check { display: block; }
.shop.selected .shop-body, .poi.selected rect { stroke-width: 7; filter: drop-shadow(0 0 6px rgba(255,138,61,.9)); }
.shop:focus-visible, .poi:focus-visible, .pin:focus-visible { outline: none; }
.shop:focus-visible .shop-body { stroke-dasharray: 8 6; }

/* "Go there" pins when zoomed out: bob, chevrons rising, pulsing shadow. */
.pin-bob { animation: pin-bob 1.6s ease-in-out infinite; }
.pin-shadow { fill: rgba(40,29,24,.22); animation: pin-shadow 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pin-arrows path { fill: none; stroke: #ff6d3a; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; animation: pin-arrow 1.6s ease-in-out infinite; }
.pin-arrows path + path { animation-delay: .25s; }
.pin-body { stroke: white; stroke-width: 5; }
.pin.done .pin-bob { animation-duration: 3.2s; }
.pin.done .pin-arrows { display: none; }
.pin:nth-child(2n) .pin-bob, .pin:nth-child(2n) .pin-shadow { animation-delay: -.5s; }
.pin:nth-child(3n) .pin-bob, .pin:nth-child(3n) .pin-shadow { animation-delay: -1s; }
@keyframes pin-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pin-shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.7); opacity: .5; } }
@keyframes pin-arrow { 0% { opacity: 0; transform: translateY(14px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }

/* Shop idle motions when zoomed in: mostly still, then a little move "once in a while". */
.shop-icon { transform-box: fill-box; transform-origin: 50% 70%; }
.lod-near .motion-shake .shop-icon { animation: shoe-shake 6s ease-in-out infinite; }
.lod-near .motion-hop .shop-icon { animation: brick-hop 5s ease-in-out infinite; }
.lod-near .motion-swing .shop-icon { animation: hanger-swing 7s ease-in-out infinite; transform-origin: 50% 10%; }
.lod-near .motion-sway .shop-icon { animation: bag-sway 6.5s ease-in-out infinite; transform-origin: 50% 20%; }
.lod-near .motion-wobble .shop-icon { animation: toy-wobble 5.5s ease-in-out infinite; }
.lod-near .motion-flicker .shop-icon { animation: flicker 4s steps(1) infinite; }
.lod-near .motion-swim .shop-icon { animation: swim 8s ease-in-out infinite; }
.steam circle { fill: rgba(255,255,255,.95); opacity: 0; }
.lod-near .motion-steam .steam circle { animation: steam 2.4s ease-out infinite; }
.lod-near .motion-steam .steam circle:nth-child(2) { animation-delay: .6s; }
.lod-near .motion-steam .steam circle:nth-child(3) { animation-delay: 1.2s; }
.shop:nth-child(odd) .shop-icon { animation-delay: -2s; }
.shop:nth-child(3n) .shop-icon { animation-delay: -3.5s; }
@keyframes shoe-shake { 0%, 78%, 100% { transform: rotate(0); } 80% { transform: rotate(-14deg) translateY(-3px); } 84% { transform: rotate(12deg); } 88% { transform: rotate(-9deg) translateY(-2px); } 92% { transform: rotate(6deg); } 96% { transform: rotate(-3deg); } }
@keyframes brick-hop { 0%, 70%, 100% { transform: translateY(0) scale(1); } 74% { transform: translateY(0) scale(1.1, .85); } 82% { transform: translateY(-16px) scale(.95, 1.08); } 90% { transform: translateY(0) scale(1.06, .92); } 95% { transform: scale(1); } }
@keyframes hanger-swing { 0%, 72%, 100% { transform: rotate(0); } 78% { transform: rotate(-12deg); } 86% { transform: rotate(10deg); } 93% { transform: rotate(-5deg); } }
@keyframes bag-sway { 0%, 75%, 100% { transform: rotate(0); } 80% { transform: rotate(8deg); } 88% { transform: rotate(-8deg); } 95% { transform: rotate(3deg); } }
@keyframes toy-wobble { 0%, 76%, 100% { transform: rotate(0) scale(1); } 80% { transform: rotate(-8deg) scale(1.1); } 86% { transform: rotate(8deg) scale(1.1); } 92% { transform: rotate(-4deg) scale(1.04); } }
@keyframes flicker { 0%, 80%, 100% { opacity: 1; } 82% { opacity: .3; } 85% { opacity: 1; } 88% { opacity: .4; } 90% { opacity: 1; } }
@keyframes swim { 0%, 100% { transform: translateX(0) scaleX(1); } 45% { transform: translateX(14px) scaleX(1); } 50% { transform: translateX(14px) scaleX(-1); } 95% { transform: translateX(0) scaleX(-1); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(0) scale(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-22px) scale(1.3); } }
.fountain .drops circle { animation: drop 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fountain .drops circle:nth-child(2) { animation-delay: .3s; } .fountain .drops circle:nth-child(3) { animation-delay: .6s; }
@keyframes drop { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-12px); opacity: .5; } }
.tree { animation: tree-sway 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.tree:nth-child(odd) { animation-delay: -3s; }
@keyframes tree-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.screen-atrium { animation: atrium-glow 3s ease-in-out infinite; }
@keyframes atrium-glow { 50% { stroke: #71b9ff; fill: #e3f1ff; } }

/* Google-Maps-style place card at the bottom of the map. */
.place-card { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; padding: 8px 16px 16px; border-radius: 24px; background: rgba(255,255,255,.98); box-shadow: 0 -4px 30px rgba(40,29,24,.22); transform: translateY(110%); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.place-card[hidden] { display: none; }
.place-card.open { transform: none; }
.card-grip { width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 5px; background: #e5d9c6; }
.card-head { display: grid; grid-template-columns: 50px 1fr 32px; align-items: center; gap: 12px; }
.wear-slot { display: flex; align-items: baseline; gap: 8px; margin: 12px 2px 6px; font-size: 12px; font-weight: 900; color: var(--muted); }
.wear-slot:first-child { margin-top: 0; }
.wear-slot small { font-weight: 600; opacity: .8; }
.complete-reward { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; margin-top: 10px; padding: 12px; border: 1.5px dashed rgba(40,29,24,.22); border-radius: 18px; background: #fffaf0; }
.complete-reward.done { border-style: solid; border-color: rgba(59,156,120,.32); background: #effbf6; }
.complete-reward .complete-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #ffe3dc; font-size: 26px; }
.complete-reward strong, .complete-reward small { display: block; }
.complete-reward small { margin-top: 3px; color: var(--muted); }
.complete-reward .status { color: #b38c32; font-size: 12px; font-weight: 900; }
.complete-reward.done .status { color: #25845f; }
.me-card { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; margin-bottom: 20px; }
.me-card .me-pet { width: 132px; margin: 0; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.me-stats div { padding: 10px 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.me-stats strong { display: block; font-size: 22px; line-height: 1; }
.me-stats strong small { font-size: 12px; color: var(--muted); }
.me-stats span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 800; }
.me-stats p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.me-log { display: grid; gap: 8px; }
.me-log-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; }
.me-log-row strong, .me-log-row small { display: block; }
.me-log-row small { margin-top: 2px; color: var(--muted); }
.me-log-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px dashed rgba(40,29,24,.25); color: #fff; font-size: 13px; font-weight: 900; }
.me-log-row.done .me-log-dot { border: 0; background: #25845f; }
.me-privacy .field-help { margin-bottom: 8px; }
.text-button.danger { color: #c0392b; }
.card-approx { margin: 6px 0 0; padding: 7px 10px; border-radius: 10px; background: #fff6dd; color: #8a6a1c; font-size: 12px; font-weight: 700; }
.video-demo { margin: 10px 0 0; color: rgba(255,255,255,.75); font-size: 12px; text-align: center; }
.card-emoji.has-art { width: 72px; height: 72px; border: 0; border-radius: 0; background: none; }
.card-emoji.has-art img, .checkpoint .icon.has-art img, .reward-item.has-art img, .station-icon.has-art img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(57,44,34,.22)); }
.checkpoint .icon.has-art { background: #fff8e6; padding: 4px; overflow: hidden; }
.reward-item.has-art { padding: 18px; }
.reward-item.has-art img { max-width: 132px; max-height: 132px; }
.card-head:has(.card-emoji.has-art) { grid-template-columns: 76px 1fr 32px; }
.card-emoji.has-art img { max-width: 72px; max-height: 72px; }
.checkpoint .icon.has-art img { max-width: 44px; max-height: 44px; }
.station-icon.has-art img { max-width: 120px; max-height: 120px; }
.station-icon.has-art { width: 120px; height: 120px; margin: 0 auto; }
.card-emoji { display: grid; place-items: center; width: 50px; height: 50px; border: 3px solid; border-radius: 16px; font-size: 26px; }
.card-title h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.card-title p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.card-kind { font-weight: 900; }
.card-close { width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: #f3ebdd; font-size: 14px; }
.card-text { margin: 10px 0 12px; color: #4f4239; font-size: 13px; line-height: 1.55; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card-action { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; font-size: 13px; font-weight: 900; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card-action.primary { color: white; background: var(--ink); border-color: var(--ink); }
.card-action.deal { border-color: #e2b23c; background: #fff6d8; color: #7a5a06; }
.card-action.deal small { padding: 2px 7px; border-radius: 999px; color: white; background: #e0453a; font-size: 10px; }
.card-action:active { transform: scale(.97); }

/* Generic bottom sheets: place list, coupon, event detail. */
.sheet { position: fixed; z-index: 40; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(30,18,10,0); transition: background .25s ease; }
.sheet[hidden] { display: none; }
.sheet.open { background: rgba(30,18,10,.5); }
.sheet-inner { width: min(430px, 100%); max-height: 86%; overflow-y: auto; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--cream); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sheet.open .sheet-inner { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-close { width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: #f3ebdd; font-size: 14px; }
.map-list .map-row { width: 100%; text-align: left; border: 1px solid var(--line); font: inherit; }
.map-list .map-row:active { background: #fff6e3; }

/* Coupon */
.coupon { position: relative; margin-bottom: 14px; padding: 18px 20px; border-radius: 20px; color: white; background: linear-gradient(135deg, #ff6d3a, #ffb13d); box-shadow: 0 16px 36px rgba(201,85,24,.3); overflow: hidden; }
.coupon::before, .coupon::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); transform: translateY(-50%); }
.coupon::before { left: -13px; } .coupon::after { right: -13px; }
.coupon-brand { font-size: 13px; font-weight: 900; opacity: .95; }
.coupon-brand span { margin-left: 6px; font-weight: 600; opacity: .8; }
.coupon-product { margin-top: 8px; font-size: 20px; font-weight: 900; }
.coupon-price { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.coupon-price s { opacity: .75; font-size: 14px; }
.coupon-price strong { font-size: 34px; letter-spacing: -.03em; }
.coupon-price em { padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 12px; font-style: normal; font-weight: 900; }
.coupon-label { margin-top: 8px; font-size: 13px; font-weight: 800; }
.coupon-code { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.5); font-size: 12px; }
.coupon-code b { margin-left: 6px; padding: 3px 9px; border-radius: 8px; background: white; color: #b64c19; font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; }

/* Events: cards are buttons; the detail sheet shows a live countdown. */
.event-card { width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.event-card:active { transform: scale(.985); }
.event-detail { display: grid; justify-items: center; text-align: center; }
.event-detail-emoji { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff1cb; font-size: 42px; }
.event-detail-when { margin: 12px 0 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.countdown { display: flex; align-items: center; gap: 6px; margin: 2px 0 12px; }
.countdown > div { display: grid; justify-items: center; min-width: 64px; padding: 10px 8px 6px; border-radius: 16px; color: white; background: var(--ink); }
.countdown strong { font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.countdown small { margin-top: 4px; font-size: 10px; opacity: .7; }
.countdown > span { font-size: 24px; font-weight: 900; color: var(--muted); }
.countdown.ending > div { background: #e0453a; animation: cd-pulse 1s ease-in-out infinite; }
@keyframes cd-pulse { 50% { transform: scale(1.03); } }
.event-detail-text { margin: 0 0 14px; color: #4f4239; font-size: 13px; line-height: 1.55; }
.event-detail .card-actions { justify-content: center; }

/* Video / trailer player */
.video-modal { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center; color: white; background: #0b0806; }
.video-modal[hidden] { display: none; }
.video-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: start; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) 20px 18px; background: linear-gradient(rgba(0,0,0,.7), transparent); }
.video-kicker { margin: 0; color: #ffd45c; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.video-top h2 { margin: 4px 0 0; font-size: 18px; }
.video-close { width: 40px; height: 40px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.2); font-size: 18px; }
.video-modal video { width: 100%; max-height: 70vh; background: black; }
.video-fallback { padding: 40px 24px; text-align: center; color: #d7cbbd; font-weight: 700; line-height: 1.6; }

/* Full-screen paint sheet: no spare space on top; draw, stickers, and 装扮. */
.draw-sheet { align-items: stretch; }
.draw-inner { width: min(430px, 100%); height: 100%; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: calc(8px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; }
.draw-header { margin-bottom: 8px; }
.draw-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: #f1e7d6; }
.draw-tab { padding: 8px 0; border: 0; border-radius: 11px; background: none; color: var(--muted); font-size: 13px; font-weight: 900; }
.draw-tab.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(40,29,24,.12); }
.paint-stage { flex: 1; min-height: 0; display: grid; place-items: start center; padding: 8px 0; container-type: size; }
.paint-stage .paint-board { width: min(100cqw, 100cqh); max-width: 100%; }
.paint-tools { flex: none; }
.paint-tools[hidden] { display: none; }
.stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sticker { height: 44px; border: 3px solid rgba(40,29,24,.1); border-radius: 12px; background: white; font-size: 24px; line-height: 1; }
.sticker.active { border-color: var(--ink); background: #fff1cb; transform: translateY(-2px); }
.wear-list { display: grid; gap: 8px; margin-bottom: 10px; max-height: 36vh; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.wear { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 16px; background: white; text-align: left; }
.wear-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff1cb; font-size: 22px; }
.wear strong, .wear small { display: block; }
.wear small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.wear-state { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f1e7d6; color: var(--muted); font-size: 14px; font-weight: 900; }
.wear.on { border-color: rgba(59,156,120,.4); background: #effbf6; }
.wear.on .wear-state { color: white; background: #25845f; }
.wear.locked { opacity: .6; }
.swatches.small .swatch { height: 36px; }
.draw-inner .draw-help { margin-top: 8px; }

/* ---- Access gate (gate.js) ---------------------------------------------------- */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 22px; background: rgba(40,29,24,.72); backdrop-filter: blur(10px); }
.gate[hidden] { display: none; }
body.gate-open { overflow: hidden; }
.gate-card { width: min(100%, 380px); padding: 24px 24px 20px; border-radius: 26px; background: var(--cream); box-shadow: 0 25px 80px rgba(0,0,0,.35); text-align: center; }
.gate-pet { width: 120px; margin: -10px auto 0; }
.gate-pet svg { display: block; width: 100%; height: auto; overflow: visible; }
.gate-card h2 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.gate-help { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.gate-card input { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: white; font-size: 18px; text-align: center; letter-spacing: .14em; outline: none; }
.gate-card input:focus { border-color: var(--ink); }
.gate-card .send-button { margin-top: 12px; }
.gate-status { min-height: 18px; margin: 10px 0 0; color: #9c3c25; font-size: 13px; font-weight: 800; }
.gate-back { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: none; }

/* ---- MapKit extras: floors, roads, route, calibration, NPCs, chips ------------- */
/* Floors scroll sideways in their own lane, clear of the zoom buttons on the right. */
.floor-bar { display: flex; gap: 6px; margin-top: 8px; margin-right: 52px; padding: 2px 2px 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.floor-bar::-webkit-scrollbar { display: none; }
.floor { flex: none; min-height: 40px; scroll-snap-align: start; min-width: 44px; padding: 7px 10px; border: 0; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.95); font-size: 13px; font-weight: 900; box-shadow: 0 6px 18px rgba(40,29,24,.14); -webkit-tap-highlight-color: transparent; }
.floor.active { color: white; background: var(--ink); }
.map-controls button.active { color: white; background: #5a3416; }
.map-controls button.locate.live { box-shadow: 0 0 0 4px rgba(40,120,189,.25), 0 6px 18px rgba(40,29,24,.16); }
.map-controls button.locate.following { background: #1f8a5b; }
.road-line { fill: none; stroke: rgba(40,120,189,.55); stroke-width: 6; stroke-dasharray: 10 8; stroke-linecap: round; stroke-linejoin: round; }
.route-under { fill: none; stroke: white; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.route-line { fill: none; stroke: #ff6d3a; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18 14; animation: route-flow 1.2s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -32; } }
.route-flag path:first-child { stroke: #281d18; stroke-width: 4; stroke-linecap: round; }
.route-flag path + path { fill: #ff6d3a; stroke: #281d18; stroke-width: 3; stroke-linejoin: round; }
.you-accuracy { fill: rgba(40,120,189,.14); stroke: rgba(40,120,189,.5); stroke-width: 2; }
.calib { display: none; }
.show-calib .calib { display: block; }
.calib circle { fill: #fff; stroke: #b8336a; stroke-width: 4; }
.calib.builtin circle { stroke: #2878bd; }
.calib.remote circle { stroke: #1f8a5b; }
.calib text { fill: #281d18; paint-order: stroke; stroke: white; stroke-width: 4; }
.calib-pending circle { fill: #ffd45c; stroke: #e0453a; }
/* Calibration mode: fade the tenant units so gates, atriums and task points stand out. */
.calib-mode .npc { opacity: .12 !important; pointer-events: none; }
.calib-mode .poi, .calib-mode .pin { opacity: 1 !important; pointer-events: auto; }
.npc { pointer-events: none; }
.npc-body { transform-box: fill-box; transform-origin: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-row[hidden] { display: none; }
.chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-size: 12px; font-weight: 800; }
.chip.active { color: white; background: var(--ink); border-color: var(--ink); }
.map-switch { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(40,29,24,.18); backdrop-filter: blur(10px); }
.map-switch-item { padding: 9px 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 900; }
.map-switch-item.active { color: var(--ink); background: #fff1cb; }
.map-switch-list { padding: 9px 14px; border: 0; border-radius: 999px; color: white; background: var(--ink); font-size: 12px; font-weight: 900; }
.nav-item .nav-capy { display: block; width: 26px; height: 26px; filter: grayscale(1); opacity: .6; transition: transform .2s; }
.nav-item .nav-capy svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nav-item.active .nav-capy { filter: none; opacity: 1; transform: translateY(-2px) scale(1.1); }
.event-capy { width: 44px; height: 44px; }
.event-capy svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---- GPS test page ------------------------------------------------------------- */
.gps-page { margin: 0; background: #1d1511; }
.gps-shell { display: grid; grid-template-rows: 1fr auto; height: 100dvh; max-width: 520px; margin: 0 auto; overflow: hidden; background: var(--cream); }
.gps-shell .map-stage { height: auto; min-height: 0; }
.gps-panel { position: relative; z-index: 5; max-height: 46dvh; overflow-y: auto; padding: 4px 14px calc(12px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--cream); box-shadow: 0 -8px 30px rgba(40,29,24,.18); transition: max-height .25s ease; }
.gps-panel.collapsed { max-height: 74px; overflow: hidden; }
.gps-grip { display: block; width: 100%; padding: 8px 0 4px; border: 0; background: none; }
.gps-grip span { display: block; width: 42px; height: 5px; margin: 0 auto; border-radius: 5px; background: #e5d9c6; }
.gps-status { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; }
.gps-dot { width: 12px; height: 12px; border-radius: 50%; background: #c9bfae; }
.gps-dot.wait { background: #ffd45c; animation: cd-pulse 1s ease-in-out infinite; }
.gps-dot.live { background: #25845f; box-shadow: 0 0 0 4px rgba(37,132,95,.2); }
.gps-dot.error { background: #e0453a; }
.gps-status-text strong { display: block; font-size: 14px; }
.gps-status-text small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.gps-mode { padding: 4px 9px; border-radius: 999px; background: #fff1cb; color: #8a6a1c; font-size: 11px; font-weight: 900; }
.gps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.gps-grid div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.gps-grid small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; }
.gps-grid strong { display: block; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gps-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gps-btn { padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-size: 12px; font-weight: 900; -webkit-tap-highlight-color: transparent; }
.gps-btn.primary { color: white; background: var(--ink); border-color: var(--ink); }
.gps-btn.active { color: white; background: #b8336a; border-color: #b8336a; }
.gps-btn:disabled { opacity: .45; }
.gps-actions.upload-row { grid-template-columns: 1fr; margin-top: 6px; }
.gps-btn.save.ready { background: #25845f; border-color: #25845f; animation: cd-pulse 1.2s ease-in-out infinite; }
.gps-calib, .gps-route { margin-top: 10px; padding: 10px; border-radius: 14px; background: #fff6e3; }
.gps-route { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.gps-route[hidden], .gps-calib[hidden] { display: none; }
.gps-help { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.gps-calib .gps-help:last-child { margin: 8px 0 0; }
.gps-log { margin-top: 10px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #4f4239; }
.gps-log div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 3px 0; border-top: 1px dashed var(--line); }
.gps-log span { color: var(--muted); }
.gps-page .toast { position: fixed; z-index: 30; left: 50%; bottom: calc(50dvh); width: min(390px, calc(100% - 32px)); margin: 0; transform: translateX(-50%); box-shadow: 0 12px 30px rgba(40,29,24,.18); }

/* ---- Tenant shops from the mall directory (1F): shape = tap area, symbol = category ---- */
.unit { cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.mall-map [data-place]:focus { outline: none; }
.unit-hit { fill: transparent; stroke: none; }
.unit.selected .unit-hit { fill: rgba(255,138,61,.18); stroke: #ff6d3a; stroke-width: 4; }
.unit-icon circle { fill: #fff; stroke: #e2c99c; stroke-width: 2; }
.unit-icon text { font-size: 12px; pointer-events: none; }
.unit-icon { transition: opacity .3s ease; pointer-events: none; }
.lod-far .unit-icon { opacity: 0; }
.lod-far .unit { pointer-events: none; }
.card-unit { margin-left: 6px; color: #b9ab96; font-size: 10px; font-weight: 600; }

/* ---- Themed badges (正佳): small animated icons instead of pins; pin only on tap ------- */
.badge { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.badge-disc { fill: #fff; stroke-width: 3; }
.badge-shadow { fill: rgba(40,29,24,.18); }
.badge-icon { transform-box: fill-box; transform-origin: 50% 80%; }
.badge-icon text { font-size: 20px; pointer-events: none; }
.badge-name { font-size: 11px; font-weight: 900; fill: #4f4239; paint-order: stroke; stroke: #fffaf0; stroke-width: 4px; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.lod-near .badge-name { opacity: 1; }
.badge.selected .badge-disc { fill: #fff3d6; }
.badge.anchor { display: none; }
.calib-mode .badge.anchor { display: block; }
.badge.motion-hop .badge-icon { animation: brick-hop 3.6s ease-in-out infinite; }
.badge.motion-shake .badge-icon { animation: shoe-shake 4.5s ease-in-out infinite; }
.badge.motion-swing .badge-icon { animation: hanger-swing 5s ease-in-out infinite; transform-origin: 50% 10%; }
.badge.motion-wobble .badge-icon { animation: toy-wobble 4s ease-in-out infinite; }
.badge.motion-flash .badge-icon { animation: flicker 3.2s steps(1) infinite; }
.badge.motion-bob .badge-icon { animation: badge-bob 2.6s ease-in-out infinite; }
.badge.motion-waddle .badge-icon { animation: badge-waddle 1.8s ease-in-out infinite; }
.badge.motion-sparkle .badge-icon { animation: badge-sparkle 3s ease-in-out infinite; }
.badge:nth-child(odd) .badge-icon { animation-delay: -1.3s; }
@keyframes badge-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes badge-waddle { 0%, 100% { transform: rotate(-10deg) translateX(-2px); } 50% { transform: rotate(10deg) translateX(2px); } }
@keyframes badge-sparkle { 0%, 70%, 100% { transform: scale(1); filter: none; } 80% { transform: scale(1.25) rotate(-8deg); filter: brightness(1.4); } 90% { transform: scale(1.1) rotate(6deg); } }
.sel-pin { pointer-events: none; }
.sel-pin .pin, .lod-near .sel-pin .pin { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .badge-icon { animation: none !important; } }

/* ---- Off-map indicator ---------------------------------------------------------- */
.offmap { position: absolute; z-index: 3; display: flex; align-items: center; gap: 6px; transform: translate(-20px, -20px); pointer-events: none; }
.offmap[hidden] { display: none; }
.offmap-arrow { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(40,29,24,.3)); transition: transform .3s ease; }
.offmap-arrow circle { fill: #2878bd; stroke: #fff; stroke-width: 3; }
.offmap-arrow path { fill: #fff; }
.offmap-text { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.96); color: #281d18; font-size: 12px; font-weight: 900; white-space: nowrap; box-shadow: 0 6px 16px rgba(40,29,24,.18); }
.offmap.text-left { flex-direction: row-reverse; transform: translate(calc(-100% + 20px), -20px); }

/* 1.7: illustrated objects on the plan instead of small circles (stickers.js, 赤岗打卡地图 style) */
.stk-shadow { fill: rgba(40, 29, 24, .16); }
.unit-stk { pointer-events: none; transition: opacity .3s ease; }
.lod-far .unit-stk.sm { opacity: 0; }   /* small shops' objects appear when you zoom in */
.unit.selected .unit-stk .stk-art { filter: drop-shadow(0 0 6px rgba(255, 109, 58, .9)); }
.stk-badge .badge-icon { transform-box: fill-box; transform-origin: 50% 90%; }
.stk-name { font-size: 11px; font-weight: 900; fill: #2b2724; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.badge.selected .stk-art { filter: drop-shadow(0 0 6px rgba(255, 109, 58, .9)); }

/* ---- Map search + turn-by-turn directions (phone 地图 tab) -------------------------- */
.map-search { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(40,29,24,.18); }
.map-search input { min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); padding: 8px 0; }
.map-search input::placeholder { color: #a99c8c; font-weight: 600; }
.map-search .map-search-list { border: 0; cursor: pointer; }
.search-results { margin-top: 6px; max-height: 52dvh; overflow-y: auto; padding: 6px; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 12px 30px rgba(40,29,24,.22); }
.search-results[hidden] { display: none; }
.search-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.search-row:active, .search-row:hover { background: #fff3d6; }
.search-row strong, .search-row small { display: block; }
.search-row small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.search-icon { display: grid; place-items: center; width: 36px; height: 36px; font-size: 22px; }
.search-go { padding: 6px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; }
.search-empty { margin: 8px; color: var(--muted); font-size: 13px; }
.map-gps { position: absolute; left: 12px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.95); font-size: 12px; font-weight: 800; box-shadow: 0 6px 16px rgba(40,29,24,.16); }
.map-gps i { width: 9px; height: 9px; border-radius: 50%; background: #c9bfae; }
.map-gps.live i { background: #25845f; box-shadow: 0 0 0 3px rgba(37,132,95,.22); }
.map-gps.wait i { background: #ffd45c; } .map-gps.err i { background: #e0453a; }
body.navigating .map-gps { display: none; }
.nav-panel { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; max-height: 36%; overflow-y: auto; padding: 12px 14px 14px; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 -6px 30px rgba(40,29,24,.24); }
.nav-panel[hidden] { display: none; }
.nav-head { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; }
.nav-dest { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff3d6; font-size: 22px; }
.nav-head strong { display: block; font-size: 16px; }
.nav-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.nav-end { padding: 8px 14px; border: 0; border-radius: 999px; background: #f3ebdd; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.nav-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff6d8; color: #7a5a06; font-size: 12px; font-weight: 700; }
.nav-steps { list-style: none; margin: 10px 0 8px; padding: 0; counter-reset: s; }
.nav-steps li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 700; }
.nav-steps li:first-child { border-top: 0; }
.nav-steps li.now { color: #1f6fb5; }
.nav-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eef5ff; font-size: 15px; }
.nav-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* compact navigation bar */
.nav-panel { max-height: none; padding: 10px 12px; }
.nav-head { grid-template-columns: 40px 1fr auto auto; }
.nav-go { padding: 10px 20px; border: 0; border-radius: 999px; background: #1f8a5b; color: #fff; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 16px rgba(31,138,91,.35); }
.nav-end { width: 36px; height: 36px; padding: 0; }
.nav-sim { display: block; margin: 8px auto 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; text-decoration: underline; cursor: pointer; }
