:root {
  --bg: #fbfcf8;
  --panel: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #7a8794;
  --line: #e4e9e3;
  --green: #1f9d55;
  --green-soft: #e9f8ef;
  --gold: #f3ad2e;
  --orange: #f06d32;
  --blue: #2e7cf5;
  --cyan: #17a6b7;
  --rose: #de4f7a;
  --violet: #7e52d9;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.10);
  --soft-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --map-shadow: 0 38px 90px rgba(50, 83, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 48% 28%, rgba(218, 238, 209, 0.55), transparent 34%),
    #fbfcf8;
  background-size: 36px 36px, 36px 36px, auto, auto;
  line-height: 1.5;
  letter-spacing: 0;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  display: none;
}

.page {
  min-height: 100vh;
}

.desktop-pixel-replica {
  display: none;
}

.shell {
  width: min(1504px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 228, 219, 0.92);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
}

.nav {
  height: 86px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid #2a8d4b;
  border-radius: 50%;
  color: #fffaf0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0 25%, transparent 26%),
    conic-gradient(from 35deg, #1f8a49, #f0b03a, #287bd9, #1f8a49);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35), 0 10px 24px rgba(31, 157, 85, 0.22);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.4;
}

.brand-title {
  display: grid;
  gap: 1px;
}

.brand-title strong {
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
}

.brand-title span {
  color: #5d6b77;
  font-size: 13px;
  font-weight: 750;
}

.nav-tabs {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 70px;
  color: #697681;
  font-size: 16px;
  font-weight: 850;
}

.nav-tabs a {
  position: relative;
  padding: 30px 8px 28px;
}

.nav-tabs a.active {
  color: var(--ink);
}

.nav-tabs a.active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.profile {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #142033;
  background: transparent;
  transition: background 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  background: #eef5ef;
  transform: translateY(-1px);
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 950;
  background: #142033;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: minmax(240px, 286px) minmax(620px, 1fr) minmax(350px, 408px);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: start;
  min-height: 0;
  padding: 32px 0 26px;
}

.hero-copy {
  align-self: start;
  padding-top: 76px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 3.4vw, 50px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy h1 span {
  position: relative;
  display: inline-block;
}

.hero-copy h1 span::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 6px;
  z-index: -1;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 157, 85, 0.22);
  transform: rotate(-2deg);
}

.lead {
  margin: 26px 0 0;
  max-width: 268px;
  color: #566574;
  font-size: 17px;
  font-weight: 700;
}

.quick-stats {
  display: grid;
  gap: 14px;
  margin-top: 74px;
  max-width: 188px;
}

.stat-tile {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.stat-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #eff9f2;
}

.stat-tile strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.stat-tile span {
  display: block;
  margin-top: 5px;
  color: #677583;
  font-size: 12px;
  font-weight: 800;
}

.map-board {
  position: relative;
  min-height: 710px;
  isolation: isolate;
}

.map-shell {
  min-width: 0;
}

.mobile-map-hint,
.mobile-map-focus,
.mobile-map-core,
.mobile-group-rail,
.mobile-node-rail,
.mobile-node-detail {
  display: none;
}

.group-pin {
  display: none;
}

.mobile-node-panel,
.mobile-switcher {
  display: none;
}

.map-art {
  position: absolute;
  inset: 49% auto auto 50%;
  z-index: 1;
  width: min(1000px, 128%);
  max-width: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(var(--map-shadow));
  user-select: none;
  pointer-events: none;
}

.map-center {
  position: absolute;
  left: 50.2%;
  top: 50.4%;
  z-index: 4;
  width: 184px;
  padding: 16px 12px 15px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(45, 84, 44, 0.12);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.map-center strong {
  display: block;
  font-size: 16px;
  font-weight: 950;
}

.map-center span {
  display: block;
  margin-top: 4px;
  color: #667582;
  font-size: 12px;
  font-weight: 750;
}

.node-pin {
  position: absolute;
  z-index: 5;
  display: grid;
  min-width: 116px;
  padding: 9px 13px 10px;
  border: 1px solid rgba(223, 229, 219, 0.95);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.node-pin::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--state-color, var(--accent));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 160ms ease;
}

.node-pin:hover,
.node-pin.active {
  border-color: rgba(31, 157, 85, 0.35);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  transform: translate(-50%, -54%);
}

.node-pin.active::after {
  opacity: 1;
}

.node-pin strong {
  display: block;
  padding-right: 13px;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
}

.node-pin span {
  display: block;
  margin-top: 5px;
  color: #667582;
  font-size: 12px;
  font-weight: 750;
}

