/* Navigation for the isolated preview; it occupies space instead of covering the map. */
[data-journey-resource][hidden], [data-journey-owner][hidden], [data-voyage-view][hidden] { display: none !important; }
.preview-journey {
  --journey-ink: #f0dfbd;
  --journey-muted: #cfbe9c;
  --journey-rim: #96764b;
  position: relative;
  z-index: 4;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 2px solid var(--journey-rim);
  color: var(--journey-ink);
  background: linear-gradient(180deg, #243f33, #182f27);
  box-shadow: inset 0 1px 0 #e6ce8d35, 0 2px 0 #5c3b242b;
  font: 14px/1.5 "Microsoft YaHei", "PingFang SC", sans-serif;
}
.preview-journey *, .preview-journey-gate * { box-sizing: border-box; }
.preview-journey [hidden], .preview-journey-gate[hidden] { display: none !important; }
.preview-journey__bar {
  width: min(100% - 40px, 1580px);
  min-height: 64px;
  margin: auto;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}
.preview-journey__place, .preview-journey__account, .preview-journey__actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-journey__place { gap: 15px; }
.preview-journey__home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  flex-shrink: 0;
  color: #f7e0b3;
  text-decoration: none;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .04em;
}
.preview-journey__home svg { width: 25px; height: 25px; flex: 0 0 auto; color: #d4ad6d; }
.preview-journey__divider { width: 1px; height: 20px; flex: 0 0 auto; background: #d3b16f55; }
.preview-journey__location { color: var(--journey-muted); font-size: 13px; overflow-wrap: anywhere; }
.preview-journey__identity { max-width: 16em; padding-right: 9px; color: #e4d6b6; font-size: 13px; overflow-wrap: anywhere; }
.preview-journey__actions { flex-wrap: wrap; }
.preview-journey__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--journey-ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.preview-journey__link--brass { color: #35291d; border-color: #c7a361; background: #e5c58e; box-shadow: inset 0 1px 0 #fff3d4aa; }
.preview-journey__link--admin { border-color: #ae8b5670; color: #e8c89d; }
.preview-journey__link:hover { color: #fff2d7; border-color: #ae8b5670; background: #ffffff0c; }
.preview-journey__link--brass:hover { color: #35291d; background: #f0d5a5; border-color: #e7c688; }
.preview-journey__link--admin:hover { background: #704334; border-color: #b18756; }
.preview-journey__home:hover { color: #fff4d5; }
.preview-journey :is(a,button):focus-visible { outline: 2px solid #ffe1a0; outline-offset: 3px; }
.preview-journey :is(a,button):active { transform: translateY(1px); }
.preview-journey__feedback { width: min(100% - 40px, 1580px); margin: 0 auto; padding: 0 0 12px; color: #f1d29b; font-size: 13px; }

.preview-journey-gate { padding: clamp(40px, 8vw, 90px) 20px; color: #4e392a; background: #1c3027; }
.preview-journey-gate__paper { width: min(100%, 680px); margin: auto; padding: clamp(26px, 5vw, 50px); border: 1px solid #a47f46; outline: 1px solid #b3925760; outline-offset: 5px; background: #f6e7c9; box-shadow: 0 14px 35px #0c1c1660; }
.preview-journey-gate__eyebrow { margin: 0 0 16px; color: #805539; font-size: 14px; letter-spacing: .16em; }
.preview-journey-gate h1 { margin: 0 0 18px; color: #6d392b; font: 600 clamp(27px, 4vw, 38px)/1.45 "STKaiti", "KaiTi", serif; text-wrap: balance; }
.preview-journey-gate p:not(.preview-journey-gate__eyebrow) { margin: 0; max-width: 40em; font-size: 16px; line-height: 1.85; }
.preview-journey-gate__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 28px; }
.preview-journey-gate__actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 2px; color: #713f2c; font-size: 14px; line-height: 1.6; text-underline-offset: 5px; }
.preview-journey-gate__actions .preview-journey-gate__primary { padding: 10px 20px; border: 1px solid #8e7244; border-radius: 3px; color: #fff0d4; background: #28503d; text-decoration: none; }
.preview-journey-gate__actions a:hover { color: #9b3c2f; }
.preview-journey-gate__actions .preview-journey-gate__primary:hover { color: #fff0d4; background: #35644c; }
.preview-journey-gate a:focus-visible { outline: 3px solid #954931; outline-offset: 4px; }

/* Keep the complete illustrated scene below the navigation on larger screens. */
@media (min-width: 901px) and (min-height: 551px) {
  body.home-map-page:has(> .preview-journey) .map-home,
  body.series-page:has(> .preview-journey) .series-room { min-height: calc(100svh - var(--preview-journey-height, 66px)); }
  body.home-map-page:has(> .preview-journey) .map-board,
  body.series-page:has(> .preview-journey) .series-viewport > .series-board,
  body.series-page:has(> .preview-journey) .cookbook-stage { width: min(100%, calc((100svh - var(--preview-journey-height, 66px)) * 1.777778)); }
}
@media (max-width: 1100px) {
  .preview-journey__bar { flex-wrap: wrap; gap: 0 18px; }
  .preview-journey__account { margin-left: auto; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .preview-journey__bar { width: calc(100% - 28px); padding: 6px 0 10px; gap: 2px; }
  .preview-journey__place { width: 100%; gap: 12px; }
  .preview-journey__location { font-size: 12px; }
  .preview-journey__home { font-size: 18px; }
  .preview-journey__account { width: 100%; margin-left: 0; gap: 4px 8px; }
  .preview-journey__identity { flex: 1 1 100%; max-width: 100%; padding: 3px 0 5px; font-size: 12px; }
  .preview-journey__actions { gap: 8px; }
  .preview-journey__link { padding: 9px 10px; font-size: 12px; }
  .preview-journey__feedback { width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  .preview-journey *, .preview-journey-gate * { transition: none !important; scroll-behavior: auto !important; }
}
