:root{color-scheme:light;--jade:#285d40;--deep:#193e2d;--gold:#c8a15c;--paper:#fff3d9;--ink:#543b2b;font-family:system-ui,'Noto Sans CJK SC',sans-serif;background:#173c30;color:var(--ink)}*{box-sizing:border-box}body{margin:0}button,a{font:inherit;touch-action:manipulation}button{cursor:pointer}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #ffdc77;outline-offset:2px}button:disabled{cursor:default;opacity:.5}.shell{height:100dvh;min-height:360px;max-width:580px;margin:auto;display:flex;flex-direction:column;position:relative;background:#cde3b8;overflow:hidden;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.hero{height:104px;flex:none;position:relative;background:linear-gradient(0deg,#fdf0cd44,#ffeed100),url('match-stack/ui/adventure/peach-header.webp') center/cover;color:#fff8de;padding:12px 14px;display:flex;align-items:end;justify-content:space-between;border-bottom:2px solid #c9a35f}.brand h1{margin:0;font-size:clamp(20px,5.6vw,29px);letter-spacing:.02em;color:#fff5d6;text-shadow:0 2px #4f3824,1px 0 #4f3824,-1px 0 #4f3824,0 -1px #4f3824}.brand small{display:inline-block;background:#285e41;border:1px solid #d4b773;border-radius:20px;padding:2px 10px;font-weight:700;font-size:12px}.top{position:absolute;right:9px;top:8px;display:flex;gap:5px}.pill{display:inline-flex;align-items:center;min-height:30px;padding:4px 10px;border:1px solid #e5c786;border-radius:18px;background:#315d3f;color:#fff2c2;font-size:12px;font-weight:700}.chapter-bar{display:flex;align-items:center;justify-content:center;background:#fff0d1;border-bottom:1px solid #c9a35f;padding:5px 12px;gap:10px;flex:none}.chapter-bar button{border:1px solid #c7a66b;border-radius:20px;color:#4e3925;background:#f8e2ab;min-height:38px;padding:0 12px;font-weight:700}.chapter-bar button:first-child,.chapter-bar button:last-child{font-size:22px;min-width:40px}.chapter-bar #chapters{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;max-width:340px}.chapter-bar small{font-size:11px;font-weight:500}#map{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;background:#94bd83}#trail{position:relative;min-height:100%}.map-piece{height:740px;position:relative;overflow:hidden;background:#b5d6a1}.map-piece svg{position:absolute;inset:0;width:100%;height:100%}.map-piece .node{position:absolute;transform:translate(-50%,-50%);width:43px;height:43px;border:2px solid #b58b46;border-radius:50%;background:linear-gradient(#fff7d8,#efce83);color:#624025;font-weight:800;font-size:15px;box-shadow:0 3px 0 #9b7641,0 4px 6px #28482c55;z-index:2;display:grid;place-items:center}.map-piece .node:disabled{background:#d9e0bc;color:#597151;border-color:#93a67d;opacity:1;box-shadow:0 2px 0 #718761}.node small{position:absolute;bottom:-11px;white-space:nowrap;font-size:11px;color:#9e601e;text-shadow:0 1px #fff6c9}.node.current{outline:3px solid #fff0a4;box-shadow:0 0 16px #ffe65d,0 3px #9b7641}.node .marker{position:absolute;width:65px;height:65px;object-fit:contain;bottom:40px;pointer-events:none;filter:drop-shadow(0 2px 2px #31563366)}.map-piece .place{position:absolute;left:8%;bottom:15px;padding:4px 10px;background:#fff2d5b8;border:1px solid #c7a66b;border-radius:12px;font-size:11px;color:#5e4b30}footer{position:relative;flex:none;display:flex;align-items:flex-end;background:linear-gradient(#326047,#1c412f);border-top:2px solid #d7b475;min-height:100px;padding:8px 9px 7px 105px;color:#fff3d1;z-index:3}footer .companion{position:absolute;left:0;bottom:0;width:112px;max-height:145px;object-fit:contain;object-position:bottom left;pointer-events:none}footer .footer-content{width:100%;min-width:0}footer p{margin:0 0 4px;font-size:12px;font-weight:650}.primary{display:block;background:linear-gradient(#ffe394,#efb94e);border:1px solid #fff0b7;border-radius:15px;text-align:center;font-weight:800;color:#583716;min-height:40px;line-height:40px;box-shadow:0 3px #a87830}.primary[aria-disabled=true]{opacity:.5;pointer-events:none}nav{display:flex;gap:4px;margin-top:7px;justify-content:space-between;flex-wrap:wrap}nav a,nav button{background:none;border:0;color:#f3e4bd;font-weight:650;font-size:11px;min-height:28px;padding:3px 2px}#notice{position:absolute;bottom:113px;margin:0 10px;color:#7d2924;background:#fff2d5;font-size:12px;border-radius:6px;z-index:4}dialog{border:2px solid #c9a35f;border-radius:19px;background:#fff7e2;color:var(--ink);width:min(94%,470px);max-height:84dvh;padding:12px;box-shadow:0 15px 50px #173a2855}dialog::backdrop{background:#17392bb8}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px}.dialog-head h2{margin:0;font-size:20px;color:#285d40}.dialog-head button{font-size:24px;border-radius:50%;width:36px;height:36px;border:1px solid #d2b575;background:#f4e3ba;color:#6b4826}#chapter-list{display:grid;gap:8px}.chapter{display:grid;grid-template-columns:78px 1fr auto;align-items:center;gap:12px;text-align:left;min-height:80px;background:#ffedc7;border:1px solid #d6b777;border-radius:13px;color:#533b27;overflow:hidden;padding:0 12px 0 0}.chapter img{width:78px;height:80px;object-fit:cover}.chapter strong,.chapter small{display:block}.chapter small{font-size:12px;color:#7b6242}.chapter b{font-size:12px}.chapter:disabled{opacity:.64}.story-tabs{display:flex;gap:8px;margin-bottom:8px}.story-tabs button{flex:1;padding:9px;background:#f3e3bb;border:1px solid #d5b477;border-radius:10px;color:#4e3e2b;font-weight:700}.story-tabs button[aria-pressed=true]{background:#336747;color:#fff1cc}.story-card{display:grid;grid-template-columns:96px 1fr;align-items:center;background:#fff0d3;border:1px solid #d9bf85;border-radius:13px;margin:8px 0;min-height:112px;overflow:hidden}.story-card img{width:96px;align-self:end;display:block}.story-card div{padding:9px}.story-card h3{margin:0 0 4px;font-size:15px;color:#2e5a3d}.story-card p{font-size:12px;line-height:1.6;margin:0}.story-card.locked{opacity:.65}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.collect{min-width:0;text-align:center;background:#ffedc9;border:1px solid #d9bd7d;border-radius:12px;padding:6px;font-size:11px}.collect img{width:100%;height:80px;object-fit:contain}.collect.locked img{filter:grayscale(1);opacity:.35}@media(max-height:500px) and (orientation:landscape){.hero{height:64px}footer{min-height:76px}footer .companion{max-height:95px}.map-piece{height:550px}}

/* V7: map owns the screen; scenery and controls have independent layers. */
.hero{height:46px;padding:5px 10px;align-items:center;background:#244f38;border-bottom:1px solid #d7b775;z-index:10}.brand h1{display:none}.brand small{border:0;background:none;font-size:15px;padding:0;color:#fff0cf}.top{top:6px;right:8px}.pill{min-height:30px;font-size:12px;padding:3px 10px}.chapter-bar{padding:4px 8px;gap:6px;z-index:10;background:#f9e9c8}.chapter-bar button{min-height:32px}.chapter-bar button:first-child,.chapter-bar button:last-child{min-width:34px;font-size:18px}.chapter-bar #chapters{max-width:none}.chapter-bar strong{font-size:15px}
#map{position:relative;isolation:isolate}#trail{isolation:isolate}.map-piece{height:auto;aspect-ratio:480/1040;background-position:center;background-size:100% 100%;background-repeat:no-repeat;overflow:visible}.map-piece.peach-map{aspect-ratio:1/2}.map-piece .node{width:clamp(30px,8.2vw,42px);height:clamp(30px,8.2vw,42px);font-size:clamp(12px,3.6vw,16px);border:2px solid #af8343;background:radial-gradient(ellipse at 36% 15%,#fff9dd,#f4ce77 75%);box-shadow:0 3px #8f6937,0 5px 7px #325b3955;z-index:2}.map-piece .node:disabled{background:#f4ecd5d9;border:1px solid #9da68a;color:#6f795f;box-shadow:0 2px 3px #385f4233}.node.current{outline:3px solid #fff4aa;box-shadow:0 0 18px 4px #ffe376,0 3px #9b7641;z-index:4}.node small{bottom:-12px;color:#9a5e14;font-size:10px;text-shadow:0 1px #fff4bd}.map-marker{position:absolute;display:block;width:clamp(34px,11.4vw,62px);height:auto;transform:translate(-50%,-100%);z-index:5;pointer-events:none;filter:drop-shadow(0 2px 2px #2e4a3955);transition:left .65s ease,top .65s ease}.map-piece .place{bottom:9px;font-size:10px;z-index:1;background:#fff2d5bd}.shell footer{z-index:10;min-height:72px;padding:6px 12px;background:linear-gradient(#295c43,#1c422f)}footer .footer-content{max-width:480px;margin:auto}footer #guide{display:none}footer .primary{min-height:36px;line-height:36px;font-size:15px;border-radius:20px;background:linear-gradient(#fff0ad,#f4c153);box-shadow:0 2px #a87830}footer nav{margin-top:4px;justify-content:space-around}footer nav a,footer nav button{min-height:26px;font-size:11px;padding:2px 5px}#notice{bottom:85px}@media(prefers-reduced-motion:reduce){.map-marker{transition:none}}@media(max-height:500px) and (orientation:landscape){.hero{height:36px}.shell footer{min-height:64px}.map-piece{height:auto;aspect-ratio:480/1040}}

.map-marker.compact{width:clamp(28px,8vw,43px)}

/* V8: single background, small stations, progress dots inside each station. */
.map-piece.peach-map{aspect-ratio:1/2;height:auto;background-size:100% 100%;background-position:center;background-repeat:no-repeat}.map-piece .station{width:clamp(21px,6.5vw,36px);height:clamp(21px,6.5vw,36px);font-size:clamp(10px,3.1vw,15px);display:flex;flex-direction:column;justify-content:center;gap:1px;padding:0;border-width:1.5px;line-height:1}.station-number{display:block;font-weight:800}.station-dots{display:flex;gap:2px;justify-content:center}.station-dots i{display:block;width:3px;height:3px;background:#b9ba9f;border-radius:50%}.station-dots i.lit{background:#b57a18;box-shadow:0 0 2px #ffdd6e}.map-piece .station:disabled{background:#f7efdcc7;color:#687a64;border-color:#a4b096;box-shadow:0 1px 2px #31533e30}.map-piece .station.completed{background:linear-gradient(#fffae4,#edc76e)}.map-piece .station.current{outline:2px solid #fff3a1;box-shadow:0 0 10px 3px #ffdc59,0 2px #9b7641}.map-marker{width:clamp(33px,10vw,56px)}.station-level{display:block;width:100%;padding:13px;margin:6px 0;border:1px solid #d4b574;background:#ffedc8;border-radius:12px;font-weight:700;color:#634726}.station-level:disabled{opacity:.5}

/* V2.22: inked jade, warm paper and matte brass, shared by map and portrait cards. */
:root{--jade:#386347;--deep:#234835;--gold:#bb9456;--paper:#fff5df;--ink:#59412e;--leaf:#879a70;--peach:#c97769}
.hero{background:#28533c;border-bottom:1px solid #ba9b61}.brand small{font-size:15px;letter-spacing:.04em}.pill{background:#345e43;border:1px solid #c4a76f;box-shadow:inset 0 1px #fff0c31a;color:#fff0d3}.chapter-bar{background:#fff0d5;border-bottom:1px solid #b89a64}.chapter-bar button{background:#f7e8c4;border-color:#c6a96e;box-shadow:inset 0 1px #fff9e8}.chapter-bar #chapters{background:#f3e0b5}.chapter-bar button:disabled{opacity:.54}
.map-piece .station{border:1.5px solid #a27c45;background:#fff2d3;box-shadow:0 2px #87643d,0 3px 5px #364b3355,inset 0 0 0 2px #fff9eb;gap:2px}.map-piece .station:disabled{opacity:1;background:#e9e5cc;border-color:#87947a;color:#64745b;box-shadow:0 2px #79856c,inset 0 0 0 1px #fff6dc}.map-piece .station.completed{background:#e9cb83;border-color:#ac8349;color:#63452b}.map-piece .station.current{background:#fff0b8;outline:2px solid #fff2c0;box-shadow:0 2px #986c34,0 0 0 4px #e6b85c80,0 0 12px #e9c66e}.station-dots i{width:4px;height:4px;background:#a6ac91;box-shadow:inset 0 1px 1px #51614433}.station-dots i.lit{background:#ae742b;box-shadow:0 0 0 .5px #fdf0af}.station[data-arrived="1"] .station-dots .just-lit{animation:station-light .7s ease-out both}@keyframes station-light{0%{transform:scale(.65);background:#fff6cd}55%{transform:scale(1.5);background:#e6aa45}100%{transform:scale(1)}}
.map-marker{transform-origin:50% 100%;animation:mimi-idle 5.6s ease-in-out infinite;will-change:transform}.map-marker[data-motion="arrival"]{animation:mimi-hop .65s ease-out both,mimi-idle 5.6s .65s ease-in-out infinite}.map-marker[data-motion="travel"]{animation:mimi-travel .65s ease-in-out both,mimi-hop .45s .65s ease-out forwards,mimi-idle 5.6s 1.1s ease-in-out infinite}.map-shadow{position:absolute;width:clamp(20px,6vw,34px);height:clamp(5px,1.5vw,8px);border-radius:50%;background:#34473148;transform:translate(-50%,-48%);z-index:1;pointer-events:none;transition:left .65s ease,top .65s ease}
@keyframes mimi-idle{0%,100%{transform:translate(-50%,-100%) scale(1) rotate(0)}25%{transform:translate(-50%,-100%) scale(1.008,1.023) rotate(-1deg)}50%{transform:translate(-50%,-100%) scale(1) rotate(0)}76%{transform:translate(-50%,-100%) scale(1.008,1.018) rotate(1deg)}}
@keyframes mimi-hop{0%,100%{transform:translate(-50%,-100%) scale(1)}18%{transform:translate(-50%,-100%) scale(1.04,.96)}48%{transform:translate(-50%,calc(-100% - 5px)) scale(.98,1.035)}80%{transform:translate(-50%,-100%) scale(1.02,.98)}}
@keyframes mimi-travel{0%,100%{transform:translate(-50%,-100%) rotate(0)}25%,75%{transform:translate(-50%,calc(-100% - 3px)) rotate(-2deg)}50%{transform:translate(-50%,-100%) rotate(2deg)}}
.shell[data-reduce-motion="1"] .map-marker,.shell[data-reduce-motion="1"] .map-shadow,.shell[data-reduce-motion="1"] .station-dots i{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){.map-marker,.map-shadow,.station-dots i{animation:none!important;transition:none!important}}
.shell footer{background:#28533c;border-top:2px solid #bc9b61;padding:6px 12px 4px}.shell footer .primary{color:#654324;background:linear-gradient(#ffe7a9,#eac16b);border:1px solid #c39a51;box-shadow:0 2px #99743f,inset 0 1px #fff4cc;min-height:38px;line-height:38px;letter-spacing:.04em}.shell footer nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;margin-top:6px}.shell footer nav a,.shell footer nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#f0dfb5;font-size:10px;min-height:40px;padding:2px 0;line-height:1.2;white-space:nowrap}.nav-glyph{width:20px;height:20px;color:#e6c88a;filter:drop-shadow(0 1px #183b2e)}.shell footer nav a:active,.shell footer nav button:active{background:#ffffff12;border-radius:8px}.shell #notice{bottom:100px}
dialog{background:#fff5df;border:2px solid #b99156;box-shadow:inset 0 0 0 3px #fffcf1,0 12px 35px #1b362b66}.dialog-head{border-bottom:1px solid #e2cc9d;margin-bottom:8px}.dialog-head h2{color:#386347}.dialog-head button,.station-level,.story-tabs button,.chapter,.story-card,.collect{border-color:#c9ac76;background:#f9ebcb}.story-tabs button[aria-pressed=true]{background:#386347;color:#fff3d6}.station-level{box-shadow:0 1px #c1a470}.station-level:disabled{box-shadow:none}.story-card h3{color:#386347}
@media(max-height:500px) and (orientation:landscape){.shell footer nav{margin-top:3px}.shell footer nav a,.shell footer nav button{flex-direction:row;gap:4px;min-height:26px}.nav-glyph{width:16px;height:16px}.shell footer .primary{min-height:32px;line-height:32px}}

/* V2.23: reward visibility and restrained map animation. */
.reward-strip[hidden],.reward-strip progress[hidden]{display:none!important}.reward-strip{display:flex;align-items:center;gap:6px;min-height:27px;margin:0 0 5px;padding:3px 8px;background:#1e422e;border:1px solid #78946b;border-radius:10px;color:#f0dfb5;font-size:11px;line-height:1.3}.reward-strip svg{width:17px;height:17px;flex:none;color:#e6c88a}.reward-strip #reward-label{font-weight:650;white-space:nowrap}.reward-strip #reward-count{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums;color:#fff0c5}.reward-strip progress{height:6px;min-width:16px;max-width:100px;flex:1;appearance:none;border:0;background:#122f23;border-radius:8px;overflow:hidden}.reward-strip progress::-webkit-progress-bar{background:#122f23;border-radius:8px}.reward-strip progress::-webkit-progress-value{background:#d6b56f;border-radius:8px}.reward-strip progress::-moz-progress-bar{background:#d6b56f;border-radius:8px}.reward-strip[data-ready="1"]{background:#fff0cb;color:#644327;border-color:#c9a05e}.reward-strip[data-ready="1"] svg,.reward-strip[data-ready="1"] #reward-count{color:#8f552d}.shell footer nav a,.shell footer nav button{position:relative}.shell footer nav [data-new="1"]::after,.shell footer nav [data-ready="1"]::after{content:"";position:absolute;top:1px;left:calc(50% + 9px);width:8px;height:8px;border-radius:50%;background:#ce7766;border:1px solid #ffedc8;pointer-events:none}.map-marker{animation-duration:6.4s}.map-shadow[data-motion="arrival"]{animation:shadow-hop .65s ease-out both}.map-shadow[data-motion="travel"]{animation:shadow-hop .45s .65s ease-out both}@keyframes shadow-hop{0%,100%{transform:translate(-50%,-48%) scale(1);opacity:1}48%{transform:translate(-50%,-48%) scale(.78);opacity:.62}}
@media(max-height:500px) and (orientation:landscape){.reward-strip{min-height:22px;padding:2px 7px;margin-bottom:3px}.reward-strip svg{width:14px;height:14px}}
.shell[data-reduce-motion="1"] .map-shadow{animation:none!important}@media(prefers-reduced-motion:reduce){.map-shadow{animation:none!important}}

/* V2.24: Mimi stands directly on the active golden station. All four poses have the same feet anchor. */
.map-marker{width:clamp(55px,16vw,88px);height:auto;aspect-ratio:4/5;transform-origin:50% 100%;z-index:5;filter:drop-shadow(0 1px 1px #3a44363b);animation:mimi-idle 6.4s ease-in-out infinite}
.map-pose{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;opacity:0}
.pose-hd{opacity:1}
.map-marker[data-motion="idle"] .pose-hd{animation:mimi-pose-base 8s steps(1,end) infinite}
.map-marker[data-motion="idle"] .pose-blink{animation:mimi-pose-blink 8s steps(1,end) infinite}
.map-marker[data-motion="idle"] .pose-wave{animation:mimi-pose-wave 8s steps(1,end) infinite}
.map-marker[data-motion="arrival"]{animation:mimi-hop .65s ease-out,mimi-idle 6.4s .65s ease-in-out infinite}
.map-marker[data-motion="travel"]{animation:mimi-travel .65s ease-in-out,mimi-hop .45s .65s ease-out,mimi-idle 6.4s 1.1s ease-in-out infinite}
.map-marker[data-motion="arrival"] .pose-hd{opacity:0;animation:mimi-pose-base 8s .65s steps(1,end) infinite}
.map-marker[data-motion="arrival"] .pose-blink{animation:mimi-pose-blink 8s .65s steps(1,end) infinite}
.map-marker[data-motion="arrival"] .pose-wave{animation:mimi-pose-wave 8s .65s steps(1,end) infinite}
.map-marker[data-motion="arrival"] .pose-cheer{animation:mimi-pose-cheer .65s steps(1,end)}
.map-marker[data-motion="travel"] .pose-hd{opacity:0;animation:mimi-pose-cheer .65s steps(1,end),mimi-pose-base 8s 1.1s steps(1,end) infinite}
.map-marker[data-motion="travel"] .pose-blink{animation:mimi-pose-blink 8s 1.1s steps(1,end) infinite}
.map-marker[data-motion="travel"] .pose-wave{animation:mimi-pose-wave 8s 1.1s steps(1,end) infinite}
.map-marker[data-motion="travel"] .pose-cheer{animation:mimi-pose-cheer .45s .65s steps(1,end)}
@keyframes mimi-pose-base{0%,25%,62.5%{opacity:1}22%,50%{opacity:0}100%{opacity:1}}
@keyframes mimi-pose-blink{0%,25%,100%{opacity:0}22%{opacity:1}}
@keyframes mimi-pose-wave{0%,62.5%,100%{opacity:0}50%{opacity:1}}
@keyframes mimi-pose-cheer{0%{opacity:1}100%{opacity:0}}
.map-piece .station.current{z-index:4}
.station.current .station-number{position:absolute;top:53%;left:50%;transform:translateX(-50%);font-size:clamp(10px,2.9vw,14px);line-height:1;text-shadow:0 1px #fff6d7}
.station.current .station-dots{position:absolute;top:calc(100% + 2px);left:50%;transform:translateX(-50%);background:#fff1cd;border:1px solid #b99051;border-radius:7px;padding:2px 3px;box-shadow:0 1px #986c3444;gap:3px}
.map-shadow{width:clamp(18px,5vw,30px);height:clamp(4px,1.1vw,7px);z-index:4;opacity:.8}
.shell[data-reduce-motion="1"] .map-pose{animation:none!important;opacity:0!important}.shell[data-reduce-motion="1"] .pose-hd{opacity:1!important}
@media(prefers-reduced-motion:reduce){.map-pose{animation:none!important;opacity:0!important}.map-pose.pose-hd{opacity:1!important}}

/* V2.25: full-bleed adventure scene, floating chapter plaque and compact unified dock. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.shell{--map-top:calc(66px + env(safe-area-inset-top));--map-bottom:calc(126px + env(safe-area-inset-bottom));background:#75965e;display:block;position:relative;isolation:isolate}
.shell #map{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow-y:auto;overflow-x:hidden;scroll-padding-top:var(--map-top);scroll-padding-bottom:var(--map-bottom);background:#75965e}
#trail{min-height:100%;display:flex;flex-direction:column;justify-content:center;padding:var(--map-top) 0 var(--map-bottom);overflow:hidden}
.map-piece.peach-map{flex:none;width:100%;isolation:isolate}
/* Reflect the scene's edge pixels under the floating chrome rather than squeeze or stretch authored coordinates. */
.map-piece.peach-map::before,.map-piece.peach-map::after{content:"";position:absolute;left:0;right:0;z-index:0;pointer-events:none;background-image:inherit;background-repeat:no-repeat;background-size:100% auto;transform:scaleY(-1);filter:brightness(.92) saturate(.94)}
.map-piece.peach-map::before{bottom:100%;height:var(--map-top);background-position:center top}
.map-piece.peach-map::after{top:100%;height:var(--map-bottom);background-position:center bottom}
.shell .hero{position:absolute;top:calc(8px + env(safe-area-inset-top));left:9px;right:9px;height:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:7px;padding:0;background:none;border:0;z-index:10;pointer-events:none}
.shell .chapter-bar{min-width:0;flex:1;max-width:310px;display:flex;align-items:stretch;justify-content:center;gap:0;padding:3px;background:#fff1d8;border:1.5px solid #b69458;border-radius:16px;box-shadow:0 2px 0 #7f663f,0 3px 10px #203c2f45;pointer-events:auto}
.shell .chapter-bar button{background:transparent;border:0;box-shadow:none;border-radius:10px;padding:0;min-height:43px;color:#674b2e}
.shell .chapter-bar button:first-child,.shell .chapter-bar button:last-child{min-width:32px;width:32px;font-size:24px;line-height:1;font-weight:500;flex:none}
.shell .chapter-bar button:disabled{opacity:.28}
.shell .chapter-bar #chapters{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;background:transparent;line-height:1.15;padding:0 1px;white-space:nowrap}
.shell .chapter-bar strong{font-size:clamp(14px,4vw,19px);font-weight:800;color:#4c6440;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.shell .chapter-bar small{font-size:10px;font-weight:600;color:#8b7049;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.shell .top{position:static;display:flex;flex:none;gap:6px;align-items:center;pointer-events:auto}
.shell .top .pill{min-height:41px;border:1.5px solid #d5b676;background:#315a40;color:#fff0c9;border-radius:15px;box-shadow:0 2px #27432e,0 3px 8px #203c2f44;padding:5px 9px;font-size:13px;white-space:nowrap}
.shell .top .settings-pill{width:41px;padding:0;justify-content:center}
.shell footer{position:absolute;left:9px;right:9px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:10;min-height:0;padding:7px 8px 5px;display:block;border:1.5px solid #c5a368;border-radius:21px;background:#28533cf5;box-shadow:0 3px 0 #183e2e,0 5px 18px #20382a55;color:#fff0cb}
.shell footer .footer-content{max-width:none;width:100%;margin:0}
.shell footer .primary{min-height:42px;line-height:42px;font-size:17px;border-radius:14px;background:linear-gradient(#ffe6a8,#ecc372);box-shadow:0 2px #95723f,inset 0 1px #fff2c9}
.shell footer nav{margin:5px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;align-items:stretch}
.shell footer nav a,.shell footer nav button{min-width:0;min-height:45px;padding:3px 0 2px;justify-content:center;gap:2px;line-height:1.15;color:#ffefcc;font-size:10px;font-weight:600;border-radius:10px}
.shell footer .nav-glyph{width:20px;height:20px;flex:none;color:#eed198}
.reward-inline{display:flex;gap:3px;align-items:center;justify-content:center;font-size:9px;line-height:1;color:#f6d38c;white-space:nowrap;font-variant-numeric:tabular-nums;max-width:100%}
.reward-inline[hidden],.reward-inline progress[hidden]{display:none!important}.reward-inline progress{width:19px;height:4px;appearance:none;border:0;border-radius:8px;overflow:hidden;background:#153c2a;flex:none}.reward-inline progress::-webkit-progress-bar{background:#153c2a}.reward-inline progress::-webkit-progress-value{background:#e2bc70}.reward-inline progress::-moz-progress-bar{background:#e2bc70}.reward-inline[data-ready="1"]{color:#ffe49d;font-weight:800}.shell footer nav [data-ready="1"]{background:#f5d07b17}
.shell #notice{bottom:var(--map-bottom);left:9px;right:9px;padding:4px;pointer-events:none;text-align:center}
@media(max-width:340px){.shell .hero{left:6px;right:6px;gap:5px}.shell .chapter-bar button:first-child,.shell .chapter-bar button:last-child{width:27px;min-width:27px}.shell .top .pill{padding:4px 6px;font-size:12px}.shell .top .settings-pill{width:39px}.shell footer{left:6px;right:6px}.reward-inline progress{display:none}}
@media(max-height:500px) and (orientation:landscape){.shell{--map-top:calc(56px + env(safe-area-inset-top));--map-bottom:calc(75px + env(safe-area-inset-bottom))}.shell .hero{top:calc(5px + env(safe-area-inset-top))}.shell .chapter-bar button{min-height:35px}.shell .top .pill{min-height:35px}.shell footer{bottom:calc(5px + env(safe-area-inset-bottom));padding:5px 7px}.shell footer .footer-content{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2.5fr);align-items:center;gap:8px}.shell footer nav{margin:0}.shell footer nav a,.shell footer nav button{min-height:43px;flex-direction:column;gap:2px;font-size:9px}.shell footer .primary{font-size:14px;min-height:38px;line-height:38px}.shell footer .nav-glyph{width:16px;height:16px}.reward-inline progress{display:none}}

/* V2.31: a tap on Mimi is a friendly greeting, not a level launch. */
.map-marker{pointer-events:auto;cursor:pointer}.map-marker:focus-visible{outline:2px solid #ffe4a1;outline-offset:2px;border-radius:15px}.map-marker[data-chat="1"] .map-pose{animation:none!important;opacity:0!important}.map-marker[data-chat="1"] .pose-wave{opacity:1!important}.map-mimi-bubble[hidden]{display:none!important}.map-mimi-bubble{position:absolute;z-index:7;transform:translate(-50%,calc(-100% - clamp(75px,22vw,115px)));max-width:156px;width:max-content;padding:6px 9px;background:#fff5df;color:#63482d;border:1px solid #c59d60;border-radius:11px;font-size:12px;font-weight:650;text-align:center;box-shadow:0 2px 5px #304a3544;pointer-events:none}.map-mimi-bubble::after{content:"";position:absolute;left:calc(50% - 4px);top:100%;border:5px solid transparent;border-top-color:#c59d60;}

/* V2.32: the prologue is a scene, not another rules popup. */
dialog.prologue{position:fixed;inset:0;margin:auto;width:min(100%,520px);max-width:100%;height:100%;max-height:100%;padding:0;border:0;border-radius:0;background:#2d5139;overflow:auto;box-shadow:none;color:#fff5df}
dialog.prologue::backdrop{background:#203b2d}
.prologue-stage{box-sizing:border-box;min-height:100%;min-height:100dvh;display:flex;flex-direction:column;align-items:center;padding:calc(12px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#1d45383b,#244a37a6),url('peach-village.webp') center 90%/cover no-repeat;gap:8px}
.prologue-top{align-self:stretch;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#fff2d0;text-shadow:0 1px 3px #263e2b;font-size:14px;font-weight:700}
.prologue-top button{font-size:12px;padding:7px 12px;border:1px solid #e0c691;background:#284e3cd9;color:#fff2d0;border-radius:15px}
.prologue-art{min-height:0;flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.prologue-art img{display:block;width:min(100%,360px);height:auto;max-height:48vh;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 3px #263b2b33)}
.prologue-paper{box-sizing:border-box;flex:none;width:100%;max-width:440px;min-height:154px;padding:12px 15px;background:#fff5df;border:2px solid #b99458;border-radius:17px;box-shadow:inset 0 0 0 3px #fffcf0,0 3px 0 #80643d; color:#59412e}
.prologue-name{display:inline-block;padding:4px 15px;background:#386347;color:#fff3d6;border:1px solid #c5a46a;border-radius:9px;font-size:14px;font-weight:750}
#prologue-text{min-height:3.3em;margin:9px 0 12px;font-size:clamp(15px,4.5vw,18px);line-height:1.65;font-weight:600;overflow-wrap:anywhere}
.prologue-controls{display:flex;justify-content:space-between;align-items:center;gap:12px}
#prologue-step{font-size:12px;color:#8f744d;font-variant-numeric:tabular-nums}
#prologue-next{min-width:112px;min-height:42px;background:#f3d180;color:#59412e;border:1px solid #bb9456;border-radius:12px;padding:7px 18px;font-size:16px;font-weight:800;box-shadow:0 2px #9e7940}
.prologue-replay{display:block;width:100%;margin:8px 0 12px;padding:10px;border:1px solid #c9ac76;border-radius:10px;background:#f9ebcb;color:#386347;font-weight:700}
@media(max-height:500px) and (orientation:landscape){dialog.prologue{width:100%}.prologue-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);grid-template-rows:auto 1fr;gap:8px 18px;align-items:center;min-height:100%}.prologue-top{grid-column:1/-1}.prologue-art img{max-height:calc(100vh - 90px);width:auto;max-width:100%}.prologue-paper{justify-self:center}#prologue-text{font-size:15px}}

/* Peach V10 optional side trail: retain the twenty authored main stations. */
.map-piece .challenge-node{position:absolute;left:88%;top:30.6%;transform:translate(-50%,-50%);z-index:5;min-width:58px;min-height:38px;padding:4px 6px;border:1.5px solid #80533c;border-radius:10px;background:#9b5f48;color:#fff4d7;box-shadow:0 2px #68432e;font-weight:800;font-size:11px;line-height:1.15;text-align:center}
.challenge-node small{display:block;font-size:10px}.challenge-node:disabled{opacity:.65}.challenge-node.completed{background:#486e4d}.challenge-path{position:absolute;left:70.6%;top:30.6%;width:17%;border-top:2px dashed #9b7951;z-index:1;pointer-events:none}
#challenge-levels{display:grid;gap:8px}#challenge-levels button{width:100%;text-align:left;padding:12px}
dialog.map-story{position:fixed;inset:auto 0 calc(12px + env(safe-area-inset-bottom));margin:0 auto;width:min(calc(100% - 24px),480px);max-width:calc(100% - 24px);max-height:85dvh;box-sizing:border-box;padding:13px;background:#fff5df;color:#59412e;border:2px solid #b99458;border-radius:17px;box-shadow:0 5px 20px #173c3055;overflow:auto}
dialog.map-story::backdrop{background:#203b2d28}.map-story-body{display:flex;align-items:center;gap:12px;min-height:110px;padding:6px 0}.map-story-art{flex:0 0 92px;display:flex;align-items:center;justify-content:center}.map-story-art img,.map-story-art svg{width:92px;max-height:126px;object-fit:contain}.map-story-art [hidden]{display:none!important}.map-story-copy{min-width:0;flex:1}#map-story-speaker{font-size:13px;color:#386347}#map-story-text{font-size:16px;line-height:1.55;font-weight:600;margin:5px 0;overflow-wrap:anywhere}#map-story-step{font-size:12px;color:#8f744d}#map-story-next{min-height:42px;min-width:104px;border:1px solid #b99458;border-radius:12px;padding:6px 14px;background:#f3d180;color:#59412e;font-weight:750}.story-replay{display:block;margin-top:6px;padding:6px 10px;border:1px solid #c9ac76;border-radius:9px;background:#fff5df;color:#386347}
@media(max-height:480px){.map-story-body{min-height:65px}.map-story-art{flex-basis:60px}.map-story-art img,.map-story-art svg{width:60px;max-height:68px}}

.map-story-art .npc-avatar{width:88px;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain}.story-chapter-title{margin:10px 0 7px;font-size:14px;color:#386347}.story-chapter+.story-chapter{margin-top:14px}.chapter-treasure{margin-top:12px}.chapter-treasure .collect{min-width:0}

/* One explicit-size portrait for every story speaker, including gold. */
.map-story-art{flex-shrink:0;min-width:0;min-height:92px}.map-story-art img{display:block;flex:none;max-width:100%;width:92px;height:112px;object-fit:contain}.map-story-art img.npc-avatar{width:88px;height:88px}.map-story-art .portrait-fallback{display:flex;align-items:center;justify-content:center;text-align:center;width:88px;height:88px;border-radius:50%;background:#ead6ad;border:1px solid #b99562;color:#59412e;font-size:12px;font-weight:700;padding:6px;overflow-wrap:anywhere}.map-story-art [hidden]{display:none!important}@media(max-height:480px){.map-story-art{min-height:60px}.map-story-art img{width:60px;height:68px}.map-story-art img.npc-avatar,.map-story-art .portrait-fallback{width:60px;height:60px}}

/* V2.46: show actual global level ranges, not misleading station ordinals. */
.map-piece .station{width:max-content;min-width:clamp(35px,10.5vw,50px);height:clamp(24px,7.2vw,36px);padding:0 5px;border-radius:12px;gap:2px;box-sizing:border-box}.station-number{white-space:nowrap;font-size:clamp(10px,2.9vw,14px);font-variant-numeric:tabular-nums;letter-spacing:-.2px}.station.current .station-number{top:53%;font-size:clamp(10px,2.9vw,14px);white-space:nowrap}.station.current{padding-inline:6px}.station-dots{flex:none}

/* V265: reusable illustrated portraits and compact story collection. Keep the close button visible while browsing. */
#collection[open]{display:flex;flex-direction:column;max-height:84dvh;overflow:hidden}
#collection .dialog-head,#collection .story-tabs,#collection .prologue-replay{flex:0 0 auto}
#story-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px}
#collection .story-card{grid-template-columns:78px minmax(0,1fr);min-height:92px;gap:4px;margin:7px 0;padding:5px 8px 5px 5px}
#collection .story-avatar{width:74px;height:74px;object-fit:contain;align-self:center;justify-self:center}
#collection .story-card div{padding:4px 0 4px 3px}
#collection .story-card.locked .story-avatar{filter:grayscale(.9);opacity:.7}
.map-story-art img.npc-avatar{width:104px;height:104px;object-fit:contain}
@media(max-height:480px){.map-story-art img.npc-avatar{width:64px;height:64px}#collection[open]{max-height:92dvh}}

/* V268: text actions are not round close icons. Empty status messages occupy no space. */
#map-story .dialog-head{gap:10px;align-items:center}
#map-story-title{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.35}
#map-story-skip{flex:0 0 auto;width:auto;min-width:64px;height:36px;padding:0 12px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;white-space:nowrap;word-break:keep-all}
.shell #notice[hidden],.shell #notice:empty{display:none!important}

/* V269: an opt-in test banner; the normal adventure UI is unchanged. */
#test-banner{color:#ffe6a5;font-size:12px;line-height:1.4;text-align:center;margin:0 0 5px}#test-banner a{color:inherit;text-decoration:underline}#test-banner[hidden],#test-link[hidden]{display:none!important}#test-link{display:none}

/* V270: head/shoulder crop for collections, transparent bust for dialogue. */
#collection .story-avatar{object-fit:contain;object-position:center bottom}
.map-story-art img.npc-dialog-art{width:104px;height:112px;max-width:100%;object-fit:contain;object-position:center bottom}
@media(max-height:480px){.map-story-art img.npc-dialog-art{width:64px;height:68px}}

/* V273 chapter finale */
#chapter-completion{box-sizing:border-box;width:min(440px,calc(100% - 24px));max-height:86dvh;overflow:auto;padding:17px;background:#fff5df;color:#59412e;border:2px solid #b99458;border-radius:20px;box-shadow:0 8px 28px #173c3055}#chapter-completion::backdrop{background:#203b2d66}.completion-art{display:flex;align-items:center;gap:14px;padding:6px 0 12px}.completion-art img{width:clamp(74px,24vw,108px);height:auto;object-fit:contain;flex:none}.completion-art h2{font-size:25px;line-height:1.2;margin:2px 0 5px;color:#386347}.completion-art small,.completion-art p,.completion-stats small{font-size:12px;color:#836b48}.completion-art p{margin:4px 0}.completion-main{padding:10px 12px;background:#e4edd7;border-radius:12px;color:#315d40}.completion-main progress{display:block;width:100%;height:8px;margin-top:7px;accent-color:#59835b}.completion-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.completion-stats>div{padding:8px 10px;border:1px solid #dfc89b;border-radius:10px;background:#fffaf0;display:flex;justify-content:space-between;align-items:center;gap:5px}.completion-stats b{font-size:15px;white-space:nowrap}.completion-wide{grid-column:1/-1}.completion-copy{font-size:13px;line-height:1.5;margin:12px 0 6px}#completion-note{color:#9e4a34;font-size:12px;margin:4px 0}#completion-note:empty{display:none}.completion-actions{display:flex;gap:8px}.completion-actions button{flex:1;min-height:44px;border:1px solid #b99458;border-radius:12px;background:#fff5df;color:#386347;font-weight:700;padding:8px}.completion-actions #completion-back{background:#f3d180;color:#59412e}@media(max-width:350px){.completion-stats>div{padding:7px 6px}.completion-stats b{font-size:13px}.completion-art{gap:8px}}@media(max-height:480px){#chapter-completion{max-height:92dvh;padding:10px}.completion-art img{width:58px}.completion-art{padding:0 0 7px}.completion-stats>div{padding:5px 8px}.completion-copy{margin:6px 0}}

/* V2.82 development-only quick picker. */
#test-banner .qa-picker{display:flex;gap:6px;justify-content:center;align-items:center;margin:4px 0}#test-banner select,#test-banner button{min-height:36px;border:1px solid #d5b676;border-radius:8px;background:#315a40;color:#fff0c9;padding:4px 10px;font:inherit}#test-banner select{min-width:100px;max-width:60%}

/* Bamboo V1.2: keep authored map coordinates; chapter-local compact nodes. */
.bamboo-map{container-type:inline-size;background-color:#a3bf92}
.bamboo-map .station{width:clamp(35px,10.8cqw,46px);min-width:0;max-width:46px;height:clamp(22px,6.6cqw,30px);padding:0 1px;gap:1px;border-radius:9px;border-width:1px}
.bamboo-map .station-number,.bamboo-map .station.current .station-number{font-size:clamp(9px,2.65cqw,11px);letter-spacing:-.45px;line-height:1.05;position:static;transform:none;top:auto;left:auto}
.bamboo-map .station-dots,.bamboo-map .station.current .station-dots{position:static;transform:none;background:none;box-shadow:none;border:0;padding:0;gap:2px}
.bamboo-map .station-dots i{width:3px;height:3px}
.bamboo-map .station.current{outline:1px solid #fff2c0;box-shadow:0 0 0 2px #e6b85c80,0 2px #986c34;z-index:4}
.bamboo-map .map-marker{width:clamp(42px,12cqw,65px);transform-origin:50% 100%}
.bamboo-station-art{display:flex;align-items:center;gap:9px;min-height:66px;margin:4px 0 10px;padding:5px 9px;background:#e1ecd3;border:1px solid #afc59a;border-radius:12px;color:#315d40}
.bamboo-station-art img{width:54px;height:54px;object-fit:contain;flex:none}
.bamboo-station-copy{min-width:0;flex:1;display:grid;gap:3px}
.bamboo-station-copy strong{font-size:15px;line-height:1.2}.bamboo-station-copy small{font-size:11px;line-height:1.3;color:#536e48}
@media(max-width:350px){.bamboo-station-art .bamboo-scenery{width:39px;height:39px}.bamboo-station-art .bamboo-npc{width:45px;height:45px}}

/* Bamboo preview collection and separate finale; no first-chapter changes. */
#chapter-completion[data-chapter="2"]{border-color:#89a174}#chapter-completion[data-chapter="2"] #completion-back{background:#d8e8bd}.bamboo-treasure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bamboo-treasure{display:grid;justify-items:center;align-content:start;gap:4px;padding:9px 5px;border:1px solid #b8c49a;border-radius:12px;background:#edf2dc;color:#315d40;text-align:center}.bamboo-treasure img{width:64px;height:64px;object-fit:contain}.bamboo-treasure strong{font-size:13px}.bamboo-treasure small{font-size:11px;color:#526b48}.bamboo-treasure.locked{background:#ebe7d8;color:#686a60}.bamboo-treasure.locked img{filter:grayscale(1);opacity:.38}.bamboo-album-note{font-size:11px;color:#6d705c}.shell[data-chapter="2"] #map-story .npc-dialog-art{object-position:center bottom}

/* V2.93: optional chapter goals and explicit next-map navigation. */
.completion-optional{margin:8px 0}.completion-actions button[hidden],.completion-next[hidden]{display:none!important}.completion-next{display:block;width:100%;min-height:44px;margin-top:8px;padding:8px;border:1px solid #b99458;border-radius:12px;background:#386347;color:#fff3d6;font-size:14px;font-weight:750}.completion-actions button{min-width:0;overflow-wrap:anywhere}.completion-optional button{background:#f9ebcb}.completion-next:focus-visible{outline:2px solid #b99458;outline-offset:2px}

/* Story reader: stable layout, explicit filters, no extra overlay during play. */
#story-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 0 7px;flex:none}#story-filters[hidden],#map-story-prev[hidden],#replay-prologue[hidden]{display:none!important}.story-filters button{min-height:36px;border:1px solid #c9ac76;border-radius:10px;background:#f9ebcb;color:#386347;padding:4px 10px;font-size:13px;font-weight:650}.story-filters button[aria-pressed=true]{background:#386347;color:#fff3d6}.story-filters span{font-size:12px;color:#69543c;margin-left:auto;white-space:nowrap}.story-empty{padding:16px 8px;text-align:center;color:#69543c;font-size:14px}#map-story-prev{min-height:42px;border:1px solid #c9ac76;border-radius:12px;background:#fff5df;color:#386347;padding:6px 10px;font-weight:650;white-space:nowrap}#map-story-prev:disabled{opacity:.45}#map-story .prologue-controls{gap:8px}

/* Shared chapter journey cards and completion layout. */
#story-chapter-filter{max-width:100%;min-height:36px;padding:4px 8px;background:#fff5df;color:#386347;border:1px solid #c9ac76;border-radius:10px}#story-chapter-filter[hidden]{display:none!important}.chapter-journey{margin:8px 0 14px;padding:9px;border:1px solid #d4bb89;border-radius:12px}.chapter-journey progress{width:100%;accent-color:#386347}.chapter-journey h4{margin:10px 0 5px;font-size:14px}.journey-main{font-size:13px;color:#59412e}.journey-actions{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0}.journey-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.journey-person{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid #d4bb89;border-radius:8px;padding:5px;font-size:12px;min-width:0;overflow-wrap:anywhere}.journey-person img{width:50px;height:50px;object-fit:contain}.journey-person.locked{opacity:.55}.completion-optional{display:flex;flex-wrap:wrap}.completion-optional button{flex:1 1 28%}

/* The standalone preview and the economy album share the same chapter section. */
.chapter-journey .travel-main-progress{display:block;margin:5px 0;font-size:15px;color:#386347}.chapter-journey .travel-journey-rows{display:grid;gap:5px;margin:8px 0}.chapter-journey .travel-journey-row{display:flex;align-items:center;gap:6px;min-width:0;padding:5px 0;border-bottom:1px solid #d4bb8966}.chapter-journey .travel-journey-row>div{flex:1;min-width:0;display:grid;gap:3px}.chapter-journey .travel-journey-row>div small{font-size:11px;color:#806a4c;overflow-wrap:anywhere}.chapter-journey .travel-journey-row>b{font-size:13px;white-space:nowrap;color:#386347}.chapter-journey .travel-journey-row button{flex:none;min-height:34px}.chapter-journey .journey-person small{font-size:11px;overflow-wrap:anywhere}

/* V3.14: one compact goal line, no new button or blocking overlay. */
.shell footer #guide:not([hidden]){display:block;text-align:center;font-size:12px;line-height:17px;margin:0 0 4px;color:#fff0cb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shell footer #guide[hidden]{display:none!important}
.shell{--map-bottom:calc(147px + env(safe-area-inset-bottom))}
@media(max-height:500px) and (orientation:landscape){.shell footer #guide:not([hidden]){display:none}.shell{--map-bottom:calc(75px + env(safe-area-inset-bottom))}}
.station-treasure{position:absolute;right:-5px;top:-7px;display:grid;place-items:center;width:14px;height:14px;border-radius:50%;border:1px solid #80533c;background:#fff0c4;color:#80533c;font-size:10px;line-height:1;pointer-events:none;z-index:1}
.station-treasure.owned{background:#386347;color:#fff3d6;border-color:#fff3d6}
.station-level .station-treasure-label{display:block;font-size:12px;font-weight:600;color:#386347;margin-top:3px}
.journey-goal{font-size:12px;color:#386347;margin:4px 0;font-weight:650;overflow-wrap:anywhere}

/* V3.15–19: concise story context, one treasure reveal, and chapter replay summary. */
.story-context{font-size:12px;font-weight:700;color:#386347;border-top:1px solid #e3cea5;padding:5px 0 0;margin-top:4px}.story-context[hidden],.story-treasure[hidden],.replay-summary[hidden]{display:none!important}.story-treasure{display:flex;align-items:center;gap:10px;margin:4px 0 8px;padding:6px 10px;border:1px solid #d4b16b;border-radius:12px;background:#f8e9c6;color:#59412e}.story-treasure img{width:44px;height:44px;object-fit:contain;flex:none}.story-treasure strong,.story-treasure small{display:block}.story-treasure small{font-size:11px;color:#657649}.story-treasure strong{font-size:14px}.story-treasure:not([hidden]) img{animation:treasure-reveal .35s ease-out both}@keyframes treasure-reveal{from{transform:scale(.8);opacity:.5}to{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.story-treasure img{animation:none!important}}.shell[data-reduce-motion="1"] .story-treasure img{animation:none!important}.station-level .station-mission{display:block;color:#6c684b;font-size:12px;font-weight:500;margin-top:3px}.replay-summary{font-size:12px;line-height:1.5;color:#386347;margin:4px 0 8px}@media(max-height:480px){.story-treasure img{width:32px;height:32px}.story-treasure{padding:3px 6px;margin:2px 0 4px}.story-context{padding:2px 0}}