.node-pin small {
  position: absolute;
  right: -36px;
  bottom: -9px;
  min-width: 34px;
  padding: 2px 7px;
  border: 1px solid rgba(31, 157, 85, 0.14);
  border-radius: 999px;
  color: var(--state-color, var(--green));
  background: var(--state-surface, #eff9f2);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.pin-oracle { left: 50%; top: 26.5%; --accent: #d94825; }
.pin-train { left: 71%; top: 33%; --accent: #233b53; }
.pin-food { left: 86%; top: 50.5%; --accent: #f28a2d; }
.pin-travel { left: 81%; top: 68%; --accent: #d94825; }
.pin-band { left: 73.5%; top: 83%; --accent: #7b4bb7; }
.pin-flash { left: 50.5%; top: 85%; --accent: #f2a91f; }
.pin-english { left: 31.5%; top: 82.5%; --accent: #2d7cf6; }
.pin-party { left: 20.5%; top: 68%; --accent: #11a9b5; }
.pin-drink { left: 15%; top: 51%; --accent: #b56d23; }
.pin-moment { left: 27%; top: 33%; --accent: #de4f7a; }

.report {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(218, 225, 216, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.report h2,
.report h3,
.future h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 950;
}

.report-note {
  margin: 5px 0 0;
  color: #596776;
  font-size: 13px;
  font-weight: 750;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid #d8e9dd;
  border-radius: 999px;
  color: var(--green);
  background: #f4fbf6;
  font-size: 12px;
  font-weight: 900;
}

.xp-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.xp-ring {
  --p: 72%;
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 var(--p), #e8eee9 var(--p) 100%);
}

.xp-ring::before {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
}

.xp-ring span {
  position: relative;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.xp-number strong {
  display: block;
  color: var(--green);
  font-size: 45px;
  line-height: 1;
  font-weight: 950;
}

.xp-number span {
  display: block;
  margin-top: 5px;
  color: #667582;
  font-size: 13px;
  font-weight: 800;
}

.metric-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #566574;
  font-size: 15px;
  font-weight: 800;
}

.metric-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.08);
}

.metric-list b {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.harvest-head,
.tasks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.more-link {
  color: #7a8794;
  font-size: 12px;
  font-weight: 850;
}

.harvest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.harvest {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  text-align: center;
}

.harvest[data-linked-node],
.task-list li[data-linked-node] {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.harvest[data-linked-node]:hover,
.task-list li[data-linked-node]:hover,
.harvest[data-linked-node]:focus-visible,
.task-list li[data-linked-node]:focus-visible {
  border-color: rgba(31, 157, 85, 0.32);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
  outline: none;
  transform: translateY(-1px);
}

.harvest.linked-active,
.task-list li.linked-active {
  border-color: rgba(31, 157, 85, 0.46);
  background: linear-gradient(180deg, #ffffff, #f4fbf6);
  box-shadow: 0 14px 28px rgba(31, 157, 85, 0.12);
}

.harvest-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 13px;
  color: var(--accent);
  background: var(--surface);
}

.harvest-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.harvest strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
}

.harvest span {
  display: block;
  margin-top: 4px;
  color: #7a8794;
  font-size: 11px;
  font-weight: 750;
}

.task-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto 28px;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: #4f5f6d;
  font-size: 13px;
  font-weight: 850;
}

.check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
}

.task-list b {
  color: var(--green);
  font-weight: 950;
}

.task-done {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
}

.future {
  padding: 0 0 34px;
}

.future-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.future-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 17px;
}

.future-head p {
  margin: 5px 0 0;
  color: #71808e;
  font-size: 13px;
  font-weight: 750;
}

.future-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.future-module {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.future-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface);
  box-shadow: inset 0 -8px 16px rgba(15, 23, 42, 0.05);
}

.future-icon svg {
  width: 26px;
  height: 26px;
}

.future-module strong {
  display: block;
  font-size: 15px;
  font-weight: 950;
}

.future-module span {
  display: block;
  margin-top: 4px;
  color: #7a8794;
  font-size: 12px;
  font-weight: 750;
}

.mine-panel {
  display: grid;
  gap: 18px;
}

.mine-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mine-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #142033;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  font-size: 21px;
  font-weight: 950;
}

.mine-head h2,
.mine-section h3 {
  margin: 0;
  line-height: 1.18;
  font-weight: 950;
}

.mine-head h2 {
  font-size: 24px;
}

.mine-head p {
  margin: 5px 0 0;
  color: #667582;
  font-size: 13px;
  font-weight: 750;
}

.mine-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mine-stats div,
.achievement-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.mine-stats div {
  padding: 14px;
}

.mine-stats span {
  display: block;
  color: #71808e;
  font-size: 12px;
  font-weight: 850;
}

.mine-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.mine-section {
  display: grid;
  gap: 12px;
}

.mine-section h3 {
  font-size: 17px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.achievement-grid article {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 14px;
}

.achievement-grid svg {
  width: 26px;
  height: 26px;
  color: var(--green);
}

.achievement-grid strong {
  font-size: 14px;
  font-weight: 950;
}

.achievement-grid span {
  color: #71808e;
  font-size: 12px;
  font-weight: 750;
}

.trail-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trail-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.trail-list span {
  color: #71808e;
  font-size: 12px;
  font-weight: 850;
}

.trail-list strong {
  color: #425160;
  font-size: 13px;
  font-weight: 850;
}

.stages {
  display: none;
}

/* Desktop map follows the illustrated quest-board composition from the selected reference. */
@media (min-width: 881px) {
  .page {
    min-height: auto;
  }

  .page > .topbar,
  .page > main {
    display: none;
  }

  .desktop-pixel-replica {
    position: relative;
    display: block;
    width: min(100%, 1536px);
    aspect-ratio: 3 / 2;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
  }

  .desktop-pixel-replica > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
  }

  .pixel-hotspots {
    position: absolute;
    inset: 0;
  }

  .pixel-hotspot {
    position: absolute;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    opacity: 0;
    background: transparent;
  }

  .pixel-hotspot:focus-visible {
    opacity: 1;
    outline: 3px solid rgba(31, 133, 65, 0.72);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.08);
  }

  .hotspot-nav-map { left: 35.2%; top: 3.2%; width: 7.8%; height: 6%; }
  .hotspot-nav-explore { left: 46.2%; top: 3.2%; width: 5.3%; height: 6%; }
  .hotspot-nav-achievement { left: 54.5%; top: 3.2%; width: 5.3%; height: 6%; }
  .hotspot-search { left: 82.4%; top: 3.5%; width: 3.8%; height: 5.7%; }
  .hotspot-notification { left: 87%; top: 3.5%; width: 3.8%; height: 5.7%; }
  .hotspot-profile { left: 91%; top: 2.6%; width: 6.2%; height: 6.8%; }

  .hotspot-moment { left: 24%; top: 18%; width: 10%; height: 17%; }
  .hotspot-oracle { left: 37.5%; top: 11.5%; width: 8.5%; height: 17%; }
  .hotspot-train { left: 50.2%; top: 16%; width: 10.5%; height: 21%; }
  .hotspot-drink { left: 17.2%; top: 35.5%; width: 10.2%; height: 18%; }
  .hotspot-food { left: 60%; top: 33.5%; width: 10%; height: 20%; }
  .hotspot-party { left: 21.2%; top: 53%; width: 11.5%; height: 18%; }
  .hotspot-travel { left: 50.5%; top: 51%; width: 11%; height: 20%; }
  .hotspot-english { left: 31.4%; top: 64%; width: 11%; height: 17%; }
  .hotspot-flash { left: 42.2%; top: 61.5%; width: 8%; height: 18%; }
  .hotspot-band { left: 60.2%; top: 59%; width: 9.5%; height: 21%; }

  .hotspot-task-train { left: 73.4%; top: 53.9%; width: 23.4%; height: 5.4%; }
  .hotspot-task-flash { left: 73.4%; top: 59.5%; width: 23.4%; height: 5.4%; }
  .hotspot-task-english { left: 73.4%; top: 65.4%; width: 23.4%; height: 5.4%; }

  body {
    background: #ffffff;
  }

  .shell {
    width: min(1472px, calc(100% - 64px));
  }

  .topbar {
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
  }

  .nav {
    height: 102px;
    grid-template-columns: 280px 1fr 280px;
  }

  .brand {
    gap: 11px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-color: #2a8645;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.44);
  }

  .brand-title strong {
    font-size: 28px;
    font-weight: 850;
  }

  .brand-title span {
    font-size: 15px;
    font-weight: 700;
  }

  .nav-tabs {
    gap: 62px;
    color: #161b17;
    font-size: 19px;
    font-weight: 800;
  }

  .nav-tabs a {
    padding: 36px 8px 29px;
  }

  .nav-tabs a.active::after {
    right: 1px;
    bottom: 18px;
    height: 4px;
    background: #238340;
  }

  .profile {
    gap: 16px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
  }

  .icon-button svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
  }

  .avatar {
    width: 52px;
    height: 52px;
    color: #1f3424;
    border: 2px solid #c6d4bb;
    background: #fff7e8;
    box-shadow: none;
  }

  .hero {
    grid-template-columns: 218px minmax(690px, 1fr) 394px;
    gap: clamp(18px, 2vw, 30px);
    min-height: 710px;
    padding: 12px 0 20px;
  }

  .hero-copy {
    padding-top: 62px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 3.05vw, 48px);
    line-height: 1.2;
    font-weight: 850;
  }

  .hero-copy h1 span::after {
    left: -5px;
    right: -5px;
    bottom: 1px;
    height: 4px;
    background: #2b8443;
  }

  .lead {
    margin-top: 29px;
    max-width: 195px;
    color: #262d29;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.95;
  }

  .quick-stats {
    gap: 12px;
    margin-top: 75px;
    max-width: 182px;
  }

  .stat-tile {
    grid-template-columns: 46px 1fr;
    min-height: 96px;
    padding: 13px 15px;
    border: 2px solid #c9d2bd;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: none;
  }

  .stat-mark {
    width: 43px;
    height: 43px;
    background: transparent;
  }

  .stat-tile strong {
    font-size: 33px;
  }

  .stat-tile span {
    color: #3f4942;
    font-size: 13px;
  }

  .map-board {
    min-height: 694px;
  }

  .map-art {
    top: 48.5%;
    width: min(920px, 123%);
    filter: none;
  }

  .map-center {
    left: 50.2%;
    top: 51%;
    width: 220px;
    padding: 14px 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: none;
  }

  .map-center strong {
    font-size: 17px;
    font-weight: 800;
  }

  .map-center span {
    margin-top: 5px;
    color: #2e342f;
    font-size: 14px;
    font-weight: 650;
  }

  .node-pin {
    min-width: 124px;
    padding: 5px 6px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  .node-pin::after {
    right: auto;
    left: calc(50% + 40px);
    top: 8px;
    width: 9px;
    height: 9px;
    box-shadow: none;
  }

  .node-pin:hover,
  .node-pin.active {
    border-color: transparent;
    box-shadow: none;
    transform: translate(-50%, -53%);
  }

  .node-pin strong {
    padding-right: 0;
    font-size: 17px;
    line-height: 1.28;
    font-weight: 850;
  }

  .node-pin span {
    margin-top: 3px;
    color: #3d4741;
    font-size: 14px;
    font-weight: 600;
  }

  .node-pin small {
    right: -11px;
    bottom: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
  }

  .pin-oracle { left: 50%; top: 24.8%; }
  .pin-train { left: 71%; top: 35.5%; }
  .pin-food { left: 86%; top: 55.2%; }
  .pin-travel { left: 78.8%; top: 73.2%; }
  .pin-band { left: 82.5%; top: 91.7%; }
  .pin-flash { left: 55%; top: 91.7%; }
  .pin-english { left: 35.2%; top: 91.7%; }
  .pin-party { left: 20%; top: 74%; }
  .pin-drink { left: 13%; top: 55.5%; }
  .pin-moment { left: 28.5%; top: 35%; }

  .report {
    position: relative;
    gap: 15px;
    margin-top: 8px;
    padding: 18px 20px 14px;
    border: 2px solid #bac7ad;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .report h2,
  .report h3,
  .future h2 {
    font-size: 20px;
    font-weight: 850;
  }

  .report-note,
  .profile-pill {
    display: none;
  }

  .xp-row {
    grid-template-columns: 82px 1fr;
    gap: 14px;
    padding: 8px 0 0;
    border-bottom: 0;
  }

  .report-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d9dfd1;
  }

  .xp-ring {
    width: 70px;
    height: 70px;
  }

  .xp-ring::before {
    width: 50px;
    height: 50px;
  }

  .xp-ring span {
    display: none;
  }

  .xp-number {
    display: grid;
    align-content: center;
  }

  .xp-number strong {
    order: 2;
    font-size: 44px;
    font-weight: 650;
  }

  .xp-number span {
    order: 1;
    margin: 0;
    color: #455047;
    font-size: 15px;
    font-weight: 600;
  }

  .metric-list {
    position: static;
    width: auto;
    gap: 8px;
  }

  .metric-list li {
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    color: #3e4842;
    font-size: 14px;
    font-weight: 600;
  }

  .metric-dot {
    width: 9px;
    height: 9px;
    box-shadow: none;
  }

  .metric-list b {
    color: #176b36;
    font-size: 16px;
    font-weight: 800;
  }

  .harvest-head,
  .tasks-head {
    margin-bottom: 11px;
  }

  .more-link {
    color: #1f2923;
    font-size: 13px;
    font-weight: 700;
  }

  .harvest-grid {
    gap: 0;
  }

  .harvest {
    min-height: 122px;
    padding: 7px 5px;
    border-width: 0 1px 0 0;
    border-radius: 0;
  }

  .harvest:last-child {
    border-right: 0;
  }

  .harvest-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 7px;
    border-radius: 50%;
    background: transparent;
  }

  .harvest-icon svg {
    width: 37px;
    height: 37px;
    stroke-width: 1.8;
  }

  .harvest strong {
    font-size: 13px;
    font-weight: 750;
  }

  .harvest span {
    color: #59625c;
    font-size: 12px;
    font-weight: 550;
  }

  .task-list {
    gap: 0;
  }

  .task-list li {
    min-height: 56px;
    padding: 8px 0;
    border-width: 1px 0 0;
    border-radius: 0;
    color: #29342d;
    font-size: 14px;
    font-weight: 600;
  }

  .task-list li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .check,
  .task-done {
    width: 20px;
    height: 20px;
  }

  .task-list b {
    color: #238343;
    font-size: 14px;
    font-weight: 800;
  }

  .future {
    padding: 0 0 28px;
  }

  .future-panel {
    padding: 13px 16px 11px;
    border: 2px solid #d2d9c9;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: none;
  }

  .future-head {
    margin-bottom: 9px;
  }

  .future-head p {
    display: none;
  }

  .future-strip {
    gap: 12px;
  }

  .future-module {
    grid-template-columns: 56px 1fr;
    min-height: 90px;
    padding: 10px 12px;
    border-color: #d9ded3;
    border-radius: 13px;
  }

  .future-icon {
    width: 50px;
    height: 50px;
    box-shadow: none;
  }
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: minmax(220px, 280px) minmax(560px, 1fr);
  }

  .hero-copy {
    padding-top: 64px;
  }

  .report {
    grid-column: 1 / -1;
    grid-template-columns: 1.05fr 1fr 1.05fr;
    align-items: start;
  }

  .report-head,
  .xp-row {
    grid-column: auto;
  }

  .report-summary {
    grid-template-columns: minmax(0, 1fr) 122px;
  }

  .xp-row {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 6px;
  }

  .xp-number strong {
    font-size: 38px;
  }

  .metric-list li {
    font-size: 12px;
  }

  .future-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Keep the map and daily report together on ordinary laptop widths. */
@media (min-width: 1181px) and (max-width: 1280px) {
  .hero {
    grid-template-columns: 180px minmax(480px, 1fr) 330px;
    gap: 18px;
  }

  .hero-copy {
    padding-top: 62px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 14px;
  }

  .quick-stats {
    margin-top: 58px;
    max-width: 170px;
  }

  .map-board {
    min-height: 628px;
  }

  .map-art {
    width: 136%;
  }

  .report {
    grid-column: auto;
    grid-template-columns: none;
  }

  .report-head,
  .xp-row {
    grid-column: auto;
  }

  .future-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  body {
    padding-bottom: 92px;
    background-size: 32px 32px, 32px 32px, auto, auto;
    overflow-x: hidden;
  }

  [data-mobile-panel] {
    display: none !important;
  }

  body:not([data-mobile-view]) [data-mobile-panel="map"],
  body[data-mobile-view="map"] [data-mobile-panel="map"] {
    display: block !important;
  }

  body[data-mobile-view="landmarks"] [data-mobile-panel="landmarks"] {
    display: grid !important;
  }

  body[data-mobile-view="today"] [data-mobile-panel="today"] {
    display: grid !important;
  }

  body[data-mobile-view="profile"] .hero {
    display: none;
  }

  body[data-mobile-view="profile"] [data-mobile-panel="profile"] {
    display: block !important;
  }

  .shell {
    width: min(100% - 28px, 720px);
  }

  .nav {
    height: 74px;
    grid-template-columns: 1fr auto;
  }

  .nav-tabs,
  .profile .icon-button {
    display: none;
  }

  .brand-title strong {
    font-size: 23px;
  }

  .profile {
    gap: 0;
  }

  .avatar {
    width: 44px;
    height: 44px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
    padding: 14px 0 18px;
  }

  .hero-copy {
    display: grid;
    gap: 10px;
    padding-top: 0;
  }

  .hero-copy h1 {
    max-width: 330px;
    font-size: 30px;
    line-height: 1.1;
  }

  .lead {
    max-width: none;
    margin: 0;
    color: #50606f;
    font-size: 14px;
    line-height: 1.48;
  }

  .quick-stats {
    display: none;
  }

  .map-board {
    width: 100%;
    height: clamp(338px, 58vh, 430px);
    min-height: auto;
    max-width: none;
    overflow: hidden;
    border: 1px solid rgba(212, 224, 208, 0.86);
    border-radius: 26px;
    background:
      radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.9) 0 16%, transparent 33%),
      linear-gradient(180deg, rgba(247, 252, 245, 0.88), rgba(255, 255, 255, 0.95));
    box-shadow: 0 18px 48px rgba(55, 88, 54, 0.10);
  }

  .map-board::before,
  .map-board::after {
    content: "";
    position: absolute;
    pointer-events: none;
  }

  .map-board::before {
    inset: 78px 52px;
    z-index: 2;
    border: 1px solid rgba(132, 169, 120, 0.25);
    border-radius: 50%;
    background:
      radial-gradient(circle, transparent 0 43%, rgba(132, 169, 120, 0.14) 44% 45%, transparent 46% 100%);
  }

  .map-board::after {
    inset: 86px 58px;
    z-index: 2;
    opacity: 0.62;
    background:
      linear-gradient(90deg, transparent 0 8%, rgba(237, 179, 63, 0.48) 9% 91%, transparent 92%),
      linear-gradient(0deg, transparent 0 8%, rgba(72, 149, 98, 0.34) 9% 91%, transparent 92%),
      linear-gradient(35deg, transparent 0 18%, rgba(46, 124, 245, 0.24) 19% 81%, transparent 82%),
      linear-gradient(145deg, transparent 0 18%, rgba(222, 79, 122, 0.2) 19% 81%, transparent 82%);
    background-size: 100% 2px, 2px 100%, 100% 2px, 100% 2px;
    background-position: center, center, center, center;
    background-repeat: no-repeat;
  }

  .map-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-map-hint {
    display: none;
  }

  .mobile-map-hint svg {
    width: 16px;
    height: 16px;
  }

  .mobile-node-rail {
    position: relative;
    left: auto;
    z-index: 9;
    width: 100%;
    display: grid;
    gap: 10px;
    margin-top: 0;
    padding: 0;
    overflow: visible;
  }

  .mobile-node-rail::-webkit-scrollbar {
    display: none;
  }

  .mobile-node-tab {
    width: 100%;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 5px;
    min-height: 74px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    text-align: left;
    scroll-snap-align: none;
  }

  .mobile-node-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--state-color, var(--green));
    background: var(--state-surface, #eff9f2);
  }

  .mobile-node-icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 2.2;
  }

  .mobile-node-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .mobile-node-tab.active {
    border-color: rgba(31, 157, 85, 0.44);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(31, 157, 85, 0.14);
  }

  .mobile-node-tab:focus-visible {
    outline: 3px solid rgba(46, 124, 245, 0.28);
    outline-offset: 2px;
  }

  .mobile-node-tab strong {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 950;
  }

  .mobile-node-tab small {
    display: -webkit-box;
    overflow: hidden;
    color: #71808e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .state-pill {
    width: max-content;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--state-color, var(--green));
    background: var(--state-surface, #eff9f2);
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
  }

  .map-art {
    width: 152%;
    top: 50%;
    opacity: 0.2;
    filter: saturate(0.86) blur(0.2px) drop-shadow(0 18px 40px rgba(55, 88, 54, 0.10));
  }

  .map-center {
    display: none;
  }

  .mobile-map-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 132px;
    min-height: 132px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 16px;
    border: 1px solid rgba(218, 225, 216, 0.92);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .mobile-map-core strong {
    font-size: 15px;
    line-height: 1.18;
    font-weight: 950;
  }

  .mobile-map-core span {
    color: #687786;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
  }

  .mobile-map-focus {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--state-surface, var(--line));
    border-radius: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    text-align: left;
  }

  .mobile-map-focus span {
    color: #71808e;
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-map-focus strong {
    justify-self: end;
    color: var(--state-color, var(--green));
    font-size: 13px;
    font-weight: 950;
  }

  .node-pin {
    width: 32px;
    min-width: 32px;
    max-width: none;
    height: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.10);
  }

  .node-pin::before {
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
  }

  .node-pin strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    margin-left: 14px;
  }

  .node-pin.active {
    width: auto;
    min-width: 70px;
    height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    transform: translate(-50%, -56%);
  }

  .node-pin.active::before {
    content: none;
  }

  .node-pin.active strong {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-size: 12px;
    line-height: 1.08;
  }

  .node-pin span,
  .node-pin small,
  .node-pin::after {
    display: none;
  }

  .pin-oracle::before { content: "占"; }
  .pin-train::before { content: "训"; }
  .pin-food::before { content: "食"; }
  .pin-travel::before { content: "行"; }
  .pin-band::before { content: "乐"; }
  .pin-flash::before { content: "灵"; }
  .pin-english::before { content: "英"; }
  .pin-party::before { content: "局"; }
  .pin-drink::before { content: "醺"; }
  .pin-moment::before { content: "刻"; }

  .pin-oracle { left: 50%; top: 31%; }
  .pin-train { left: 74%; top: 37%; }
  .pin-food { left: 75%; top: 50%; }
  .pin-travel { left: 70%; top: 61%; }
  .pin-band { left: 62%; top: 69%; }
  .pin-flash { left: 50%; top: 72%; }
  .pin-english { left: 38%; top: 69%; }
  .pin-party { left: 30%; top: 61%; }
  .pin-drink { left: 25%; top: 50%; }
  .pin-moment { left: 28%; top: 37%; }

  .map-board .node-pin {
    display: none;
  }

  .group-pin {
    position: absolute;
    z-index: 6;
    display: grid;
    grid-template-rows: auto auto auto;
    justify-items: start;
    gap: 5px;
    width: calc(50% - 34px);
    min-width: 0;
    min-height: 112px;
    padding: 13px;
    border: 1px solid rgba(226, 232, 222, 0.95);
    border-radius: 20px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11);
    transform: none;
    text-align: left;
  }

  .group-pin.active {
    border-color: color-mix(in srgb, var(--state-color, var(--green)) 46%, white);
    background: linear-gradient(180deg, #ffffff, var(--state-surface, #f4fbf6));
    box-shadow: 0 16px 34px rgba(31, 157, 85, 0.15);
  }

  .group-pin:focus-visible {
    outline: 3px solid rgba(46, 124, 245, 0.28);
    outline-offset: 2px;
  }

  .group-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--state-color, var(--green));
    background: var(--state-surface, #eff9f2);
  }

  .group-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
  }

  .group-pin strong {
    font-size: 15px;
    line-height: 1.15;
    font-weight: 950;
  }

  .group-pin > span:not(.group-icon) {
    color: #71808e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
  }

  .group-body { left: 18px; top: 20px; }
  .group-explore { right: 18px; top: 20px; }
  .group-express { left: 18px; bottom: 20px; }
  .group-connect { right: 18px; bottom: 20px; }

  .mobile-node-detail {
    position: relative;
    left: auto;
    display: grid;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
  }

  .mobile-node-detail small {
    color: var(--state-color, var(--green));
    background: var(--state-surface, #eff9f2);
  }

  .mobile-node-detail strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 950;
  }

  .mobile-node-detail span {
    display: block;
    color: #687786;
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-node-detail p {
    margin: 0;
    color: #4f5f6d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
  }

  .mobile-node-panel {
    gap: 12px;
    min-width: 0;
  }

  .mobile-group-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    overflow: visible;
    padding: 0;
    scrollbar-width: none;
  }

  .mobile-group-rail::-webkit-scrollbar {
    display: none;
  }

  .mobile-group-tab {
    display: grid;
    justify-items: start;
    gap: 3px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #607080;
    background: rgba(255, 255, 255, 0.9);
    text-align: left;
  }

  .mobile-group-tab.active {
    color: var(--state-color, var(--green));
    border-color: color-mix(in srgb, var(--state-color, var(--green)) 42%, white);
    background: var(--state-surface, var(--green-soft));
  }

  .mobile-group-tab strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.15;
    font-weight: 950;
  }

  .mobile-group-tab span {
    color: #71808e;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 850;
  }

  .mobile-panel-head {
    display: grid;
    gap: 5px;
    padding: 2px 2px 0;
  }

  .mobile-panel-head span {
    width: max-content;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 12px;
    font-weight: 950;
  }

  .mobile-panel-head h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.12;
    font-weight: 950;
  }

  .mobile-panel-head p {
    margin: 0;
    color: #5d6b78;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
  }

  .report {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 20px;
  }

  .xp-row {
    grid-template-columns: 76px 1fr;
  }

  .xp-ring {
    width: 70px;
    height: 70px;
  }

  .xp-ring::before {
    width: 48px;
    height: 48px;
  }

  .harvest-grid {
    grid-template-columns: 1fr;
  }

  .harvest {
    grid-template-columns: 46px 1fr;
    justify-items: start;
    min-height: 76px;
    text-align: left;
  }

  .harvest-icon {
    margin: 0;
  }

  .task-list li {
    grid-template-columns: 26px 1fr auto;
  }

  .task-done {
    display: none;
  }

  .future {
    padding-bottom: 28px;
  }

  .future-panel {
    padding: 18px;
  }

  .mine-panel {
    gap: 16px;
  }

  .mine-head {
    align-items: start;
  }

  .mine-avatar {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .mine-head h2 {
    font-size: 22px;
  }

  .mine-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mine-stats div {
    padding: 12px 10px;
  }

  .mine-stats strong {
    font-size: 20px;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .future-head {
    display: block;
  }

  .future-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .future-module {
    min-width: 230px;
    scroll-snap-align: start;
  }

  .mobile-switcher {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(218, 225, 216, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
  }

  .mobile-switcher button {
    min-width: 0;
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 3px;
    border-radius: 16px;
    color: #607080;
    background: transparent;
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-switcher svg {
    width: 20px;
    height: 20px;
  }

  .mobile-switcher button.active {
    color: var(--green);
    background: #eef9f2;
  }

  .mobile-switcher button:focus-visible {
    outline: 3px solid rgba(46, 124, 245, 0.28);
    outline-offset: 2px;
  }
}

@media (max-width: 880px) {
  .map-board::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }

  .map-board picture {
    position: absolute;
    inset: 66px 0 0;
    z-index: 1;
    display: block;
    overflow: hidden;
  }

  body .mobile-map-focus {
    display: grid !important;
  }

  body .map-board {
    height: 470px;
  }

  body .map-board .map-art {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none !important;
  }

  body .map-board .group-pin {
    top: 8px !important;
    right: auto !important;
    bottom: auto !important;
    width: calc((100% - 22px) / 4);
    min-height: 50px;
    height: 50px;
    padding: 6px 2px;
  }

  body .map-board .group-body { left: 8px !important; }
  body .map-board .group-explore { left: calc(8px + (100% - 22px) / 4) !important; }
  body .map-board .group-express { left: calc(8px + (100% - 22px) / 2) !important; }
  body .map-board .group-connect { left: calc(8px + ((100% - 22px) / 4) * 3) !important; }

  body .mobile-route-label {
    padding: 5px 7px;
    border-radius: 4px;
    background: rgba(255, 254, 249, 0.82);
  }

  body .mobile-map-focus strong {
    font-size: 14px;
    line-height: 1.35;
  }

  body .site-footer {
    margin-top: 48px;
    padding-bottom: 96px;
  }
}

/* Mobile Trail Map: selected direction first, landmarks second. */
@media (max-width: 880px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .topbar,
  .nav {
    height: 68px;
  }

  .nav {
    padding: 0 16px;
  }

  .brand-reference {
    width: 128px;
    height: auto;
  }

  .avatar-reference,
  .avatar-reference img {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: 0 14px 28px;
  }

  .hero-copy {
    padding: 18px 2px 14px;
  }

  .mobile-page-kicker {
    font-size: 26px;
    line-height: 1.2;
  }

  .mobile-map-date {
    margin-top: 7px;
    font-size: 13px;
  }

  .mobile-map-hint {
    display: none;
  }

  .map-shell {
    overflow: visible;
  }

  .map-board {
    height: 458px;
    overflow: hidden;
    border: 1px solid #d8d7cd;
    border-radius: 8px;
    background: #f9f7ef;
    box-shadow: 0 12px 28px rgba(70, 66, 49, 0.1);
  }

  .map-board::after {
    content: none !important;
  }

  .map-art {
    inset: 66px 0 0;
    width: 100%;
    height: calc(100% - 66px);
    object-fit: cover;
    object-position: 50% 48%;
    opacity: 0.92;
    filter: saturate(0.78) brightness(1.03);
  }

  .mobile-route-label {
    position: absolute;
    left: 18px;
    top: 82px;
    z-index: 4;
    display: grid;
    gap: 1px;
    color: #334338;
    text-align: left;
  }

  .mobile-route-label span {
    color: #378255;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-route-label strong {
    font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
    font-size: 15px;
  }

  .mobile-map-core,
  .map-trace-note {
    display: none !important;
  }

  .group-pin {
    top: 8px !important;
    right: auto !important;
    bottom: auto !important;
    width: calc((100% - 22px) / 4);
    min-height: 50px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 18px auto;
    place-items: center;
    gap: 2px;
    padding: 6px 2px;
    border: 0;
    border-right: 1px solid #deddd4;
    border-radius: 0;
    color: #606961;
    background: rgba(253, 252, 247, 0.96);
    box-shadow: none;
    text-align: center;
  }

  .group-body { left: 8px !important; }
  .group-explore { left: calc(8px + (100% - 22px) / 4) !important; }
  .group-express { left: calc(8px + (100% - 22px) / 2) !important; }
  .group-connect {
    left: calc(8px + ((100% - 22px) / 4) * 3) !important;
    border-right: 0;
  }

  .group-pin.active {
    color: var(--state-color);
    background: var(--state-surface);
    box-shadow: inset 0 -3px 0 var(--state-color);
  }

  .group-icon {
    grid-column: 1;
    grid-row: 1;
    width: 18px;
    height: 18px;
    color: currentColor;
    background: transparent;
  }

  .group-icon svg {
    width: 17px;
    height: 17px;
  }

  .group-pin strong {
    grid-column: 1;
    grid-row: 2;
    color: inherit;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .group-pin > span:not(.group-icon) {
    display: none;
  }

  .map-board .node-pin {
    z-index: 5;
    width: 92px;
    display: none !important;
    padding: 0;
    transform: translate(-50%, -50%);
  }

  .map-board[data-active-group="body"] .pin-train,
  .map-board[data-active-group="body"] .pin-food,
  .map-board[data-active-group="body"] .pin-drink,
  .map-board[data-active-group="explore"] .pin-travel,
  .map-board[data-active-group="explore"] .pin-oracle,
  .map-board[data-active-group="explore"] .pin-flash,
  .map-board[data-active-group="express"] .pin-moment,
  .map-board[data-active-group="express"] .pin-band,
  .map-board[data-active-group="connect"] .pin-english,
  .map-board[data-active-group="connect"] .pin-party {
    display: flex !important;
  }

  .map-board[data-active-group="body"] .pin-train,
  .map-board[data-active-group="explore"] .pin-travel {
    left: 28%;
    top: 38%;
  }

  .map-board[data-active-group="body"] .pin-food,
  .map-board[data-active-group="explore"] .pin-oracle {
    left: 47%;
    top: 61%;
  }

  .map-board[data-active-group="body"] .pin-drink,
  .map-board[data-active-group="explore"] .pin-flash {
    left: 78%;
    top: 83%;
  }

  .map-board[data-active-group="express"] .pin-moment,
  .map-board[data-active-group="connect"] .pin-english {
    left: 30%;
    top: 40%;
  }

  .map-board[data-active-group="express"] .pin-band,
  .map-board[data-active-group="connect"] .pin-party {
    left: 73%;
    top: 76%;
  }

  .map-board .node-illustration {
    width: 76px;
    height: 64px;
    filter: saturate(0.82) contrast(0.95);
  }

  .map-board .node-pin strong {
    padding: 3px 7px;
    border-radius: 3px;
    color: #263229;
    background: rgba(255, 254, 249, 0.9);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .map-board .node-pin span:not(.node-art) {
    display: none;
  }

  .map-board .node-pin.active strong {
    color: var(--state-color);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--state-color) 32%, white);
  }

  .map-app-detail {
    display: none;
  }

  .mobile-map-focus {
    width: 100%;
    min-height: 76px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 13px 14px;
    border: 1px solid color-mix(in srgb, var(--state-color) 25%, #d9dbd2);
    border-radius: 8px;
    color: #273229;
    background: #fffef9;
    box-shadow: 0 8px 20px rgba(73, 69, 50, 0.08);
    text-align: left;
  }

  .mobile-map-focus span {
    grid-column: 1;
    color: #788078;
    font-size: 11px;
  }

  .mobile-map-focus strong {
    grid-column: 1;
    color: #263129;
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 16px;
  }

  .mobile-map-focus::after {
    content: "查看地标  ›";
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 10px 12px;
    border-radius: 6px;
    color: #fff;
    background: var(--state-color);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-switcher {
    left: 12px;
    right: 12px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    min-height: 66px;
    border: 1px solid #ddded7;
    border-radius: 18px;
    background: rgba(255, 254, 250, 0.97);
    box-shadow: 0 10px 26px rgba(60, 61, 50, 0.14);
    backdrop-filter: blur(14px);
  }

  .mobile-switcher button {
    min-width: 56px;
    min-height: 54px;
    margin: 5px 2px;
    border-radius: 12px;
  }

  .mobile-switcher button.active {
    background: #eef6ed;
  }
}

/* Desktop view navigation reuses the same landmark, timeline and profile
   content as mobile. Only layout changes between breakpoints. */
@media (min-width: 881px) {
  .nav {
    grid-template-columns: 260px 1fr 120px;
  }

  .nav-tabs {
    gap: 46px;
  }

  .nav-tabs button {
    position: relative;
    padding: 31px 4px 29px;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
  }

  .nav-tabs button:hover {
    color: var(--journal-ink);
  }

  .nav-tabs button.active {
    color: var(--journal-ink);
  }

  .nav-tabs button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 3px;
    background: var(--journal-green);
  }

  .nav-tabs button:focus-visible {
    outline: none;
    background: rgba(62, 123, 77, 0.08);
  }

  #profileButton:focus-visible {
    outline: 2px solid var(--journal-orange);
    outline-offset: 3px;
  }

  #profileButton {
    cursor: pointer;
  }

  body[data-desktop-view="profile"] #profileButton {
    box-shadow: 0 0 0 3px rgba(62, 123, 77, 0.22);
  }

  body[data-desktop-view] .hero > .hero-copy,
  body[data-desktop-view] .hero > .map-shell,
  body[data-desktop-view] .hero > .mobile-node-panel,
  body[data-desktop-view] .hero > .report {
    display: none !important;
  }

  body[data-desktop-view="map"] .hero > .hero-copy,
  body[data-desktop-view="map"] .hero > .map-shell {
    display: block !important;
  }

  body[data-desktop-view="map"] .hero {
    display: grid;
  }

  body[data-desktop-view="landmarks"] .hero,
  body[data-desktop-view="today"] .hero {
    display: block;
    min-height: calc(100vh - 148px);
    padding: 34px 0 48px;
  }

  body[data-desktop-view="profile"] .hero {
    display: none !important;
  }

  body[data-desktop-view="landmarks"] .hero > .mobile-node-panel {
    display: grid !important;
    grid-template-columns: 210px minmax(360px, 1fr) 360px;
    grid-template-areas:
      "heading heading heading"
      "groups nodes detail";
    gap: 24px;
    align-items: start;
    padding: 24px 8px 48px;
  }

  body[data-desktop-view="landmarks"] .mobile-panel-head {
    grid-area: heading;
    display: grid;
    gap: 8px;
    max-width: 720px;
    padding-bottom: 12px;
  }

  body[data-desktop-view="landmarks"] .mobile-panel-head > span {
    width: max-content;
    color: var(--journal-green);
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 15px;
    font-weight: 700;
  }

  body[data-desktop-view="landmarks"] .mobile-panel-head h2 {
    margin: 0;
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 36px;
    line-height: 1.18;
  }

  body[data-desktop-view="landmarks"] .mobile-panel-head p {
    margin: 0;
    color: var(--journal-muted);
    font-family: "Songti SC", "STSong", serif;
    font-size: 15px;
    line-height: 1.7;
  }

  body[data-desktop-view="landmarks"] .mobile-group-rail {
    grid-area: groups;
    display: grid;
    gap: 10px;
  }

  body[data-desktop-view="landmarks"] .mobile-group-tab {
    display: grid;
    gap: 4px;
    min-height: 70px;
    padding: 13px 14px;
    border: 1px solid var(--journal-line);
    border-radius: 5px;
    color: #465249;
    background: rgba(255, 254, 249, 0.72);
    text-align: left;
    cursor: pointer;
  }

  body[data-desktop-view="landmarks"] .mobile-group-tab.active {
    border-color: color-mix(in srgb, var(--state-color) 42%, white);
    color: var(--state-color);
    background: var(--state-surface);
  }

  body[data-desktop-view="landmarks"] .mobile-group-tab strong,
  body[data-desktop-view="landmarks"] .mobile-group-tab span {
    display: block;
  }

  body[data-desktop-view="landmarks"] .mobile-group-tab strong {
    color: var(--journal-ink);
    font-size: 15px;
  }

  body[data-desktop-view="landmarks"] .mobile-group-tab span {
    color: #778079;
    font-size: 11px;
  }

  body[data-desktop-view="landmarks"] .mobile-node-rail {
    grid-area: nodes;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-desktop-view="landmarks"] .mobile-node-tab {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 92px;
    padding: 15px;
    border: 1px solid var(--journal-line);
    border-radius: 5px;
    color: var(--journal-ink);
    background: rgba(255, 254, 249, 0.88);
    text-align: left;
    cursor: pointer;
  }

  body[data-desktop-view="landmarks"] .mobile-node-tab.active {
    border-color: color-mix(in srgb, var(--state-color) 44%, white);
    box-shadow: 0 10px 24px rgba(70, 77, 65, 0.1);
  }

  body[data-desktop-view="landmarks"] .mobile-node-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: var(--state-color);
    background: var(--state-surface);
  }

  body[data-desktop-view="landmarks"] .mobile-node-icon svg {
    width: 22px;
    height: 22px;
  }

  body[data-desktop-view="landmarks"] .mobile-node-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
  }

  body[data-desktop-view="landmarks"] .mobile-node-copy strong {
    font-size: 15px;
  }

  body[data-desktop-view="landmarks"] .mobile-node-copy small {
    color: #737d75;
    font-size: 12px;
    line-height: 1.4;
  }

  body[data-desktop-view="landmarks"] .mobile-node-detail {
    grid-area: detail;
    display: grid;
    gap: 12px;
    min-height: 286px;
    padding: 24px;
    border: 1px solid var(--journal-line);
    border-radius: 5px;
    background: #fffef9;
    box-shadow: 0 14px 30px rgba(70, 77, 65, 0.09);
  }

  body[data-desktop-view="landmarks"] .mobile-node-detail .state-pill {
    width: max-content;
    color: var(--state-color);
    background: var(--state-surface);
  }

  body[data-desktop-view="landmarks"] .mobile-node-detail strong,
  body[data-desktop-view="landmarks"] .mobile-node-detail span {
    display: block;
  }

  body[data-desktop-view="landmarks"] .mobile-node-detail strong {
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 25px;
  }

  body[data-desktop-view="landmarks"] .mobile-node-detail span,
  body[data-desktop-view="landmarks"] .mobile-node-detail p {
    color: #5f6b62;
    font-family: "Songti SC", "STSong", serif;
  }

  body[data-desktop-view="landmarks"] .mobile-node-detail p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
  }

  body[data-desktop-view="today"] .hero > .report {
    width: min(980px, 100%);
    height: auto !important;
    min-height: 0;
    display: block !important;
    margin: 0 auto;
    padding: 36px 52px 44px;
    border: 1px solid var(--journal-line);
    border-radius: 5px;
    background: #fffef9;
    box-shadow: 0 16px 34px rgba(70, 77, 65, 0.08);
  }

  body[data-desktop-view="today"] .journal-today-head {
    display: grid;
    gap: 7px;
    padding-bottom: 22px;
  }

  body[data-desktop-view="today"] .journal-today-head > span {
    color: var(--journal-green);
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 16px;
    font-weight: 700;
  }

  body[data-desktop-view="today"] .journal-today-head h2 {
    margin: 0;
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 38px;
    line-height: 1.25;
  }

  body[data-desktop-view="today"] .journal-today-head time,
  body[data-desktop-view="today"] .journal-today-head p {
    color: #6d776f;
    font-family: "Songti SC", "STSong", serif;
  }

  body[data-desktop-view="today"] .journal-today-head p {
    margin: 4px 0 0;
  }

  body[data-desktop-view="today"] .trace-timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body[data-desktop-view="today"] .trace-timeline::before {
    content: "";
    position: absolute;
    left: 67px;
    top: 18px;
    bottom: 24px;
    width: 1px;
    background: #d7ddd5;
  }

  body[data-desktop-view="today"] .trace-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 116px;
    gap: 20px;
    align-items: center;
    min-height: 138px;
    padding: 16px 0;
    border-bottom: 1px solid #e3e5df;
    cursor: pointer;
  }

  body[data-desktop-view="today"] .trace-timeline li::before {
    content: "";
    position: absolute;
    left: 63px;
    top: 50%;
    width: 9px;
    height: 9px;
    border: 2px solid #fffef9;
    border-radius: 50%;
    background: var(--journal-orange);
    box-shadow: 0 0 0 1px #d2aa78;
  }

  body[data-desktop-view="today"] .trace-timeline time {
    align-self: start;
    padding-top: 9px;
    color: #7a837b;
    font-size: 12px;
  }

  body[data-desktop-view="today"] .trace-timeline div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-left: 8px;
  }

  body[data-desktop-view="today"] .trace-timeline strong,
  body[data-desktop-view="today"] .trace-timeline span,
  body[data-desktop-view="today"] .trace-timeline small {
    display: block;
  }

  body[data-desktop-view="today"] .trace-timeline strong {
    font-size: 17px;
  }

  body[data-desktop-view="today"] .trace-timeline span {
    margin-top: 6px;
    color: #616d64;
    font-family: "Songti SC", "STSong", serif;
    font-size: 14px;
  }

  body[data-desktop-view="today"] .trace-timeline small {
    margin-top: 8px;
    color: #8a928b;
    font-size: 11px;
  }

  body[data-desktop-view="today"] .trace-timeline img {
    grid-column: 3;
    grid-row: 1;
    width: 116px;
    height: 96px;
    border: 5px solid #f6f1e6;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 7px 16px rgba(69, 65, 50, 0.1);
  }

  body[data-desktop-view="today"] .journal-reflection {
    margin: 24px 0 0;
    padding: 16px 18px;
    border-left: 3px solid var(--journal-green);
    color: #47534a;
    background: #f5f6ef;
    font-family: "Songti SC", "STSong", serif;
    line-height: 1.7;
  }

  body[data-desktop-view="profile"] .future.mine {
    min-height: calc(100vh - 148px);
    display: block !important;
    padding: 52px 0 64px;
  }

  body[data-desktop-view="profile"] .mine-panel {
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 36px 40px 42px;
    border-radius: 5px;
    background: #fffef9;
  }

  body[data-desktop-view="profile"] .mine-head h2 {
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 32px;
  }

  body[data-desktop-view="profile"] .mine-section h3 {
    font-family: "Kaiti SC", "STKaiti", serif;
  }

  body[data-desktop-view="profile"] .mine-stats div,
  body[data-desktop-view="profile"] .achievement-grid article,
  body[data-desktop-view="profile"] .trail-list li {
    border-radius: 5px;
    box-shadow: none;
  }

  body[data-desktop-view="map"] .app-source-dock,
  body[data-desktop-view="landmarks"] .app-source-dock {
    display: block;
  }

  body[data-desktop-view="today"] .app-source-dock,
  body[data-desktop-view="profile"] .app-source-dock {
    display: none;
  }
}

