:root { --story-width: 470px }
html { scroll-padding-top: 28px }
body { background-color: #8a2e22 }
.story-column {
  container: story / inline-size;
  position: relative;
  width: min(100%, var(--story-width));
  margin-inline: auto;
  background: #8a2e22;
}
.town-wing { display: none }
.journey-hud {
  right: max(12px, calc((100% - var(--story-width)) / 2 + 12px));
  bottom: max(12px,env(safe-area-inset-bottom)); padding: 7px 8px 7px 13px;
  gap: 11px; font-size: 9px;
}
.hud-stops a { width: 25px; height: 25px; font-size: 10px }
body.showing-town-portrait .journey-hud:not(:focus-within) { visibility: hidden }

@media (min-width:471px) {
  body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: #c9da9c url('images/morning.webp') center 52% / cover no-repeat;
  }
  .story-column {
    box-shadow: 0 0 0 2px #f5d69c,0 0 0 5px #724824,0 0 33px 12px #34170660;
  }
}
@media (min-width:940px) {
  .town-wing {
    --rail-gap: clamp(14px,2.1vw,40px);
    position: fixed; bottom: 0; top: 0; width: calc((100% - var(--story-width)) / 2);
    display: flex; align-items: center; justify-content: center;
    padding-inline: var(--rail-gap); overflow-y: auto;
    color: #4f301d; scrollbar-width: thin;
  }
  .wing-west { left: 0 }
  .wing-east { right: 0 }
  .visitor-desk, .signpost { width: min(100%,270px); position: relative; flex: none; margin-block: auto }
  .visitor-desk {
    margin-top: max(55px,calc((100dvh - 250px)/2)); margin-bottom: auto;
    padding: 34px clamp(14px,1.7vw,25px) 16px; text-align: center;
    border: 3px solid #674020; border-radius: 9px;
    background: radial-gradient(ellipse at 48% 35%,#fff7df,#fae6be 79%,#e8c897);
    box-shadow: inset 0 0 0 4px #f3d197,inset 0 0 0 5px #bd935b,3px 6px 0 #754921,0 12px 26px #321d1465;
  }
  .guide-host {
    position: absolute; width: 86px; height: 86px; top: -56px;
    left: calc(50% - 43px); background-position: 66.6667% 100%;
    filter: drop-shadow(0 2px 1px #6c431c4d);
  }
  .town-wing h2 { font: 900 clamp(20px,1.9vw,29px)/1.3 var(--serif); letter-spacing: .06em }
  .visitor-desk p { margin: 8px 0 13px; font-size: clamp(12px,1vw,14px); line-height: 1.7 }
  .visitor-desk a {
    display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #cead77;
    padding: 8px 4px; min-height: 40px; font-size: clamp(12px,1vw,15px); font-weight: 750;
  }
  .visitor-desk a span { color: #993922; font-size: 20px; line-height: 1 }
  .visitor-desk a:hover,.visitor-desk a[aria-current] { color: #a23220; background: #f6dfa8 }
  .signpost { display: grid; gap: 10px; justify-items: center; padding: 12px 0 22px; isolation: isolate }
  .signpost::before {
    content: ""; position: absolute; z-index: -1; inset: 14px calc(50% - 8px) 0;
    background: linear-gradient(90deg,#794623,#ba804e 35%,#925831 80%); border: 2px solid #633e26;
    border-radius: 5px; box-shadow: 2px 3px #58351a70;
  }
  .signpost h2 {
    padding: 6px 15px; font-size: clamp(16px,1.45vw,22px); color: #fff0c4;
    background: #8e3425; border: 2px solid #61351d; border-radius: 5px;
    box-shadow: inset 0 0 0 1px #daab6b, 1px 3px #634022;
  }
  .signpost a {
    position: relative; width: 100%; min-height: 67px; display: flex; align-items: center; gap: 13px;
    padding: 9px clamp(12px,1.5vw,24px); border: 2px solid #664126; border-radius: 8px 22px 22px 8px;
    background: linear-gradient(100deg,#f9dfaa,#ffeac3 48%,#edca92);
    box-shadow: inset 0 0 0 3px #f4d193,inset 0 0 0 4px #b68a57, 2px 4px #684325;
    font: 900 clamp(15px,1.5vw,22px)/1.25 var(--serif);
  }
  .signpost a::after { content: "›"; margin-left: auto; color: #96512b }
  .signpost a:nth-of-type(1) { rotate: -2deg }
  .signpost a:nth-of-type(3) { rotate: 2deg }
  .signpost small { display: block; font: 700 11px/1.5 Noto,sans-serif; color: #785132 }
  .signpost .icon { width: 24px; height: 24px; color: #8c3425 }
  .signpost a:nth-of-type(2) .icon { color: #526337 }
  .signpost a:nth-of-type(3) .icon { color: #315873 }
  .signpost a:hover,.signpost a[aria-current] { outline: 3px solid #ffce68; outline-offset: 1px }
  .signpost a:focus-visible { outline: 3px solid #24567c; outline-offset: 3px }
}
