/* Literal reconstruction of the three attached PNGs. Scenery is original
   raster artwork; controls, coordinates, receipts and copy remain live DOM. */
body[data-screen="journey"] .app { padding-inline: 0; max-width: 850px; }
body[data-screen="journey"] .study-journey { position: relative; max-width: 700px; }
/* The fork owns a full-width scene, but raised controls need a small inset so
   their bevels and focus outlines never get cut by the viewport edge. */
body[data-screen="journey"]:has(.study-journey[data-view="route"]) .game-header {
  padding-inline: max(8px, var(--safe-left, 0px)) max(8px, var(--safe-right, 0px));
}
body[data-screen="journey"]:has(.study-journey[data-view="route"]) .game-header > .player-supplies {
  min-width: 0;
}
.study-journey .journey-map {
  container-type: inline-size;
  margin: 0;
  width: 100%;
  background: #167c78;
}
.study-journey .journey-overhead,
.study-journey .journey-night-lights,
.study-journey .journey-map::before,
.study-journey .journey-map::after { mask-image: none; }
.study-journey .journey-map::after { display: none; }
.study-journey .journey-study-route {
  fill: none;
  stroke: #f4ce6b;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-dasharray: 1 18;
  opacity: .22;
}
.study-journey .journey-map-sign,
.study-journey > .expedition-progress,
.study-journey > .journey-season-strip,
.study-journey > .journey-coach { display: none; }
.study-journey > .journey-heading { pointer-events: none; }
.study-journey > .journey-heading #journey-light { pointer-events: auto; }
.study-journey[data-view="map"] > .journey-heading,
.study-journey[data-view="complete"] > .journey-heading {
  position: fixed;
  z-index: 9;
  top: calc(70px + var(--safe-top, 0px));
  left: 50%;
  width: min(620px, calc(100% - 24px));
  min-height: 68px;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px;
  border: 3px solid transparent;
  background: var(--relic-parchment) padding-box, var(--relic-gilding) border-box;
  border-radius: 18px;
  box-shadow: 0 5px 10px #183d3833;
}
.study-journey .journey-heading > div { display: flex; flex-direction: column-reverse; gap: 3px; }
.study-journey .journey-heading h1 { margin: 0; font-size: clamp(23px, 5.6vw, 31px); line-height: 1; }
.study-journey .journey-heading small { color: #3a625b; font-size: 11px; letter-spacing: 0; text-wrap: balance; }
.study-journey #journey-light { min-height: 44px; height: 44px; width: 44px; padding: 2px; }
.study-journey #journey-light small { display: none; }
.study-journey .journey-node {
  --stop-size: 26cqw;
  width: var(--stop-size);
  height: var(--stop-size);
  min-width: 90px;
  min-height: 90px;
  padding: 0;
  gap: 0;
  transform: translate(-50%, -50%);
  touch-action: pan-y;
}
.study-journey .journey-node.is-current { --stop-size: 26cqw; }
.study-journey .journey-node-face {
  position: static;
  width: 100%;
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.study-journey .journey-node-face > .illustrated-icon { display: none; }
.study-journey .journey-node-number {
  position: absolute;
  left: calc(50% + var(--plate-x));
  top: calc(50% + var(--plate-y));
  right: auto;
  bottom: auto;
  display: grid;
  place-items: center;
  min-width: max(42px, 12cqw);
  height: max(23px, 5.6cqw);
  padding: 0 5px;
  transform: translate(-50%, -50%);
  background: var(--relic-parchment) padding-box, var(--relic-gilding) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 2px 3px #3d493133;
  color: #164e57;
  text-shadow: none !important;
  font: 700 clamp(16px, 4.5cqw, 25px)/1 var(--heading, var(--body));
}
.study-journey .journey-node.is-current .journey-node-number { font-size: clamp(18px, 4.8cqw, 27px); }
.study-journey .journey-node-check,
.study-journey .journey-node-lock,
.study-journey .journey-node-currentmark {
  position: absolute;
  left: calc(50% + var(--badge-x));
  top: calc(50% + var(--badge-y));
  right: auto;
  bottom: auto;
  display: grid;
  place-items: center;
  width: max(27px, var(--badge-w));
  height: max(28px, var(--badge-h));
  transform: translate(-50%, -50%);
  border: 2px solid #fff1bc;
  border-radius: 50%;
  background: linear-gradient(140deg,#ffed99,#d49c34);
  color: #86601c;
  box-shadow: 0 3px 2px #5e4b283d;
}
.study-journey .journey-node-check { background: linear-gradient(145deg,#9bd95e,#319252); color: white; }
.study-journey .journey-node-currentmark { background: linear-gradient(145deg,#1fbdb3,#087e89); color: #fff9d9; }
.study-journey .journey-node-check > .icon,
.study-journey .journey-node-lock > .icon,
.study-journey .journey-node-currentmark > .icon { width: 19px; height: 19px; }
.study-journey .journey-node-label,
.study-journey .journey-node.is-current .journey-node-label {
  position: absolute;
  left: calc(50% + var(--plate-x));
  top: calc(50% + var(--plate-y) + max(13px, 3.1cqw));
  width: max-content;
  max-width: 148px;
  min-width: 88px;
  min-height: 28px;
  transform: translateX(-50%);
  display: grid;
  align-content: center;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid #ffedb4;
  border-radius: 13px;
  background: #fff0ca;
  color: #175560;
  box-shadow: 0 3px 3px #294d4033;
  font: 700 12px/1.1 var(--heading,var(--body));
  text-shadow: none;
}
.study-journey .journey-node.is-current .journey-node-label { background: linear-gradient(135deg,#16ada5,#087f91); color: white; min-width: 135px; font-size: 15px; border-width: 2px; }
.study-journey .journey-node.is-current .journey-node-label::before { display: none; }
.study-journey .journey-node-note,
.study-journey .journey-node[data-note-side="left"] .journey-node-note {
  top: calc(50% + var(--plate-y) + max(13px, 3.1cqw));
  left: calc(50% + var(--plate-x));
  right: auto;
  width: max-content;
  min-width: 100px;
  min-height: 36px;
  padding: 4px 8px;
  place-items: center;
  transform: translateX(-50%);
  background: #fff0ca;
  border-color: #fff0c0;
}
.study-journey .journey-node-note small { font-size: 11px; }
.study-journey .journey-node.is-done:has(.journey-node-note) .journey-node-label { display: none; }
.study-journey .journey-traveler {
  left: calc(50% - 20cqw);
  top: calc(50% - 11cqw);
  width: 20cqw;
  height: 26cqw;
  transform: none;
  animation: none;
  filter: drop-shadow(0 3px 2px #284e3b44);
}
.study-journey .journey-traveler-olga { animation: none; object-fit: contain; }
.study-journey .journey-current-beacon { top: 50%; width: 27cqw; height: 15cqw; }
.study-journey .journey-preview-stop { display: none; }
.study-journey .journey-supply {
  background: radial-gradient(ellipse at 50% 90%,#d9a95340,transparent 70%);
  filter: drop-shadow(0 2px 2px #204d3a44);
}


/* A complete painted world stays still beneath complete transparent props.
   Native labels and selection state never move the destination hit targets. */
.study-journey[data-view="route"] {
  width: 100%;
  max-width: 700px;
  min-width: 0;
  margin: 0 auto;
  aspect-ratio: 853 / 1310;
  container-type: inline-size;
  background: #168c86;
}
.study-journey[data-view="route"] .journey-fork {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  isolation: isolate;
  background: #168c86;
  transform: none;
  translate: none !important;
}
.study-journey[data-view="route"] .journey-fork-world {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
}
.study-journey[data-view="route"] .journey-fork-world > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  clip-path: none;
  mask-image: none;
  transform: none;
  /* Distance loses contrast before the foreground does. This is a static
     treatment of the scenery only; choices and Olga keep their native paint. */
  filter: saturate(.72) contrast(.84) brightness(1.035);
}
/* Environmental haze stays inside the background plane, behind the terraces'
   selectable objects, gate lights and readable plaques. Broad gradients suggest
   a cool valley distance rather than a flat white veil over the whole UI.
   No animated blur, backdrop sampling or per-frame work is needed. */
.study-journey[data-view="route"] .journey-fork-world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 40% at 50% 38%, #d8e9e0a8 0%, #d4e6dc55 52%, #c8e2da00 100%),
    linear-gradient(180deg, #f0ebcb14 0%, #d3e7dc33 24%, #c7e1d952 53%, #bddbd52e 76%, #b7d8cf0a 100%);
}
/* Historical cream disks and raster selection overlays have no runtime role. */
.study-journey[data-view="route"] .journey-platforms,
.study-journey[data-view="route"] .journey-fork::before,
.study-journey[data-view="route"] .journey-fork::after { display: none; }
/* Failed scenery still leaves two legible, stationary native destinations. */
.study-journey[data-view="route"] .journey-fork-world--fallback {
  background: radial-gradient(ellipse at 50% 73%,#4acac2 0 12%,transparent 13%),
    linear-gradient(165deg,#1f9286,#196d71 58%,#d1ae63);
}
.study-journey[data-view="route"] .journey-fork-world--fallback > img { display: none; }
.study-journey[data-view="route"] .journey-fork:has(.journey-fork-world--fallback) .journey-platforms {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
}
.study-journey[data-view="route"] .journey-platform { position: absolute; top: 13%; left: 4%; width: 42%; height: 45cqw; }
.study-journey[data-view="route"] .journey-platform[data-route-slot="1"] { left: 54%; }
.study-journey[data-view="route"] .journey-platform-face {
  position: absolute;
  top: -2cqw;
  left: 50%;
  width: 32cqw;
  height: 32cqw;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border: 3px solid #e5c57f;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 20%,#fff6d3,#edcf90 64%,#ba8b42);
  box-shadow: inset 0 0 0 4px #fff0ba, inset 0 -6px 12px #9e79343d;
}
.study-journey[data-view="route"] .journey-platform .icon { width: 9cqw; height: 9cqw; color: #ac8440; opacity: .45; }
.study-journey[data-view="route"] .journey-platform-plaque { display: none; }
.study-journey[data-view="route"] .journey-fork:has([data-expedition-route="0"]) [data-route-slot="0"] .icon,
.study-journey[data-view="route"] .journey-fork:has([data-expedition-route="1"]) [data-route-slot="1"] .icon { visibility: hidden; }
.study-journey[data-view="route"] .journey-choice[data-expedition-route="0"] { left: 4%; }
.study-journey[data-view="route"] .journey-choice[data-expedition-route="1"] { left: 54%; }
.study-journey[data-view="route"] .journey-fork > p:not(.journey-position-plaque) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.study-journey[data-view="route"] > .journey-heading {
  position: absolute;
  z-index: 5;
  top: 1.4%;
  left: 12.8%;
  width: 75%;
  height: 14cqw;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 3px solid transparent;
  background: var(--relic-parchment) padding-box, var(--relic-gilding) border-box;
  border-radius: 15px;
  text-align: center;
}
.study-journey[data-view="route"] .journey-heading > div { position: absolute; inset: 0; }
.study-journey[data-view="route"] .journey-heading h1 { position: absolute; inset: 4px 9px auto; height: 68%; display: grid; place-items: center; font: 700 clamp(16px,4.9cqw,29px)/1 var(--heading,var(--body)); margin: 0; }
.study-journey[data-view="route"] .journey-heading small { position: absolute; top: 73%; left: 10%; right: 10%; font-size: clamp(10px,2.8cqw,16px); line-height: 1; }
.study-journey[data-view="route"] .journey-choices { display: contents; }
.study-journey[data-view="route"] .journey-choice {
  position: absolute;
  z-index: 3;
  top: 13%;
  left: 4%;
  width: 42%;
  height: auto;
  min-width: 0;
  min-height: max(130px,45cqw);
  padding: 22cqw 0 0;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  overflow: visible;
  touch-action: manipulation;
  transform: none;
  translate: none !important;
  transition: none;
  text-align: center;
}
.study-journey[data-view="route"] .journey-choice-art {
  position: absolute;
  z-index: 1;
  top: -3cqw;
  left: 50%;
  width: 25cqw;
  height: 25cqw;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  pointer-events: none;
}
.study-journey[data-view="route"] .journey-choice-art > img.fork-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  clip-path: none;
  mask-image: none;
  transform: none;
  transform-origin: center;
  transition: transform 180ms cubic-bezier(.2,.7,.25,1), filter 180ms ease;
  filter: drop-shadow(0 3px 2px #275b4655);
}
.study-journey[data-view="route"] .journey-choice-art--fallback > .icon {
  display: block;
  width: 15cqw;
  height: 15cqw;
  color: #147f80;
  filter: drop-shadow(0 2px 0 #ffedb3);
}
.study-journey[data-view="route"] .journey-choice-art:not(.journey-choice-art--fallback) > .icon,
.study-journey[data-view="route"] .journey-choice-art > img.fork-art[hidden] { display: none; }
.study-journey[data-view="route"] .journey-choice-copy {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  width: 36cqw;
  min-height: 17cqw;
  margin: 0 auto;
  transform: none;
  gap: 3px;
  place-content: center;
  padding: 4px 5px;
  border: 2px solid transparent;
  background: var(--relic-parchment) padding-box, var(--relic-gilding) border-box;
  border-radius: 17px;
  color: #124d56;
  box-shadow: 0 3px 0 #be9348, 0 5px 5px #214d3c33;
  pointer-events: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.study-journey[data-view="route"] .journey-choice-copy strong { font: 700 clamp(16px,4cqw,24px)/1.02 var(--heading,var(--body)); overflow-wrap: normal; }
.study-journey[data-view="route"] .journey-choice-copy > span { display: block; overflow: visible; color: #36554d; font-size: clamp(14px,2.8cqw,16px); line-height: 1.2; }
/* A lit sanctuary in the terrace, with concentric mineral/metal rims. The
   floor and its engraving are static; only a bounded shaft and ripple move. */
.study-journey[data-view="route"] .journey-choice-gate {
  position: absolute;
  z-index: 0;
  left: calc(50% - 1cqw);
  top: 6cqw;
  width: 36cqw;
  height: 16cqw;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.study-journey[data-view="route"] .journey-choice[data-expedition-route="1"] .journey-choice-gate { left: calc(50% + 1cqw); }
.study-journey[data-view="route"] .journey-choice-gate::before {
  content: "";
  position: absolute;
  inset: -24% -8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #eeffc876 10%, #6effd35e 42%, #2cdbcd29 61%, transparent 73%);
  pointer-events: none;
}
.journey-gate-floor,
.journey-gate-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.journey-gate-floor {
  overflow: visible;
  border: max(1.5px,.32cqw) solid #fff7c9;
  background: radial-gradient(ellipse, #ecffcd99 8%, #99ffe38c 32%, #35d7cbb8 59%, #087d87e6 78%, #4fe9d8 89%, #e7ffda 97%);
  box-shadow:
    0 0 0 max(1px,.18cqw) #c6943d,
    0 0 0 max(2.5px,.45cqw) #baffdfbf,
    0 0 18px #49edcda6,
    inset 0 0 0 max(1px,.2cqw) #12878b,
    inset 0 0 12px #e9ffcad1;
}
.journey-gate-floor::before,
.journey-gate-floor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.journey-gate-floor::before {
  inset: 4%;
  background: repeating-conic-gradient(from 5deg, #fff3bd 0deg 2deg, transparent 2deg 20deg);
  mask-image: radial-gradient(ellipse, transparent 62%, #000 63% 78%, transparent 79%);
  opacity: .92;
}
.journey-gate-floor::after {
  inset: 15% 11%;
  border: max(1px,.18cqw) solid #edffce;
  box-shadow: 0 0 0 1px #208d8e8c, inset 0 0 0 1px #e7e6a34d;
}
.journey-gate-sheen {
  position: absolute;
  left: 14%;
  bottom: 43%;
  width: 72%;
  height: 165%;
  clip-path: polygon(13% 0,87% 0,100% 100%,0 100%);
  background:
    linear-gradient(90deg, transparent 3%, #d6ffcb40 18%, transparent 26% 42%, #fcffd35e 50%, transparent 58% 74%, #b5ffe243 83%, transparent 97%),
    linear-gradient(0deg, #deffbca6, #7af3d633 62%, transparent 100%);
  transform-origin: 50% 100%;
  opacity: .62;
  pointer-events: none;
}
.journey-gate-ripple { border: max(1px,.22cqw) solid #efffc5; opacity: 0; }
.study-journey[data-view="route"] .journey-choice[aria-pressed="true"] .journey-choice-gate { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .journey-choice[aria-pressed="true"] .journey-gate-sheen { animation: fork-gate-sheen 3.8s ease-in-out infinite; animation-play-state: paused; }
  .journey-choice[aria-pressed="true"] .journey-gate-ripple { animation: fork-gate-ripple 3.2s ease-out infinite; animation-play-state: paused; }
  .journey-fork[data-gate-motion="running"] .journey-choice[aria-pressed="true"] :is(.journey-gate-sheen,.journey-gate-ripple) { animation-play-state: running; }
  @keyframes fork-gate-sheen {
    0%,100% { transform: scaleX(.96) scaleY(.97); opacity: .4; }
    48% { transform: scaleX(1.025) scaleY(1.04); opacity: .72; }
  }
  @keyframes fork-gate-ripple {
    0% { transform: scale(.98); opacity: 0; }
    18% { opacity: .8; }
    78%,100% { transform: scale(1.18); opacity: 0; }
  }
}
.study-journey[data-view="route"] .journey-choice:is(:hover,:active,[aria-pressed="true"]) { transform: none; }
.study-journey[data-view="route"] .journey-choice[aria-pressed="true"] { box-shadow: none; }
.study-journey[data-view="route"] .journey-choice[aria-pressed="true"] .journey-choice-copy { border-color: #56e8d6; box-shadow: 0 3px 0 #087c80, 0 0 0 2px #c1fff080, 0 4px 8px #155e5655; }
.study-journey[data-view="route"] .journey-choice:active .journey-choice-art > img.fork-art { transform: scale(.98); }
.study-journey[data-view="route"] .journey-choice:focus-visible { outline: none; }
.study-journey[data-view="route"] .journey-choice:focus-visible .journey-choice-copy { outline: 3px solid #087d86; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  :where(html:not(.touch-preview)) .study-journey[data-view="route"] .journey-choice:not(:disabled):hover .journey-choice-art > img.fork-art {
    transform: translateY(-1px) scale(1.015);
    filter: drop-shadow(0 5px 3px #275b4655) brightness(1.035);
  }
  :where(html:not(.touch-preview)) .study-journey[data-view="route"] .journey-choice:not(:disabled):hover .journey-choice-copy {
    border-color: #f5d67d;
  }
  :where(html:not(.touch-preview)) .study-journey[data-view="route"] .journey-choice:not(:disabled):hover:active .journey-choice-art > img.fork-art { transform: scale(.98); }
}
.study-journey[data-view="route"] .journey-route-scene { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; overflow: visible; background: none; pointer-events: none; }
/* The new world already paints the complete origin. A native pool is only a
   failed-scenery fallback, never an extra surface over the illustration. */
.study-journey[data-view="route"] .journey-origin-platform {
  position: absolute; left: 34.5%; top: 49.7%; width: 31cqw; height: 27cqw;
  z-index: 1;
  display: none;
}
.study-journey[data-view="route"] .journey-fork:has(.journey-fork-world--fallback) .journey-origin-platform { display: block; }
.study-journey[data-view="route"] .journey-origin-platform::before {
  content: ""; position: absolute; inset: 7% 7.5% 3.5%; border-radius: 50%;
  border: 1.3cqw solid #edc573;
  background: radial-gradient(ellipse at 45% 35%,#38e2df,#11c5d0 57%,#058c9d);
  box-shadow: inset 0 0 0 .4cqw #c2fff0;
}
.study-journey[data-view="route"] .journey-origin-platform .journey-origin-pool {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.study-journey[data-view="route"] .journey-route-scene .journey-route-olga {
  left: calc(50% - 11.6667cqw); top: calc(62.5% - 34cqw); bottom: auto;
  width: 23.3333cqw; height: 35cqw; object-fit: contain; z-index: 2;
  transform-origin: var(--fork-guide-pivot, 51.85546875% 89.90885417%);
  transform: var(--fork-guide-transform, none);
  filter: drop-shadow(0 2px 1px #164a3933);
}
/* Native sources share a visual support pivot. A finite planar registration
   lives in fork-guide-registration.js, separate from positive turn scale. */
.study-journey[data-view="route"] .journey-route-scene::after { content: none; display: none; }
.study-journey[data-view="route"] .journey-position-plaque {
  position: absolute;
  z-index: 3;
  left: 50%; top: calc(62.5% + 1.8cqw);
  width: clamp(176px, 35cqw, 248px);
  min-height: clamp(52px, 9.3cqw, 66px);
  height: auto; overflow: visible; clip-path: none;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(7px, 1.2cqw, 10px);
  margin: 0; padding: 10px 15px 15px;
  transform: translateX(-50%);
  color: #134f55;
  font: 750 clamp(15px, 3.2cqw, 21px)/1.1 var(--heading, var(--body));
  text-shadow: 0 1px 0 #fffbea;
  white-space: nowrap;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px #163d3b40);
}
.journey-position-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.journey-position-seal {
  flex: 0 0 auto; display: grid; place-items: center;
  width: clamp(25px, 4.3cqw, 31px); aspect-ratio: 1;
  border: 1px solid #e2bd69; border-radius: 50%;
  background: linear-gradient(145deg, #1fa7a0, #0a646b);
  box-shadow: inset 0 1px 1px #b1ede777, 0 1px 0 #fff4cc;
}
.journey-position-seal > svg { width: 77%; height: 77%; }
.journey-position-label { display: block; }

@media (max-width: 350px) {
  .study-journey[data-view="map"] > .journey-heading { min-height: 58px; padding: 5px 8px; }
  .study-journey .journey-heading h1 { font-size: 22px; }
  .study-journey .journey-heading small { font-size: 10px; }
  .study-journey[data-view="route"] .journey-choice-copy { width: 39cqw; }
  .study-journey[data-view="route"] .journey-choice-copy strong { font-size: 16px; }
  .study-journey[data-view="route"] .journey-route-scene .journey-route-olga {
    left: calc(50% - 9.6667cqw); top: calc(62.5% - 28cqw);
    width: 19.3333cqw; height: 29cqw;
  }
}
@media (max-width: 539px) and (max-height: 650px) {
  .study-journey[data-view="route"] .journey-heading h1 { font-size: clamp(16px,4.9cqw,24px); inset-inline: 4px; }
  .study-journey[data-view="route"] .journey-heading small { font-size: clamp(10px,2.8cqw,14px); }
  .study-journey[data-view="route"] .journey-choice-copy > span { display: block; }
}
/* A separately painted landscape scene expands across wide windows. Both
   sources are shown whole; coordinates follow their authored terraces. */
@media (min-width: 900px) and (min-aspect-ratio: 6/5),
  (min-width: 600px) and (min-aspect-ratio: 6/5) and (max-height: 550px) {
  body[data-screen="journey"]:has(.study-journey[data-view="route"]) .app { max-width: 1100px; }
  body[data-screen="journey"] .study-journey[data-view="route"] {
    width: min(100%, calc((100dvh - var(--play-dock-height,160px) - 122px) * 16 / 9));
    max-width: 1100px;
    aspect-ratio: 16 / 9;
  }
  .study-journey[data-view="route"] > .journey-heading { height: 14%; min-height: 44px; }
  .study-journey[data-view="route"] .journey-heading h1 { font-size: clamp(17px,2.8cqw,30px); }
  .study-journey[data-view="route"] .journey-heading small { font-size: clamp(11px,1.5cqw,16px); }
  .study-journey[data-view="route"] .journey-choice,
  .study-journey[data-view="route"] .journey-platform { top: 19%; }
  .study-journey[data-view="route"] .journey-choice { min-height: 27cqw; padding-top: 17cqw; }
  .study-journey[data-view="route"] .journey-choice[data-expedition-route="0"],
  .study-journey[data-view="route"] .journey-platform[data-route-slot="0"] { left: 2%; }
  .study-journey[data-view="route"] .journey-choice[data-expedition-route="1"],
  .study-journey[data-view="route"] .journey-platform[data-route-slot="1"] { left: 56%; }
  .study-journey[data-view="route"] .journey-choice-art { top: -1cqw; width: 18cqw; height: 18cqw; }
  .study-journey[data-view="route"] .journey-choice-copy { width: 32cqw; min-height: 8cqw; padding: 8px; }
  .study-journey[data-view="route"] .journey-choice-copy strong { font-size: clamp(18px,2.8cqw,28px); }
  .study-journey[data-view="route"] .journey-choice-copy > span { font-size: clamp(14px,1.7cqw,16px); }
  .study-journey[data-view="route"] .journey-choice-gate { left: calc(50% - 1.3cqw); top: 7.7cqw; width: 32cqw; height: 12cqw; }
  .study-journey[data-view="route"] .journey-choice[data-expedition-route="1"] .journey-choice-gate { left: calc(50% - 1.5cqw); }
  .study-journey[data-view="route"] .journey-platform-face { top: 6cqw; width: 32cqw; height: 16cqw; }
  .study-journey[data-view="route"] .journey-origin-platform { left: 40%; top: 63%; width: 20cqw; height: 18cqw; }
  .study-journey[data-view="route"] .journey-route-scene .journey-route-olga {
    left: calc(50% - 6.6667cqw); top: calc(84% - 19.5cqw);
    width: 13.3333cqw; height: 20cqw;
  }
  .study-journey[data-view="route"] .journey-position-plaque {
    top: calc(84% + 1.1cqw);
    width: clamp(176px, 25cqw, 248px);
    min-height: clamp(52px, 6.6cqw, 62px);
    font-size: clamp(15px, 2cqw, 21px);
  }
}
@media (min-width: 900px) and (min-aspect-ratio: 6/5) and (max-height: 550px) {
  .study-journey[data-view="route"] .journey-position-plaque {
    min-height: 44px; padding: 6px 14px 10px; font-size: 15px;
  }
  .study-journey[data-view="route"] .journey-position-seal { width: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .study-journey[data-view="route"] .journey-choice .journey-choice-art > img.fork-art {
    transform: none !important;
    transition: none;
  }
  .study-journey[data-view="route"] .journey-choice-copy { transition: none; }
  .study-journey[data-view="route"] .journey-choice-gate { transition: none; }
  .study-journey .journey-current-beacon::before,
  .study-journey .journey-current-beacon::after,
  .study-journey .journey-node-label::after { animation: none; }
}

.expedition-complete > img { object-fit: contain; height: 150px; width: 100px; }

/* One season, one native document scroll. No five-stop paging surfaces. */
body[data-screen="journey"] .app:has(.season-strip-map) { max-width: 1120px; }
body[data-screen="journey"] .study-journey:is([data-view="map"],[data-view="complete"]) {
  --journey-scene-max-width: 1120px;
  width: 100%; max-width: var(--journey-scene-max-width); margin: 0 auto;
  padding: 90px 0 0;
}
.study-journey .journey-map-frame { position: relative; overflow: clip; }
.study-journey .journey-map[data-master-path] { overflow-anchor: none; }
.study-journey .journey-master-cap {
  display: grid; justify-items: center; gap: 3px; margin: 0 12px;
  padding: 14px 10px; text-align: center; color: var(--relic-ink);
  border: 1px solid #d2ac65; background: var(--relic-parchment);
  font: 650 17px/1.2 var(--heading,var(--body));
}
.study-journey .journey-master-cap span { font: 600 12px/1.35 var(--body); color: #4b6961; }
.study-journey .journey-master-cap--end { border-radius: 18px 18px 0 0; }
.study-journey .journey-master-cap--start { border-radius: 0 0 18px 18px; }
@media (min-width: 760px) {
  .study-journey .journey-master-cap { margin-inline: 0; }
}
.study-journey .journey-monthly-note { margin: 16px 20px 0; color: #42655e; font: 600 13px/1.5 var(--body); text-align: center; }
.study-journey .journey-node:not(button) { cursor: default; }
.study-journey .journey-node:not(button):active { transform: translate(-50%, -50%); }
.study-journey .journey-master-link {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; margin: 0 12px; color: var(--relic-ink);
  text-decoration: underline; font: 750 14px/1.2 var(--body);
}
.study-journey .journey-master-link .icon { width: 20px; height: 20px; }
.study-journey .journey-master-link:focus-visible { outline: 3px solid #087d86; outline-offset: 2px; border-radius: 10px; }

/* The plain trail link has its own row below the fork. */
.study-journey[data-view="route"] { margin-bottom: 56px; }
body[data-screen="journey"] #home-play-slot .journey-actions { min-width: 0; }
body[data-screen="journey"] #home-play-slot .primary { min-width: 0; max-width: 100%; }
body[data-screen="journey"] #home-play-slot .primary > span { min-width: 0; overflow-wrap: anywhere; }
/* Confirmation is the same independent play surface above the navigation.
   The timer stays by the selected plaque; this button can leave immediately. */
body[data-screen="journey"] #home-play-slot .journey-confirm {
  touch-action: manipulation;
}
body[data-screen="journey"] #home-play-slot .journey-confirm:disabled {
  opacity: 1;
  cursor: default;
}

/* The grace period belongs to the chosen plaque. Its cancel target is a DOM
   sibling, so it cannot re-activate the destination or cover its artwork. */
.study-journey[data-view="route"] .journey-choice-copy > .journey-choice-countdown-label { display: none; }
.study-journey[data-view="route"] .journey-choice[data-countdown-active="true"] [data-choice-description] { visibility: hidden; }
.study-journey[data-view="route"] .journey-choice[data-countdown-active="true"] .journey-choice-countdown-label {
  position: absolute;
  inset: auto 4px 5px;
  display: block;
  color: #086a70;
  font-weight: 750;
  line-height: 1.25;
}
.study-journey[data-view="route"] .journey-choice-countdown-label b {
  display: inline-block;
  min-width: .65em;
  font-variant-numeric: tabular-nums;
}
.study-journey[data-view="route"] .journey-choice-cancel {
  position: absolute;
  z-index: 6;
  min-width: 88px;
  min-height: 44px;
  margin: 0;
  padding: 6px 10px;
  transform: translateX(-50%);
  border: 2px solid #f6df9b;
  border-radius: 13px;
  background: #fff2cb;
  box-shadow: 0 2px 0 #b88b3d, 0 3px 7px #234a3b44;
  color: #12545b;
  font: 750 14px/1.1 var(--body);
  touch-action: manipulation;
}
.study-journey[data-view="route"] .journey-choice-cancel[hidden] { display: none; }
.study-journey[data-view="route"] .journey-choice-cancel:is(:hover,:active) {
  transform: translateX(-50%);
  background: #fff9df;
  border-color: #1baea8;
}
.study-journey[data-view="route"] .journey-choice-cancel:focus-visible { outline: 3px solid #087d86; outline-offset: 3px; }
.journey-choice-countdown-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Short landscape windows keep a complete painted world and every action in
   view. Only this fork compresses its navigation; other screens keep the dock. */
@media (min-width: 600px) and (min-aspect-ratio: 6/5) and (max-height: 550px) {
  body.has-play-dock[data-screen="journey"]:has(.study-journey[data-view="route"]) {
    --nav-art-size: 28px;
    --nav-plane-size: 36px;
    --nav-tile-height: 52px;
    --nav-frame-padding: 6px;
    --nav-corner-size: 18px;
  }
  body.has-play-dock[data-screen="journey"]:has(.study-journey[data-view="route"]) .game-header {
    height: 48px;
    padding-block: 2px;
  }
  body.has-play-dock[data-screen="journey"]:has(.study-journey[data-view="route"]) .app {
    padding-bottom: 0;
  }
  body.has-play-dock[data-screen="journey"]:has(.study-journey[data-view="route"]) .app > .app-dock .bottom-nav button[data-nav] {
    padding-block: 5px 7px;
    gap: 0;
  }
  body.has-play-dock[data-screen="journey"]:has(.study-journey[data-view="route"]) .app > .app-dock .bottom-nav .nav-label {
    font-size: 11px;
    padding-block: 0;
  }
  body.has-play-dock[data-screen="journey"]:has(.study-journey[data-view="route"]) #home-play-slot {
    bottom: calc(var(--tabbar-height, 64px) + var(--tabbar-inset) + 8px);
  }
  body.has-play-dock[data-screen="journey"]:has(.study-journey[data-view="route"]) #home-play-slot .primary {
    min-height: 44px;
    height: 44px;
    padding-block: 5px;
    font-size: 16px;
  }
  body[data-screen="journey"] .study-journey[data-view="route"] {
    width: min(100%, calc((100dvh - 180px - var(--safe-bottom, 0px)) * 16 / 9));
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
  }
  .study-journey[data-view="route"] > .journey-heading {
    left: 8%;
    width: 84%;
    min-height: 36px;
    height: 36px;
    border-width: 2px;
    border-radius: 11px;
  }
  .study-journey[data-view="route"] .journey-heading h1 {
    font-size: 16px;
    height: 60%;
    inset: 2px 5px auto;
  }
  .study-journey[data-view="route"] .journey-heading small { top: 68%; font-size: 10px; }
  .study-journey[data-view="route"] .journey-choice { top: 20%; padding-top: 15cqw; min-height: 0; }
  .study-journey[data-view="route"] .journey-choice-art { top: 0; width: 16cqw; height: 16cqw; }
  .study-journey[data-view="route"] .journey-choice-copy {
    width: 34cqw;
    min-height: 52px;
    gap: 2px;
    padding: 4px;
    border-radius: 11px;
  }
  .study-journey[data-view="route"] .journey-choice-copy strong { font-size: 14px; line-height: 1.05; }
  .study-journey[data-view="route"] .journey-choice-copy > span { font-size: 11px; line-height: 1.1; }
  /* Once selected, the short grace period replaces the explanation instead of
     keeping its invisible height and pushing Cancel under the fixed action. */
  .study-journey[data-view="route"] .journey-choice[data-countdown-active="true"] [data-choice-description] { display: none; }
  .study-journey[data-view="route"] .journey-choice[data-countdown-active="true"] .journey-choice-copy {
    height: 52px;
    min-height: 52px;
    padding-block: 3px 17px;
    align-content: start;
  }
  .study-journey[data-view="route"] .journey-choice[data-countdown-active="true"] .journey-choice-copy strong { font-size: 13px; }
  .study-journey[data-view="route"] .journey-choice-gate { top: 7cqw; width: 29cqw; height: 10cqw; }
  .study-journey[data-view="route"] .journey-route-scene .journey-route-olga {
    left: calc(50% - 5.3333cqw);
    top: calc(88% - 16cqw);
    width: 10.6667cqw;
    height: 16cqw;
  }
  .study-journey[data-view="route"] .journey-master-link {
    inset: auto 0 2px;
    min-height: 44px;
    width: max-content;
    max-width: 24%;
    margin: 0 auto;
    gap: 4px;
    align-items: flex-end;
    font-size: 0;
  }
  .study-journey[data-view="route"] .journey-master-link::after { content: "Trilha"; font: 750 11px/20px var(--body); }
}