@media (max-width: 1120px) and (min-width: 881px) {
  body[data-desktop-view="landmarks"] .hero > .mobile-node-panel {
    grid-template-columns: 180px minmax(300px, 1fr) 300px;
    gap: 16px;
  }

  .nav-tabs {
    gap: 28px;
  }
}

/* The legacy landmark PNGs were extracted from a composite reference. Mask the
   outer capture residue so each landmark reads as an independent illustration. */
.node-pin[data-node="food"] .node-illustration {
  clip-path: inset(2px 3px 3px 10px);
}

.node-pin[data-node="travel"] .node-illustration {
  clip-path: inset(4px 7px 4px 11px);
}

.node-pin[data-node="band"] .node-illustration {
  clip-path: inset(7px 4px 4px 10px);
}

.node-pin[data-node="flash"] .node-illustration {
  clip-path: inset(9px 7px 4px 5px);
}

.node-pin[data-node="english"] .node-illustration {
  clip-path: inset(5px 4px 4px 11px);
}

.node-pin[data-node="party"] .node-illustration {
  clip-path: inset(11px 5px 3px 5px);
}

.node-pin[data-node="drink"] .node-illustration {
  clip-path: inset(12px 5px 4px 5px);
}

/* Phase A: Trail Journal */
:root {
  --journal-paper: #fbfaf6;
  --journal-paper-deep: #f4f0e6;
  --journal-ink: #18211b;
  --journal-muted: #647067;
  --journal-line: #d9ddd1;
  --journal-green: #3e7b4d;
  --journal-orange: #e58b27;
  --journal-blue: #8ab7cd;
  --journal-red: #d96652;
}

