/* A short travel postcard; the actual map returns to full size after dismissal. */
#welcome{width:min(480px,92vw);max-height:60dvh;margin:auto;padding:22px 24px 20px;overflow:auto;border:3px solid var(--ink);border-radius:26px;box-shadow:0 8px 0 var(--ink);text-align:center;background:var(--cream);line-height:1.4}
#welcome::backdrop{background:#243b5380}
#btn-howto{float:none;display:block;margin-bottom:18px;background:var(--tomato);color:white}
#welcome h2{font-size:24px;line-height:1.5;margin:0;font-weight:900;letter-spacing:-.03em}
#welcome h2>span{display:block;font-size:19px}#guide-origin{font-size:24px}#guide-time{color:#bc431d;font-size:32px;background:linear-gradient(transparent 65%,#ffd23f 65%);white-space:nowrap}
.guide-copy{margin:8px 0 12px;font-size:17px;font-weight:900}
#guide-enter{float:none;display:block;width:100%;min-height:52px;padding:10px 18px;background:var(--tomato);color:white;border:3px solid var(--ink);border-radius:18px;box-shadow:0 4px 0 var(--ink);font-size:19px;font-weight:900}
#guide-enter:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
#guide-scene{position:relative;height:166px;margin:4px 0 0;isolation:isolate;overflow:hidden}
.guide-route{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.guide-start,.guide-end{position:absolute;top:89px;width:40px;height:40px;transform:translate(-50%,-50%)}.guide-start{left:12%}.guide-end{left:88%}
.guide-start svg,.guide-end svg{width:100%;height:100%}
.guide-start-label,.guide-end-label{position:absolute;top:129px;transform:translateX(-50%);font-size:12px;font-weight:900;white-space:nowrap}.guide-start-label{left:12%}.guide-end-label{left:85%}
.guide-clock{position:absolute;left:50%;top:2px;transform:translateX(-50%);width:64px;height:64px}.guide-clock svg{width:64px;height:64px}.guide-clock circle{fill:#fff;stroke:#e2dbc5;stroke-width:7}.guide-clock #guide-clock-progress{fill:none;stroke:var(--mint);stroke-linecap:round;stroke-dasharray:170;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:32px 32px}.guide-clock path{fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round}
#guide-clock-time{position:absolute;top:53px;left:50%;transform:translateX(-50%);padding:1px 7px;white-space:nowrap;font-size:14px;background:var(--sun);border:2px solid var(--ink);border-radius:9px;font-weight:900}
.guide-traveler{position:absolute;left:84%;top:76px;width:60px;height:60px;transform:translate(-50%,-50%);opacity:0}.guide-traveler .actor{position:absolute;width:60px;height:60px;inset:0}.guide-traveler .g-train{--tc:#dcecff;--ts:#2f6fd6}
#guide-walker{opacity:0}#guide-train{opacity:1}
.guide-tap{position:absolute;left:88%;top:105px;width:44px;height:44px;transform:translate(-50%,-50%);opacity:0}.guide-tap svg{width:44px;height:44px;fill:#fff8e6;stroke:var(--ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.guide-example{position:absolute;bottom:0;left:50%;transform:translateX(-50%);font-size:10px;color:#77718a;white-space:nowrap}
.running .guide-traveler{animation:guide-travel 4.5s linear 2 both}.running #guide-walker{animation:guide-walk 4.5s linear 2 both}.running #guide-train{animation:guide-train 4.5s linear 2 both}.running .guide-end{animation:guide-drop 4.5s ease 2 both}.running .guide-start{animation:guide-start 4.5s ease 2 both}.running .guide-tap{animation:guide-tap 4.5s ease 2 both}.running #guide-clock-progress{animation:guide-clock 4.5s linear 2 both}
@keyframes guide-travel{0%,12%{left:12%;opacity:0}14%{left:12%;opacity:1}30%{left:38%;opacity:1}70%{left:84%;opacity:1}76%,100%{left:84%;opacity:0}}
@keyframes guide-walk{0%,29%{opacity:1}30%,100%{opacity:0}}@keyframes guide-train{0%,29%{opacity:0}30%,100%{opacity:1}}
@keyframes guide-drop{0%,68%{opacity:0;transform:translate(-50%,-110%)}78%{opacity:1;transform:translate(-50%,-35%)}84%,100%{opacity:1;transform:translate(-50%,-50%)}}
@keyframes guide-start{0%{transform:translate(-50%,-100%) scale(.6);opacity:0}12%,100%{transform:translate(-50%,-50%) scale(1);opacity:1}}
@keyframes guide-tap{0%,69%{opacity:0;transform:translate(-20%,20%)}76%,83%{opacity:1;transform:translate(-50%,-50%)}95%,100%{opacity:0;transform:translate(-50%,-50%)}}
@keyframes guide-clock{0%,12%{stroke-dashoffset:170}75%,100%{stroke-dashoffset:0}}
#guide-nudge{position:absolute;z-index:840;left:50%;bottom:max(112px,calc(env(safe-area-inset-bottom) + 78px));transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100% - 30px);padding:8px 16px;background:var(--cream);border:2.5px solid var(--ink);border-radius:20px;box-shadow:0 3px 0 #2d2a4a;font-weight:900;font-size:18px;pointer-events:none}
#guide-nudge svg{width:35px;height:38px;fill:white;stroke:var(--ink);stroke-width:2;stroke-linejoin:round;animation:guide-finger .8s ease-in-out 3}
.guide-confirm #btn-stick{animation:guide-button .8s ease-in-out 3}.guide-origin .origin-dot{animation:guide-origin 1.5s ease-out both}
@keyframes guide-finger{50%{transform:translateY(5px)}}@keyframes guide-button{50%{box-shadow:0 5px 0 var(--ink),0 0 0 9px #ffd23f99}}@keyframes guide-origin{0%{box-shadow:0 0 0 0 #ffd23faa;transform:scale(1)}30%{transform:scale(1.6)}100%{box-shadow:0 0 0 38px #ffd23f00;transform:scale(1)}}
@media(max-width:600px){#welcome{padding:14px 16px 16px;border-radius:22px}#welcome h2{font-size:20px}#guide-time{font-size:27px}#guide-origin{font-size:23px}.guide-copy{font-size:15px;margin:6px 0 10px}#guide-enter{font-size:18px;min-height:48px}#guide-scene{height:150px}.guide-start-label,.guide-end-label{top:122px}.guide-example{bottom:0}#guide-nudge{font-size:16px;bottom:104px}}
@media(min-aspect-ratio:1/1) and (max-height:500px){#welcome{width:min(720px,94vw);max-height:calc(100dvh - 24px);padding:16px;display:grid;grid-template-columns:44% 1fr;gap:0 20px;align-items:center}#welcome:not([open]){display:none}#welcome h2{grid-column:2;font-size:20px}#guide-time{font-size:25px}#guide-origin{font-size:22px}#guide-scene{grid-column:1;grid-row:1/3;width:100%;height:166px}#welcome footer{grid-column:2}.guide-copy{font-size:15px}#guide-enter{font-size:17px}#guide-nudge{bottom:80px;font-size:15px}}
@media(prefers-reduced-motion:reduce){#welcome *,#guide-nudge *,.guide-confirm #btn-stick,.guide-origin .origin-dot{animation:none!important;transition:none!important}}

@media(max-width:600px) and (max-height:700px) and (max-aspect-ratio:1/1){#welcome{max-height:calc(100dvh - 32px)}}

html[lang=en] #welcome h2{font-size:22px;line-height:1.3}
html[lang=en] #welcome h2>span{font-size:17px}
html[lang=en] #guide-origin{font-size:21px}
html[lang=en] .guide-copy{font-size:16px}
html[lang=en] #guide-nudge{font-size:15px;text-align:center}
@media(max-width:600px){html[lang=en] #welcome h2{font-size:19px}html[lang=en] #guide-origin{font-size:20px}html[lang=en] #guide-enter{font-size:17px}}
