.screen-path { max-width: 1090px; padding-bottom: 130px; }
.screen-path .page-heading { margin-bottom: 20px; }
.journey-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 17px; }
.journey-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; position: sticky; top: 17px; }
.series { display: flex; gap: 5px; padding: 5px; border: 1px solid #564a37; border-radius: 12px; background: #29261e; }
.series > div { min-width: 0; flex: 1; display: flex; align-items: center; gap: 6px; padding: 4px; }
.series > div + div { border-left: 1px solid #514739; }
.series .icon { width: 19px; height: 19px; }
.series-current > .icon { color: #f6b45d; }
.series-best > .icon { color: #ddd08e; }
.series strong { display: block; color: #f8edd4; font-size: 1.1rem; font-weight: 790; line-height: 1.1; font-variant-numeric: tabular-nums; }
.series small { display: block; color: #d4c6ac; font-size: .63rem; line-height: 1.15; }
.series-compact { width: fit-content; margin: -12px 0 15px; padding: 2px 5px; gap: 8px; }
.series-compact > div { flex: none; padding-inline: 6px; }
.series-compact > div > span { display: flex; gap: 5px; align-items: center; }
.footer-series { display: none; }
.journey-board { min-width: 0; border-radius: 16px; overflow: hidden; border: 1px solid #64563c; background: #24291f; }
.journey-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px; background: #302a21; border-bottom: 1px solid #66543b; }
.journey-heading > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.journey-heading h2 { font-size: 1.1rem; color: #f6e9d2; }
.journey-heading > div > span { color: #d4c2a4; font-size: .79rem; }
.journey-track { position: relative; isolation: isolate; min-height: 220px; height: var(--track-height); overflow: hidden; background: #313827; }
.journey-scenery { position: absolute; inset: 0; pointer-events: none; }
.journey-region { position: absolute; inset: var(--band-y) 0 auto; height: var(--band-size); isolation: isolate; overflow: hidden; border-top: 1px solid #e0c89121; background: var(--world-ground, #2b302d) var(--region-art) center top / 100% 480px repeat-y; }
.journey-prop { position: absolute; z-index: 1; top: var(--prop-y); left: var(--prop-x); width: clamp(50px, 16vw, 120px); max-height: 117px; object-fit: contain; filter: drop-shadow(0 5px 5px #15171180); pointer-events: none; transform: translate(-50%,-50%); }
.prop-firs, .prop-pond { width: clamp(67px, 20vw, 140px); }
.prop-lantern, .prop-mushrooms { width: clamp(47px, 13vw, 94px); }
.journey-lines { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.journey-line, .journey-line-halo { fill: none; stroke-linecap: round; }
.journey-line { stroke: #999078; stroke-width: 2; stroke-dasharray: .05 .07; }
.journey-line-halo { stroke: #1a1d18cb; stroke-width: 7; }
.journey-line.completed { stroke: #d4e59a; stroke-width: 3; stroke-dasharray: none; }
.journey-line.filling { stroke-dasharray: 1; animation: fill-route .48s ease-out both; }
@keyframes fill-route { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.journey-track { --plate-width: 92px; --scout-width: 46px; --scout-foot-x: 51.39%; --scout-foot-y: 94.67%; }
.journey-stations { position: absolute; z-index: 3; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.journey-station { position: absolute; top: var(--station-y); left: var(--station-x); width: var(--plate-width); aspect-ratio: 248 / 160; transform: translate(-50%, -40%); pointer-events: auto; }
.station-marker { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 22px; background: transparent; color: #252019; text-align: center; }
.platform-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 40%; filter: drop-shadow(0 3px 3px #121711a1); pointer-events: none; transition: transform 145ms var(--spring); }
.platform-halo { position: absolute; inset: -2px -4px 0; width: calc(100% + 8px); height: 100%; display: none; filter: drop-shadow(0 0 8px #f9dc785a); pointer-events: none; }
.station-marker[aria-current='step'] .platform-halo { display: block; }
.station-marker:not(.locked):hover .platform-art { transform: scale(1.08); }
.station-marker:not(.locked):active .platform-art { transform: scale(.97); }
.station-number { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); font-size: 1.14rem; font-weight: 880; line-height: 1; text-shadow: 0 1px #fff3da42; font-variant-numeric: tabular-nums; }
.station-marker.locked .station-number { color: #f5f0d9; text-shadow: 0 1px 4px #272b2b; }
.station-check, .station-lock { position: absolute; top: 48%; right: 3px; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #e6edbf8c; border-radius: 50%; color: #e6f6c4; background: #364d36; }
.station-lock { width: 17px; height: 17px; color: #dedacc; background: #383d37; border-color: #a7ab9988; }
.station-check .icon, .station-lock .icon { width: 12px; height: 12px; }
.station-check.station-skipped { border-color: #bfa569; background: #4c4028; color: #fbdf98; }
.station-title { position: absolute; inset: 50% auto auto calc(100% + 5px); width: max-content; max-width: 148px; padding: 4px 7px; transform: translateY(-50%); visibility: hidden; border: 1px solid #e6dbb368; border-radius: 6px; background: #191e17ee; color: #f4efe1; font-size: .75rem; font-weight: 680; line-height: 1.15; white-space: normal; pointer-events: none; }
.label-left .station-title { inset: 50% calc(100% + 5px) auto auto; }
.station-marker:is([aria-current='step'], :hover, :focus-visible) .station-title { visibility: visible; }
.station-marker.new .platform-art { animation: station-open .65s ease-out both; }
@keyframes station-open { 48% { filter: drop-shadow(0 0 13px #fae88e); transform: scale(1.11); } }
.journey-track .route-marker { position: absolute; z-index: 4; top: var(--station-y); left: var(--station-x); width: var(--scout-width); aspect-ratio: 144 / 244; transform: translate(calc(-1 * var(--scout-foot-x)), calc(-1 * var(--scout-foot-y))); pointer-events: none; }
.scout-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; transform-origin: var(--scout-foot-x) var(--scout-foot-y); transform: translateY(calc(-1 * var(--route-lift, 0px))) rotate(var(--scout-tilt, 0deg)); filter: drop-shadow(0 2px 4px #141611cc); }
.scout-shadow { position: absolute; top: var(--scout-foot-y); left: var(--scout-foot-x); width: 66%; height: 13%; transform: translate(-50%, -50%); filter: blur(2px); }
.mascot-jumping .scout-shadow { opacity: .53; }
.chapter-celebration { position: fixed; z-index: 7; top: 16px; right: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; max-width: min(345px, calc(100% - 32px)); border: 1px solid #949650; border-radius: 12px; padding: 10px 12px; color: #f1f4b9; background: #393b27; box-shadow: 0 4px 18px #131611a8; pointer-events: none; animation: chapter-pop .48s var(--spring) both; }
.chapter-celebration > span { color: #e7dfbd; font-size: .88rem; }
@keyframes chapter-pop { from { opacity: .1; transform: translateY(6px) scale(.99); } }
.journey-board .path-pending { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px; background: #242920; }
.journey-board .path-pending > .notice { flex: 1; }
.journey-footer { position: fixed; z-index: 6; inset: auto 0 0 var(--rail-width, 0px); border-top: 1px solid #65563f; background: #201e19f7; }
.journey-footer-inner { display: flex; justify-content: space-between; gap: 14px; align-items: center; min-height: 78px; max-width: 1090px; margin-inline: auto; padding: 10px 24px calc(12px + env(safe-area-inset-bottom)); }
.footer-meta { min-width: 0; display: flex; gap: 5px 9px; align-items: baseline; flex-wrap: wrap; }
.footer-meta > strong { color: #f5ead5; font-size: .97rem; overflow-wrap: anywhere; }
.footer-task-label, .footer-difficulty { color: #d7c4a4; font-size: .78rem; }
.footer-difficulty { padding: 1px 5px; border: 1px solid #6c5d44; border-radius: 5px; }
.footer-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.footer-actions .button { white-space: nowrap; }
.exercise-alternatives { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 7px; }

@media (max-width: 850px) {
  .journey-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .journey-side { display: none; }
  .journey-footer-inner { flex-wrap: wrap; gap: 5px 12px; padding: 8px 14px calc(13px + env(safe-area-inset-bottom)); }
  .footer-series { margin-inline-start: auto; display: block; }
  .footer-series .series { padding: 1px; gap: 2px; }
  .footer-series .series > div { padding: 2px 4px; }
  .footer-series .series-compact { margin: 0; }
  .footer-series .series small { font-size: .61rem; }
  .footer-series .series strong { font-size: .81rem; }
  .footer-series .series .icon { width: 14px; height: 14px; }
}
@media (max-width: 500px) {
  .screen-path { padding-bottom: 146px; }
  .screen-path .page-heading { margin-bottom: 12px; }
  .journey-track { --plate-width: 70px; --scout-width: 38px; }
  .journey-prop { max-height: 88px; }
  .station-number { font-size: .95rem; }
  .station-check, .station-lock { right: -1px; }
  .station-title { max-width: 83px; overflow-wrap: anywhere; padding: 4px 5px; font-size: .68rem; }
  .footer-meta { flex: 1 1 93px; line-height: 1.2; }
  .footer-meta > strong { font-size: .8rem; }
  .footer-difficulty { display: none; }
  .footer-actions { width: 100%; gap: 6px; }
  .footer-actions .button { padding-inline: 9px; font-size: .84rem; min-height: 44px; }
  .footer-actions .button.primary { flex: 1; }
  .footer-actions .icon { width: 17px; height: 17px; }
  .footer-actions .recent-feedback { width: 44px; padding: 0; flex: none; }
  .footer-actions .recent-feedback span { display: none; }
}

@media (max-width: 760px) {
  .chapter-celebration { top: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-board *, .chapter-celebration { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