body {
  color: var(--journal-ink);
  background: var(--journal-paper);
}

.topbar {
  border-bottom: 0;
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(14px);
}

.nav {
  height: 92px;
  grid-template-columns: 260px 1fr 260px;
}

.nav-tabs {
  gap: 62px;
  color: #3f4b42;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: 18px;
  font-weight: 700;
}

.nav-tabs a {
  padding-top: 31px;
  padding-bottom: 29px;
}

.nav-tabs a.active::after {
  bottom: 18px;
  height: 3px;
  background: var(--journal-green);
}

.mobile-page-kicker,
.mobile-map-date {
  display: none;
}

.hero {
  min-height: 846px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas: "copy map";
  gap: 24px;
  padding-top: 18px;
}

.hero-copy {
  grid-area: copy;
  align-self: stretch;
  padding: 52px 6px 24px 0;
}

.hero-copy h1 {
  margin: 0;
  color: #162019;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: 44px;
  line-height: 1.32;
  font-weight: 700;
}

.hero-copy h1 span {
  position: relative;
  display: inline-block;
  color: inherit;
}

.hero-copy h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: var(--journal-green);
}

.hero-copy .lead {
  max-width: 228px;
  margin: 24px 0 0;
  color: #4f5d53;
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
  line-height: 2;
}

