.journey-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(38, 79, 65, 0.2);
  margin-top: 6px;
  gap: 8px;
}
.journey-strip button {
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  text-align: left;
  color: #245344;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.4;
  font-size: 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.journey-strip button:last-child { text-align: right; color: #815231; }
.route-panel, .album-panel { display: flex; flex-direction: column; }
.route-body.tool-scroll, .album-body.tool-scroll { min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
.route-body .route-list, .album-body .album-list { max-height: none; }
.route-panel > .tool-header, .album-panel > .tool-header,
.route-panel > .route-summary, .album-panel > .album-summary { flex-shrink: 0; }
.journey-map-section, .journey-story-section, .seek-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.journey-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.journey-section-heading h3 { margin: 0; font-size: 16px; color: #244c3d; }
.journey-section-heading > span { font-size: 12px; color: #766345; text-align: right; }
.journey-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 12px; border: 1px solid #6d897b; border-radius: 6px; overflow: hidden; }
.journey-paths button { min-width: 0; min-height: 52px; display: grid; gap: 4px; padding: 8px; border: 0; border-radius: 0; color: #3d574b; background: #f4f6ed; cursor: pointer; }
.journey-paths button + button { border-left: 1px solid #6d897b; }
.journey-paths button[aria-pressed="true"] { color: #fff9e5; background: #285846; box-shadow: inset 0 -3px #c5a35f; }
.journey-paths b { font-size: 14px; }
.journey-paths small { font-size: 11px; color: inherit; opacity: 0.82; }
.journey-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 4px;
  list-style: none;
  margin: 0;
  padding: 16px 8px;
  border: 1px solid #92a18b;
  border-radius: 6px;
  background: linear-gradient(rgba(241, 246, 234, 0.88), rgba(226, 237, 223, 0.92)), url("assets/jianghu-riverside-market.webp") center / cover;
}
.journey-map li { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #728075; }
.journey-map li::before { content: ""; position: absolute; top: 21px; left: -6px; width: calc(100% + 10px); border-top: 1px dashed #899886; }
.journey-map b { position: relative; display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #b6c3b0; background: #ecf0e5; font-family: "Songti SC", serif; font-size: 21px; }
.journey-map span { font-size: 11px; white-space: nowrap; }
.journey-map small { font-size: 10px; min-height: 14px; }
.journey-map .is-reachable { color: #245443; }
.journey-map .is-reachable b { border-color: #528471; background: #dcebdd; }
.journey-map [data-node="river"].is-reachable b, .journey-map [data-node="ferry"].is-reachable b { background: #deedf0; color: #375c66; }
.journey-map .is-current { color: #9c3c2e; font-weight: 700; }
.journey-map .is-current b { border: 2px solid #a84938; color: #fff9e9; background: #9b4133; box-shadow: 0 0 0 3px #efdfc0; }
.journey-map-caption { color: #697061; font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
#journeyStory { color: #414a3e; font-size: 13px; line-height: 1.7; }
#journeyStory > strong { color: #804e32; }
#journeyStory p { margin: 6px 0; }
#journeyStory small { color: #28704d; }
#journeyStory details { margin-top: 12px; border-top: 1px dashed #b8bba5; padding-top: 8px; }
#journeyStory summary { cursor: pointer; color: #716149; }
.seek-picker { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-bottom: 12px; }
.seek-picker select, .seek-actions select { min-width: 0; flex: 1; width: 100%; height: 40px; border: 1px solid #98a596; border-radius: 5px; padding: 6px; background: #fffdf4; color: #294b3b; font-size: 13px; }
#seekDetail { font-size: 12px; line-height: 1.65; color: #5b6555; }
.seek-progress-label { display: flex; justify-content: space-between; gap: 12px; color: #365641; }
.seek-progress-label .coin-name { font-size: 15px; }
#seekDetail progress { display: block; appearance: none; width: 100%; height: 6px; margin: 8px 0 12px; border: none; border-radius: 3px; overflow: hidden; background: #dbe3d5; accent-color: #357558; }
#seekDetail progress::-webkit-progress-bar { background: #dbe3d5; }
#seekDetail progress::-webkit-progress-value { background: #357558; transition: width 250ms ease; }
#seekDetail progress::-moz-progress-bar { background: #357558; }
.seek-locations { margin: 4px 0; }
.seek-quote { margin: 10px 0 0; color: #875734; font-weight: 600; }
.journey-notice { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: #267347; }
.journey-notice:empty { display: none; }
.seek-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.seek-actions button { min-height: 40px; padding: 8px 12px; border: 1px solid #31654e; border-radius: 5px; background: #2b634b; color: #fff8e7; font-size: 13px; cursor: pointer; }
.seek-actions button:first-child { grid-column: 1 / -1; }
.seek-actions button:disabled, .seek-actions select:disabled { opacity: 0.55; cursor: default; }
.album-actions { display: flex; align-items: center; gap: 6px; }
.album-seek-action { min-height: 38px; padding: 6px 9px; border: 1px solid #9a7950; border-radius: 5px; background: #f8f1db; color: #78562e; font-weight: 600; cursor: pointer; }
.album-seek-action:disabled { opacity: 0.5; cursor: default; }
.album-entry { grid-template-columns: minmax(0, 1fr) auto; }
.album-entry .album-coin-info { min-width: 0; overflow-wrap: anywhere; }
.story-card.has-result .scene-scroll > .scene-visual { height: auto; min-height: 0; }
@media (max-width: 600px) {
  .topbar { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .title-lockup > div { display: flex; width: 100%; min-width: 0; align-items: baseline; justify-content: space-between; gap: 8px; }
  .title-lockup h1 { font-size: 24px; line-height: 1.2; }
  .title-lockup p { margin: 0; }
  .top-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.8fr) repeat(5, minmax(0, 1fr)); }
  .top-actions button { white-space: nowrap; padding: 0 1px; font-size: 10px; }
  .home-overview { gap: 4px; margin-top: 0; }
  .home-statuses { padding: 3px 5px; }
  .home-statuses li { padding: 2px 5px; }
  .story-meta { gap: 6px; }
  .encounter-location { display: none; }
  .encounter-heading { flex: 1; }
  .encounter-heading-copy strong { font-size: 15px; }
  .story-card { grid-template-rows: minmax(72px, 1fr) minmax(0, auto); }
  .choice-area { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .story-card.has-result { grid-template-rows: minmax(72px, 1fr) minmax(160px, auto); }
  .story-card.has-result .choice-area { display: flex; flex-direction: column; overflow: hidden; }
  .story-card.has-result .result-panel:not([hidden]) { flex: 1; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; overflow: hidden; }
  .story-card.has-result #resultText { min-height: 0; max-height: none; margin: 4px 0; overflow-y: auto; }
  .story-card.has-result #continueBtn { margin-top: 5px; }
  .scene-narrative { min-height: 0; max-height: min(108px, 100%); }
  .journey-strip { gap: 6px; margin-top: 4px; }
  .journey-strip button { font-size: 10px; min-height: 30px; line-height: 1.4; }
  .journey-map-section, .journey-story-section, .seek-section { padding: 12px; }
  .journey-map { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 6px; }
  .journey-section-heading { gap: 8px; margin-bottom: 10px; }
  .journey-section-heading h3 { font-size: 15px; }
  .album-actions { gap: 4px; }
  .album-actions button { min-width: 0; min-height: 40px; font-size: 11px; padding: 6px 8px; }
  .album-entry { gap: 8px; }
  .album-coin-info .coin-name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #seekDetail progress::-webkit-progress-value { transition: none; }
  .tool-overlay:not([hidden]) .tool-panel,
  .tool-overlay:not([hidden]) :is(.album-entry, .album-set, .route-entry) { animation: none; }
  .result-panel, .result-panel * { animation: none !important; }
}
