:root {
  color: #17241f;
  background: #f4f8f6;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; background: #f4f8f6; }

button { font: inherit; }

.app-shell {
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

.topbar { display: grid; gap: 6px; margin-bottom: 22px; }

.eyebrow, .section-kicker, .route-kind { margin: 0; font-size: 12px; letter-spacing: 0; }

.eyebrow { color: #64736c; font-weight: 700; }

h1, h2, p { margin-top: 0; }

h1 { margin-bottom: 0; font-size: 30px; line-height: 1.15; letter-spacing: 0; }

.route-kind { color: #168561; font-weight: 700; }

.map-preview {
  position: relative;
  height: 258px;
  overflow: hidden;
  border: 1px solid #b9d7c8;
  border-radius: 8px;
  background-color: #dceadf;
  background-image: linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 22px 22px;
}

.water { position: absolute; width: 125%; height: 64px; left: -10%; background: #b5ddec; transform: rotate(-7deg); }
.water-north { top: -33px; }
.water-south { bottom: -39px; transform: rotate(5deg); }

.island { position: absolute; inset: 24px 12px 22px; border-radius: 47% 43% 42% 47%; background: #d2e4b7; transform: rotate(-3deg); }

.outer-loop { position: absolute; inset: 16px 22px; border: 13px solid #f8fbf9; border-radius: 46% 50% 44% 47%; box-shadow: inset 0 0 0 2px #acc9bb; }

.inner-road { position: absolute; border: 7px solid rgba(248,251,249,.9); border-radius: 50%; }
.road-one { inset: 52px 68px; transform: rotate(28deg); }
.road-two { inset: 73px 44px 42px; transform: rotate(-22deg); }

.map-label { position: absolute; z-index: 2; color: #547061; font-size: 11px; font-weight: 700; white-space: nowrap; transform: rotate(3deg); }
.label-north { top: 5px; left: 44%; }
.label-west { top: 47%; left: 4px; }
.label-east { top: 45%; right: 0; }
.label-south { bottom: 2px; left: 43%; }

.map-dot { position: absolute; z-index: 3; display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; transform: rotate(3deg); }
.start-dot { bottom: 26px; left: 51%; background: #1a9b6b; }
.finish-dot { bottom: 5px; left: 60%; background: #dd5d45; }

.direction { position: absolute; z-index: 3; color: #168561; font-size: 28px; font-weight: 800; line-height: 1; transform: rotate(3deg); }
.direction-one { left: 15%; bottom: 31%; }
.direction-two { left: 43%; top: 9%; transform: rotate(92deg); }
.direction-three { right: 17%; top: 37%; transform: rotate(182deg); }

.route-card { margin-top: 20px; padding: 18px; border: 1px solid #d8e2dc; border-radius: 8px; background: #fff; }
.route-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-kicker { margin-bottom: 5px; color: #75837c; font-weight: 700; }
h2 { margin-bottom: 0; font-size: 17px; line-height: 1.4; letter-spacing: 0; }
.mode-badge { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #a8d4bc; border-radius: 4px; color: #137853; background: #ecf8ef; font-size: 12px; font-weight: 700; }

.route-stops { margin: 0; padding: 0; list-style: none; }
.route-stop { position: relative; display: flex; gap: 12px; min-height: 52px; align-items: flex-start; }
.route-stop:not(:last-child)::after { position: absolute; top: 22px; left: 9px; width: 2px; height: 29px; background: #c7d6ce; content: ""; }
.stop-marker { position: relative; z-index: 1; display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 800; }
.current .stop-marker { background: #1a9b6b; }
.waypoint .stop-marker { width: 12px; height: 12px; margin: 4px; background: #f5ad44; }
.destination .stop-marker { background: #dd5d45; }
.route-stop strong, .route-stop small { display: block; }
.route-stop strong { margin-top: 1px; font-size: 14px; }
.route-stop small { margin-top: 2px; color: #718078; font-size: 12px; line-height: 1.35; }

.notice { margin: 14px 2px 0; color: #5d6a64; font-size: 12px; line-height: 1.55; }
.notice p { margin-bottom: 0; }

.action-area { padding-top: 20px; }
.start-button { width: 100%; min-height: 52px; border: 0; border-radius: 7px; color: #fff; background: #167c59; box-shadow: 0 6px 16px rgba(22,124,89,.2); font-weight: 750; cursor: pointer; }
.start-button:active { background: #0d6547; transform: translateY(1px); }
.start-button:focus-visible { outline: 3px solid #75c7a7; outline-offset: 3px; }
.status-message { min-height: 18px; margin: 10px 0 0; color: #77847e; text-align: center; font-size: 12px; line-height: 1.45; }
.status-message.is-error { color: #b14f3a; }

@media (min-width: 521px) {
  body { background: #e8efeb; }
  .app-shell { background: #f4f8f6; box-shadow: 0 0 48px rgba(38,69,55,.08); }
}