.quick-stats {
  display: none !important;
}

.today-paper {
  position: relative;
  margin-top: 34px;
  padding: 18px 18px 12px;
  border: 1px solid #d8d5ca;
  border-radius: 2px;
  background-image: url("assets/trail-journal/map-atlas.png?v=1");
  background-size: 520px auto;
  background-position: 49% 45%;
  box-shadow: 0 12px 24px rgba(76, 71, 54, 0.09);
}

.today-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 254, 249, 0.9);
  pointer-events: none;
}

.today-paper > * {
  position: relative;
}

.today-paper h2 {
  margin: 0 0 8px;
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 17px;
  font-weight: 700;
}

.trace-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-mini-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid rgba(111, 118, 103, 0.18);
  color: #273128;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.trace-mini-list time {
  color: #7a837b;
  font-size: 11px;
}

.map-shell {
  grid-area: map;
  width: 100%;
  height: auto;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.map-board {
  width: 100%;
  height: 804px;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fffefb;
  box-shadow: none;
}

.map-board::before,
.map-board::after {
  content: none !important;
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.97;
  mix-blend-mode: normal;
}

.map-routes {
  display: none !important;
}

.map-center {
  left: 50%;
  top: 49%;
  width: 250px;
  padding: 12px 8px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 254, 249, 0.8);
  box-shadow: none;
  backdrop-filter: blur(2px);
}

