/* Forward-moving lane view. */
main{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)}
.scene{height:570px;background-position:right top;touch-action:pan-y}
#road{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.question-dock{position:absolute;top:78px;left:16px;right:16px;z-index:4;text-align:center;background:#fffffff2;border-radius:6px;padding:8px 14px}
.question-dock h2{font-size:24px;margin:0;min-height:0}
#choices{display:none}
#paths{z-index:2}
#paths .sign{min-width:64px;max-width:110px;min-height:54px;font-size:20px;transition:none;transform-origin:center}
#paths .sign:after{height:34px}
#cat{z-index:3;bottom:46px;width:78px;transition:left .16s ease;pointer-events:none}
.running #cat img{animation:stride .35s infinite alternate}
#cat.walk img{animation:stride .35s infinite alternate}
.frozen #cat img{animation-play-state:paused}
.steering{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:14px;margin-top:24px}
.steering #confirm{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;padding:8px;background:#187859;color:#fff}
.steering #confirm[hidden]{display:none}
.steering button{min-height:84px;background:#fff}
.steering svg{width:34px;height:34px}
#startRun{grid-column:1/-1;grid-row:1;background:#187859}
#startRun[hidden]{display:none}
#freezeBanner{top:145px}
.tools{margin-top:16px}
@keyframes stride{from{transform:translateY(0) rotate(-1deg)}to{transform:translateY(-5px) rotate(1deg)}}
@media(max-width:760px){.scene{height:480px}.question-dock{top:70px;left:10px;right:10px}.question-dock h2{font-size:20px}#paths .sign{min-width:55px;max-width:78px;font-size:16px}#cat{width:75px;bottom:45px}.steering{margin-top:10px;gap:16px}.steering button{min-height:64px}.status{font-size:11px}#message{min-height:26px;padding:4px 0}.tools{margin-top:8px}.question-top{margin-top:3px}}
@media(prefers-reduced-motion:reduce){.running #cat img{animation:none}}
@media(max-width:760px){#cat{width:62px}}
/* The armor follows the same stride as the cat instead of floating as a badge. */
#cat{width:88px}
#cat #armor{left:25%;right:auto;top:34%;width:62%;height:40%;padding:0;border:0;border-radius:0;background:none;filter:drop-shadow(0 2px 1px #26333380)}
#armor[hidden]{display:none}
.armor-back{position:absolute;inset:8% 9% 0;border:2px solid #e7c97b;border-radius:32% 32% 25% 25%;background:linear-gradient(105deg,#516b7e 0%,#e0edf2 35%,#8faabb 52%,#d7e4eb 68%,#4e697e 100%);box-shadow:inset 0 -5px 0 #304a6060}
.armor-shoulders{position:absolute;left:0;top:0;width:100%;height:34%;border:2px solid #e7c97b;border-radius:40% 40% 25% 25%;background:linear-gradient(90deg,#536e82,#dceaf0 45%,#657f90)}
.armor-ridge{position:absolute;top:8%;bottom:14%;left:47%;width:6%;background:#eef7fa;border-radius:50%;box-shadow:2px 0 0 #567183}
.armor-belt{position:absolute;bottom:16%;left:10%;width:80%;height:11%;background:#71513a;border:1px solid #dcb66d}
.running #cat #armor{animation:stride .35s infinite alternate}
.frozen #cat #armor{animation-play-state:paused}
@media(max-width:760px){#cat{width:76px}}
@media(prefers-reduced-motion:reduce){.running #cat #armor{animation:none}}
.world>.question-dock{position:relative;inset:auto;z-index:6;display:block;background:#fff;color:#172d42;text-align:left;padding:12px 18px;border-bottom:3px solid #187859;border-radius:0;min-height:100px}
.question-label{display:block;font-size:13px;color:#187859;font-weight:700;margin-bottom:4px}
.world>.question-dock h2{display:block;font-size:28px;line-height:1.4;overflow-wrap:anywhere;margin:0;min-height:0}
@media(max-width:760px){.world>.question-dock{padding:10px 14px;min-height:88px}.world>.question-dock h2{font-size:24px}.scene{height:390px}}
/* Split only the lower paws; preserve the original rear-facing illustration. */
#cat .hachi-body{clip-path:inset(0 0 25% 0)}
#cat .hachi-leg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#cat .hachi-leg-left{clip-path:polygon(0 74%,62% 74%,62% 100%,0 100%)}
#cat .hachi-leg-right{clip-path:polygon(62% 74%,100% 74%,100% 100%,62% 100%)}
#cat #armor{left:39%;top:30%;width:44%;height:31%;z-index:2}
.running #cat .hachi-body,.running #cat #armor{animation:body-step .42s ease-in-out infinite}
.running #cat .hachi-leg-left{animation:paw-step .42s ease-in-out infinite}
.running #cat .hachi-leg-right{animation:paw-step .42s ease-in-out infinite reverse}
.scene:not(.running) #cat img,.scene:not(.running) #cat #armor{animation:none}
@keyframes body-step{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-2px) rotate(1deg)}}
@keyframes paw-step{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){.running #cat img,.running #cat #armor{animation:none}}