.center-reference {
  display: none;
}

.map-center strong {
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 19px;
  font-weight: 700;
}

.map-center span {
  color: #49564d;
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  font-weight: 500;
}

.node-pin {
  width: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.node-pin:hover,
.node-pin.active {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -52%);
}

.node-pin:focus-visible {
  outline: 2px solid var(--journal-orange);
  outline-offset: 6px;
}

.node-illustration {
  width: 94px;
  height: 76px;
  object-fit: contain;
  filter: saturate(0.72) contrast(0.92);
  mix-blend-mode: multiply;
}

.node-pin:hover .node-illustration,
.node-pin.active .node-illustration {
  transform: translateY(-3px) scale(1.04);
}

.node-pin strong {
  padding: 0 3px;
  color: #202a22;
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  background: rgba(255, 254, 249, 0.78);
}

.node-pin span {
  margin-top: 2px;
  padding: 0 3px;
  color: #586359;
  font-family: "Songti SC", "STSong", serif;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  background: rgba(255, 254, 249, 0.78);
}

.node-pin::after {
  display: none;
}

.node-pin.has-update::before {
  right: 13px;
  top: 68px;
  width: 8px;
  height: 8px;
  background: var(--journal-red);
  box-shadow: 0 0 0 2px #fffefb;
}

.pin-oracle { left: 42%; top: 12%; }
.pin-train { left: 68%; top: 23%; }
.pin-food { left: 77%; top: 48%; }
.pin-travel { left: 77%; top: 67%; }
.pin-band { left: 77%; top: 84%; }
.pin-flash { left: 54%; top: 86%; }
.pin-english { left: 38%; top: 84%; }
.pin-party { left: 23%; top: 69%; }
.pin-drink { left: 20%; top: 48%; }
.pin-moment { left: 27%; top: 28%; }

.map-trace-note {
  display: none;
}

.map-app-detail {
  width: min(760px, calc(100% - 80px));
  min-height: 50px;
  margin: -58px auto 8px;
  padding: 10px 14px;
  border: 1px solid #dad8ce;
  border-radius: 5px;
  background: rgba(255, 254, 249, 0.96);
  box-shadow: 0 8px 18px rgba(78, 74, 56, 0.08);
}

.map-app-detail small {
  color: #7a837b;
}

.map-app-detail strong {
  font-family: "Kaiti SC", "STKaiti", serif;
}

.app-entry-action {
  border-radius: 5px;
  background: var(--journal-green);
}

.app-entry-pending,
.app-entry-external {
  color: #687268;
  background: #ebece6;
}

.report {
  display: none;
}

.app-source-dock {
  margin-top: 8px;
  margin-bottom: 12px;
  border-top: 1px solid #d7dbd1;
  border-bottom: 1px solid #d7dbd1;
}

.app-source-dock details {
  padding: 14px 8px;
}

.app-source-dock summary {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #263129;
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 16px;
  cursor: pointer;
}

.app-source-dock summary span {
  color: #7b857d;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 12px;
}

.app-source-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.app-source-grid a,
.app-source-grid > span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid #dcded5;
  border-radius: 5px;
  color: #354138;
  background: #fffefb;
  font-size: 12px;
  text-align: center;
}

.app-source-grid a:hover {
  border-color: #8cad91;
  color: var(--journal-green);
}

.site-footer {
  color: #737e75;
  font-family: "Songti SC", "STSong", serif;
}

.mobile-switcher,
.mobile-node-panel,
.group-pin,
.mobile-map-focus {
  display: none;
}

@media (max-width: 1180px) and (min-width: 881px) {
  .hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .today-paper {
    padding: 15px 14px 10px;
  }

  .node-pin {
    width: 102px;
  }

  .node-illustration {
    width: 80px;
    height: 68px;
  }
}

@media (max-width: 880px) {
  body {
    min-width: 0;
    padding-bottom: 96px;
    overflow-x: hidden;
    background: #fbfaf6;
  }

  .page,
  main,
  .shell {
    width: 100%;
    max-width: 100%;
  }

  .topbar {
    position: relative;
    height: 74px;
    border-bottom: 1px solid #e1e3dc;
  }

  .nav {
    width: 100%;
    height: 74px;
    display: flex;
    justify-content: space-between;
    padding: 0 18px;
  }

  .brand-reference {
    width: 142px;
  }

  .nav-tabs,
  .profile .icon-button {
    display: none;
  }

  .profile {
    margin-left: auto;
  }

  .avatar-reference img {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 0;
    display: block;
    padding: 0 16px 96px;
  }

  [data-mobile-panel] {
    display: none !important;
  }

  body:not([data-mobile-view]) [data-mobile-panel="map"],
  body[data-mobile-view="map"] [data-mobile-panel="map"] {
    display: block !important;
  }

  body[data-mobile-view="landmarks"] [data-mobile-panel="landmarks"] {
    display: block !important;
  }

  body[data-mobile-view="today"] [data-mobile-panel="today"] {
    display: block !important;
  }

  body[data-mobile-view="profile"] [data-mobile-panel="profile"] {
    display: block !important;
  }

  body[data-mobile-view="profile"] .hero {
    display: none;
  }

  .hero-copy {
    padding: 18px 2px 12px;
  }

  .mobile-page-kicker,
  .mobile-map-date {
    display: block;
  }

  .mobile-page-kicker {
    margin: 0;
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 25px;
    font-weight: 700;
  }

  .mobile-map-date {
    margin-top: 4px;
    color: #6d776f;
    font-size: 12px;
  }

  .hero-copy h1,
  .hero-copy .lead,
  .today-paper {
    display: none;
  }

  .map-shell {
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .map-board {
    width: 100%;
    height: 520px;
    overflow: hidden;
    border: 1px solid #d9dbd2;
    border-radius: 6px;
    background: #fffefb;
    box-shadow: 0 16px 34px rgba(74, 70, 53, 0.12);
  }

  .map-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 51% 50%;
  }

  .map-center,
  .node-pin {
    display: none !important;
  }

  .group-pin {
    z-index: 5;
    width: 128px;
    min-height: 68px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 2px 8px;
    padding: 9px 10px;
    border: 1px solid rgba(208, 214, 204, 0.92);
    border-radius: 5px;
    color: #273128;
    background: rgba(255, 254, 249, 0.94);
    box-shadow: 0 7px 16px rgba(75, 70, 52, 0.09);
    text-align: left;
  }

  .group-pin.active {
    border-color: color-mix(in srgb, var(--state-color) 42%, white);
    background: rgba(255, 254, 249, 0.96);
    box-shadow: 0 8px 18px rgba(75, 70, 52, 0.13);
  }

  .group-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: var(--state-color);
    background: var(--state-surface);
  }

  .group-icon svg {
    width: 17px;
    height: 17px;
  }

  .group-pin strong {
    grid-column: 2;
    color: #263029;
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 15px;
    line-height: 1.15;
  }

  .group-pin > span:not(.group-icon) {
    grid-column: 2;
    color: #717b73;
    font-size: 10px;
    line-height: 1.25;
  }

  .group-body { left: 5%; top: 12%; }
  .group-explore { left: auto; right: 5%; top: 12%; }
  .group-express { left: 5%; top: 74%; }
  .group-connect { left: auto; right: 5%; top: 74%; }

  .mobile-map-core {
    top: 47%;
    width: 112px;
    min-height: 112px;
    padding: 12px;
  }

  .map-trace-note {
    z-index: 6;
    width: 116px;
    display: grid;
    gap: 2px;
    padding: 9px 9px 8px;
    border: 1px solid #d7d2c4;
    border-radius: 2px;
    color: #29322b;
    background: #fffdf5;
    box-shadow: 0 7px 14px rgba(73, 67, 48, 0.13);
    font-family: "Songti SC", "STSong", serif;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
    transform: rotate(-2deg);
  }

  .map-trace-note time {
    color: #8a7664;
    font-size: 9px;
  }

  .note-training { left: 7%; top: 31%; }
  .note-lunch { left: 35%; top: 60%; transform: rotate(1.5deg); }
  .note-inspiration { left: auto; right: 7%; top: 31%; transform: rotate(2deg); }
  .note-band { left: 9%; top: 78%; }
  .note-english { left: 59%; top: 82%; transform: rotate(1deg); }

  .map-app-detail {
    width: 100%;
    min-height: 50px;
    margin: 10px 0 0;
    padding: 9px 10px;
    border-radius: 5px;
  }

  .mobile-map-focus {
    display: none !important;
  }

  .mobile-node-panel {
    width: 100%;
    padding: 20px 16px 110px;
  }

  .mobile-panel-head > span {
    color: var(--journal-orange);
  }

  .mobile-panel-head h2 {
    font-family: "Kaiti SC", "STKaiti", serif;
  }

  .mobile-group-tab,
  .mobile-node-tab,
  .mobile-node-detail {
    border-radius: 6px;
    background: #fffefb;
  }

  .mobile-node-tab {
    position: relative;
  }

  .report {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 20px 18px 112px;
    border: 0;
    border-radius: 0;
    background: #fffefb;
    box-shadow: none;
  }

  .journal-today-head {
    display: grid;
    gap: 5px;
    padding-bottom: 14px;
  }

  .journal-today-head > span {
    color: var(--journal-green);
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 15px;
    font-weight: 700;
  }

  .journal-today-head h2 {
    margin: 0;
    font-family: "Kaiti SC", "STKaiti", serif;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
  }

  .journal-today-head time {
    color: #6e786f;
    font-size: 12px;
  }

  .journal-today-head p {
    margin: 8px 0 0;
    color: #7a837b;
    font-family: "Songti SC", "STSong", serif;
    font-size: 13px;
  }

  .trace-timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .trace-timeline::before {
    content: "";
    position: absolute;
    left: 43px;
    top: 18px;
    bottom: 22px;
    width: 1px;
    background: #d7ddd5;
  }

  .trace-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 78px;
    gap: 10px;
    align-items: center;
    min-height: 104px;
    padding: 12px 0;
    border-bottom: 1px solid #e3e5df;
    cursor: pointer;
  }

  .trace-timeline li::before {
    content: "";
    position: absolute;
    left: 39px;
    top: 49%;
    width: 9px;
    height: 9px;
    border: 2px solid #fffefb;
    border-radius: 50%;
    background: var(--journal-orange);
    box-shadow: 0 0 0 1px #d2aa78;
  }

  .trace-timeline time {
    align-self: start;
    padding-top: 5px;
    color: #788179;
    font-size: 11px;
  }

  .trace-timeline img {
    grid-column: 3;
    grid-row: 1;
    width: 78px;
    height: 78px;
    border: 4px solid #f8f4e9;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 5px 10px rgba(69, 65, 50, 0.1);
  }

  .trace-timeline div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-left: 7px;
  }

  .trace-timeline strong,
  .trace-timeline span,
  .trace-timeline small {
    display: block;
  }

  .trace-timeline strong {
    color: #273128;
    font-size: 14px;
    line-height: 1.4;
  }

  .trace-timeline span {
    margin-top: 4px;
    color: #687369;
    font-family: "Songti SC", "STSong", serif;
    font-size: 12px;
    line-height: 1.5;
  }

  .trace-timeline small {
    margin-top: 6px;
    color: #8a928b;
    font-size: 10px;
  }

  .journal-reflection {
    margin: 20px 0 0;
    padding: 15px 16px;
    border-left: 3px solid var(--journal-green);
    color: #47534a;
    background: #f5f6ef;
    font-family: "Songti SC", "STSong", serif;
    font-size: 13px;
    line-height: 1.7;
  }

  .app-source-dock {
    display: none;
  }

  .future.mine {
    width: 100%;
    padding: 20px 16px 110px;
  }

  .mine-panel,
  .achievement-grid article {
    border-radius: 6px;
  }

  .site-footer {
    width: 100%;
    padding: 14px 16px 112px;
    font-size: 11px;
  }

  .mobile-switcher {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 80;
    width: auto;
    height: 68px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px;
    border: 1px solid #d8ddd4;
    border-radius: 18px;
    background: rgba(255, 254, 251, 0.96);
    box-shadow: 0 12px 30px rgba(44, 52, 45, 0.14);
    backdrop-filter: blur(14px);
  }

  .mobile-switcher button {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 12px;
    color: #68736b;
    background: transparent;
    font-size: 11px;
  }

  .mobile-switcher button.active {
    color: var(--journal-green);
    background: #eef5ec;
  }

  .mobile-switcher svg {
    width: 19px;
    height: 19px;
  }
}

/* App entry actions are driven by app-registry.js so production paths stay centralized. */
.map-app-detail {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--state-color, #1f9d55) 28%, #dce4dc);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.map-app-detail > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.map-app-detail small,
.app-entry-meta {
  color: #71808e;
  font-size: 11px;
  font-weight: 750;
}

.map-app-detail strong {
  color: var(--ink);
  font-size: 14px;
}

.app-entry-action,
.future-app-link {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--state-color, #1f9d55);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.app-entry-action:focus-visible,
.future-app-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--state-color, #1f9d55) 32%, transparent);
  outline-offset: 2px;
}

.app-entry-pending,
.app-entry-external {
  cursor: default;
  color: #667268;
  background: #eef2ee;
}

.mobile-node-detail .app-entry-meta {
  display: block;
  margin-top: 2px;
}

.mobile-node-detail .app-entry-action {
  margin-top: 4px;
}

.future-app-link {
  min-height: 28px;
  margin-top: 3px;
  padding: 5px 10px;
  color: #ffffff !important;
  background: #238343;
  font-size: 11px !important;
}

.future-app-status {
  color: #59625c;
}

.site-footer {
  width: min(1504px, calc(100% - 48px));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 16px 0;
  color: #667268;
  font-size: 13px;
}

.site-footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.footer-records,
.gongan-record {
  display: flex;
  align-items: center;
}

.footer-records {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

.gongan-record {
  gap: 5px;
}

.gongan-record img {
  width: 16px;
  height: 17px;
  object-fit: contain;
}

@media (min-width: 881px) {
  .site-footer {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 880px) {
  .map-app-detail {
    display: none;
  }

  .site-footer {
    width: min(100% - 28px, 720px);
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 98px;
    text-align: center;
  }

  .footer-records {
    width: 100%;
  }
}

.future-unlocks {
  display: none;
}

/* Component-based desktop recreation of the selected 1536x1024 reference. */
@media (min-width: 881px) {
  body {
    overflow-x: hidden;
    color: #101610;
    background: #ffffff;
    font-family: "Kaiti SC", "STKaiti", "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  .page {
    min-height: 100vh;
  }

  .page > .topbar,
  .page > main {
    display: block;
  }

  .topbar {
    position: static;
    border: 0;
    background: #ffffff;
    backdrop-filter: none;
  }

  .shell {
    width: min(1472px, calc(100% - 64px));
  }

  .nav {
    height: 100px;
    grid-template-columns: 250px 1fr 250px;
    gap: 20px;
  }

  .brand-reference {
    display: block;
    width: 194px;
    height: 73px;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .map-routes {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
  }

  .nav-tabs {
    gap: 72px;
    color: #111511;
    font-size: 20px;
    font-weight: 700;
  }

  .nav-tabs a {
    padding: 34px 4px 28px;
  }

  .nav-tabs a.active::after {
    left: 0;
    right: 0;
    bottom: 18px;
    height: 4px;
    background: #2d8747;
  }

  .profile {
    gap: 14px;
  }

  .icon-button {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
  }

  .header-icon-reference {
    display: block;
    width: 50px;
    height: 46px;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .avatar-reference {
    width: 88px;
    height: 66px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .avatar-reference img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .hero {
    grid-template-columns: 190px minmax(0, 830px) 394px;
    gap: 29px;
    min-height: 730px;
    padding: 0 0 5px;
  }

  .hero-copy {
    padding-top: 70px;
  }

  .hero-copy h1 {
    font-size: 42px;
    line-height: 1.38;
    font-weight: 700;
    white-space: nowrap;
  }

  .hero-copy h1 span::after {
    left: -3px;
    right: -3px;
    bottom: 2px;
    height: 4px;
    background: #2f8548;
  }

  .lead {
    max-width: 190px;
    margin-top: 25px;
    color: #2f382f;
    font-size: 16px;
    line-height: 1.95;
    font-weight: 600;
    margin-left: 14px;
  }

  .quick-stats {
    gap: 12px;
    margin-top: 74px;
    max-width: 182px;
    margin-left: 6px;
  }

  .stat-tile {
    grid-template-columns: 52px 1fr;
    gap: 8px;
    min-height: 96px;
    padding: 10px 12px;
    border: 2px solid #c5cdb6;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: none;
  }

  .stat-reference {
    width: 52px;
    height: 62px;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .stat-tile strong {
    color: #111511;
    font-size: 31px;
    line-height: 1;
    font-weight: 700;
  }

  .stat-tile span {
    margin-top: 6px;
    color: #465047;
    font-size: 13px;
    font-weight: 600;
  }

  .map-board {
    width: 830px;
    height: 730px;
    min-height: 730px;
    overflow: visible;
  }

  .map-art {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform: none;
    filter: none;
    opacity: 1;
    mix-blend-mode: multiply;
  }

  .map-center {
    left: 50%;
    top: 50.5%;
    width: 260px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .center-reference {
    display: block;
    width: 88px;
    height: 88px;
    margin: 0 auto 8px;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .map-center strong {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
  }

  .map-center span {
    margin-top: 5px;
    color: #202720;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
  }

  .node-pin {
    width: 150px;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  .node-pin:hover,
  .node-pin.active {
    border: 0;
    box-shadow: none;
    transform: translate(-50%, -52%);
  }

  .node-illustration {
    width: 132px;
    height: 118px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 160ms ease;
  }

  .node-pin:hover .node-illustration,
  .node-pin.active .node-illustration {
    transform: translateY(-3px) scale(1.03);
  }

  .node-pin strong {
    padding: 0;
    color: #101510;
    font-size: 17px;
    line-height: 1.18;
    font-weight: 700;
  }

  .node-pin span {
    margin-top: 5px;
    color: #2e372f;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
  }

  .node-pin small {
    right: -4px;
    bottom: 2px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #165f31;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  .node-pin::after {
    display: none;
  }

  .node-pin[data-node="moment"] small,
  .node-pin[data-node="oracle"] small,
  .node-pin[data-node="travel"] small {
    display: none;
  }

  .node-pin.has-update::before {
    content: "";
    position: absolute;
    right: 25px;
    top: 121px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4338;
    box-shadow: 0 0 0 3px #ffffff;
  }

  .pin-moment { left: 23%; top: 20%; }
  .pin-oracle { left: 47%; top: 12%; }
  .pin-train { left: 72%; top: 18%; }
  .pin-drink { left: 10%; top: 45%; }
  .pin-food { left: 89%; top: 43%; }
  .pin-party { left: 19%; top: 69%; }
  .pin-travel { left: 76%; top: 66%; }
  .pin-english { left: 36%; top: 84%; }
  .pin-flash { left: 55%; top: 83%; }
  .pin-band { left: 89%; top: 82%; }

  .report {
    position: relative;
    height: 690px;
    min-height: 690px;
    align-self: start;
    gap: 14px;
    margin-top: 20px;
    padding: 15px 18px 60px;
    border: 2px solid #b8c2a8;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .report h2,
  .report h3 {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
  }

  .report-summary {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
    padding: 2px 0 13px;
    border-bottom: 1px solid #d9ded3;
  }

  .xp-row {
    grid-template-columns: 78px 1fr;
    gap: 8px;
    padding: 0;
  }

  .xp-ring {
    width: 78px;
    height: 78px;
    background: transparent;
  }

  .xp-ring::before {
    display: none;
  }

  .xp-ring-reference {
    width: 78px;
    height: 78px;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .xp-number strong {
    font-size: 44px;
    font-weight: 600;
  }

  .xp-number span {
    font-size: 14px;
  }

  .metric-list {
    gap: 7px;
  }

  .metric-list li {
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
  }

  .harvest-grid {
    gap: 0;
  }

  .harvest {
    min-height: 122px;
    padding: 6px 4px;
    border-width: 0 1px 0 0;
    border-radius: 0;
  }

  .harvest:last-child {
    border-right: 0;
  }

  .harvest-icon {
    width: 64px;
    height: 56px;
    margin-bottom: 4px;
    border-radius: 0;
    background: transparent;
  }

  .harvest-reference {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .harvest strong {
    font-size: 13px;
  }

  .task-list {
    gap: 0;
  }

  .task-list li {
    min-height: 57px;
    padding: 8px 0;
    border-width: 1px 0 0;
    border-radius: 0;
    color: #273128;
    font-size: 14px;
    font-weight: 600;
  }

  .check,
  .task-done {
    width: 24px;
    height: 24px;
    background: transparent;
  }

  .check-reference {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .report-tip {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid #f0d4a5;
    border-radius: 10px;
    color: #a96b1d;
    background: #fffdf8;
    font-size: 13px;
    font-weight: 600;
  }

  .future-unlocks {
    position: relative;
    display: block;
    min-height: 164px;
    margin-top: 0;
    padding: 11px 16px 10px;
    border: 2px solid #d0d7c7;
    border-radius: 15px;
    background: #ffffff;
  }

  .future-unlocks-head h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
  }

  .future-unlocks-head {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .future-unlocks-head img {
    width: 28px;
    height: 24px;
    object-fit: contain;
  }

  .future-unlocks-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding-right: 38px;
  }

  .future-unlocks article {
    min-width: 0;
    min-height: 100px;
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border: 1px solid #d9ded2;
    border-radius: 13px;
    background: #ffffff;
  }

  .future-unlocks article img {
    width: 80px;
    height: 82px;
    object-fit: contain;
    mix-blend-mode: multiply;
  }

  .future-unlocks article div {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .future-unlocks article strong,
  .future-unlocks article span,
  .future-unlocks article small {
    display: block;
    white-space: nowrap;
  }

  .future-unlocks article strong {
    font-size: 15px;
    font-weight: 700;
  }

  .future-unlocks article span,
  .future-unlocks article small {
    color: #4f5950;
    font-size: 12px;
    font-weight: 600;
  }

  .future-next {
    position: absolute;
    right: 7px;
    top: 68px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
  }

  .future-next img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .future.mine {
    display: none;
  }
}

@media (max-width: 880px) {
  .map-routes {
    display: none;
  }

  .brand-reference {
    display: block;
    width: 160px;
    height: auto;
  }

  .avatar-reference img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
  }

  .mobile-node-tab {
    position: relative;
  }

  .mobile-node-tab.has-update::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4338;
    box-shadow: 0 0 0 3px #ffffff;
  }
}

/* Trail Journal is the active desktop direction. Keep these rules last so the
   archived reference recreation cannot override the selected Phase A design. */
@media (min-width: 881px) {
  body {
    color: var(--journal-ink);
    background: var(--journal-paper);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  }

  .topbar {
    position: sticky;
    border: 0;
    background: rgba(251, 250, 246, 0.96);
    backdrop-filter: blur(14px);
  }

  .shell {
    width: min(1472px, calc(100% - 64px));
  }

  .nav {
    height: 92px;
    grid-template-columns: 260px 1fr 260px;
    gap: 20px;
  }

  .brand-reference {
    width: 194px;
    height: 73px;
  }

  .nav-tabs {
    gap: 62px;
    color: #3f4b42;
    font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
    font-size: 18px;
  }

  .nav-tabs a {
    padding: 31px 4px 29px;
  }

  .hero {
    min-height: 846px;
    grid-template-columns: 272px minmax(0, 1fr);
    grid-template-areas: "copy map";
    gap: 30px;
    padding: 18px 0 0;
  }

  .hero-copy {
    grid-area: copy;
    padding: 52px 6px 24px 0;
  }

  .hero-copy h1 {
    max-width: 264px;
    font-size: 42px;
    line-height: 1.34;
    white-space: normal;
  }

  .hero-copy .lead {
    max-width: 236px;
    margin: 24px 0 0;
    color: #4f5d53;
    font-family: "Songti SC", "STSong", serif;
    font-size: 15px;
    line-height: 2;
    font-weight: 500;
  }

  .today-paper {
    display: block;
    margin-top: 34px;
  }

  .quick-stats,
  .report,
  .future-unlocks,
  .future.mine {
    display: none !important;
  }

  .map-shell {
    grid-area: map;
    width: 100%;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .map-board {
    width: 100%;
    height: 804px;
    min-height: 0;
    overflow: hidden;
    background: #fffefb;
  }

  .map-art {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.97;
    mix-blend-mode: normal;
  }

  .map-routes {
    display: none !important;
  }

  .map-center {
    left: 50%;
    top: 49%;
    width: 250px;
    padding: 12px 8px;
    background: rgba(255, 254, 249, 0.8);
    backdrop-filter: blur(2px);
  }

  .center-reference {
    display: none;
  }

  .map-center strong {
    font-size: 19px;
  }

  .map-center span {
    margin-top: 4px;
    color: #49564d;
    font-size: 13px;
    font-weight: 500;
  }

  .node-pin {
    width: 116px;
  }

  .node-illustration {
    width: 94px;
    height: 76px;
    filter: saturate(0.72) contrast(0.92);
  }

  .node-pin strong {
    padding: 0 3px;
    font-size: 15px;
    background: rgba(255, 254, 249, 0.78);
  }

  .node-pin span {
    margin-top: 2px;
    padding: 0 3px;
    color: #586359;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 254, 249, 0.78);
  }

  .node-pin.has-update::before {
    right: 13px;
    top: 68px;
    width: 8px;
    height: 8px;
  }

  .pin-oracle { left: 42%; top: 12%; }
  .pin-train { left: 68%; top: 23%; }
  .pin-food { left: 77%; top: 48%; }
  .pin-travel { left: 77%; top: 67%; }
  .pin-band { left: 77%; top: 84%; }
  .pin-flash { left: 54%; top: 86%; }
  .pin-english { left: 38%; top: 84%; }
  .pin-party { left: 23%; top: 69%; }
  .pin-drink { left: 20%; top: 48%; }
  .pin-moment { left: 27%; top: 28%; }

  .map-app-detail {
    width: min(760px, calc(100% - 80px));
    min-height: 50px;
    margin: -58px auto 8px;
    padding: 10px 14px;
    border-radius: 5px;
  }

  .app-entry-action,
  .future-app-link {
    border-radius: 5px;
  }

  .app-source-dock {
    display: block;
  }
}

@media (max-width: 1180px) and (min-width: 881px) {
  .hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }
}

@media (max-width: 880px) {
  .map-trace-note {
    position: absolute;
    width: 104px;
  }

  .note-training { left: 5%; top: 32%; }
  .note-lunch { left: 35%; top: 48%; }
  .note-inspiration { left: 65%; top: 31%; }

  .note-band,
  .note-english {
    display: none;
  }

  .map-board::after {
    content: "" !important;
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    background:
      linear-gradient(90deg, transparent 32.8%, rgba(99, 89, 68, 0.09) 33%, rgba(255, 255, 255, 0.34) 33.4%, transparent 34%),
      linear-gradient(90deg, transparent 65.8%, rgba(99, 89, 68, 0.08) 66%, rgba(255, 255, 255, 0.3) 66.4%, transparent 67%);
    pointer-events: none;
  }
}

/* Final mobile override must remain last in this legacy stylesheet. */
@media (max-width: 880px) {
  .map-board::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }

  .map-board picture {
    position: absolute;
    inset: 66px 0 0;
    z-index: 1;
    display: block;
    overflow: hidden;
  }

  body .mobile-map-focus {
    display: grid !important;
  }

  body .map-board {
    height: 470px;
  }

  body .map-board .map-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none !important;
  }
}
