.road-stage{position:sticky;top:15px;min-width:0;overflow:hidden;border-radius:28px;background:#f3ecd9;box-shadow:0 8px 0 #e2d2b9,0 15px 30px #72634520;scroll-margin-top:15px}.road-stage canvas{display:block;width:100%;height:auto;aspect-ratio:960/720}.road-status{font-size:13px;padding:14px 17px;background:#fffbef;font-weight:bold;color:#56746c;min-height:46px}.scene-reset{font-size:11px;margin:0 14px 12px;padding:7px 12px}.journey-progress{appearance:none;width:100%;height:6px;border:none;border-radius:10px;margin:0 0 18px;background:#eadfc9}.journey-progress::-webkit-progress-bar{background:#eadfc9;border-radius:10px}.journey-progress::-webkit-progress-value{background:#86bb95;border-radius:10px}.option.chosen{border-color:#80a9ce;background:#eaf1f9}.option:disabled{cursor:default}.next:disabled{background:#d2c7b7;color:#fffaf0;box-shadow:none;cursor:default}.replay{width:100%;margin-top:16px}.penalty-card{background:#fff0e1;border:3px solid #df3e3e;border-radius:20px;padding:18px;margin-top:15px;box-shadow:0 0 0 2px #df3e3e12}.penalty-card strong{font-size:13px}.penalty-card p{font-size:13px;margin:7px 0}.penalty-card b{display:block;font-size:19px;color:#a96648}.penalty-card a,.penalty-card small{display:block;margin-top:7px;font-size:11px}.penalty-card a{color:#466e95}.siren{display:flex;gap:5px;float:right}.siren i{width:18px;height:14px;border-radius:8px 8px 3px 3px;background:#d98579;animation:police-light .35s alternate 6}.siren i+i{background:#8dadcf;animation-delay:.35s}.coco-actor{position:relative;width:104px;height:118px;flex-shrink:0;transform-origin:50% 85%}.coco-actor img,.coco-actor video{width:100%;height:104px;object-fit:contain;border-radius:20px;mix-blend-mode:multiply}.asset-note{position:absolute;bottom:0;font-size:8px;color:#978269;width:100%;text-align:center}.coco-effect{position:absolute;right:-2px;top:5px;font-weight:900;font-size:28px;color:#dca753}.companion{min-height:132px;gap:18px;padding:8px 0 15px}.companion p{font-size:15px;flex:1}.motion-peek{animation:peek 3.3s ease-in-out infinite}.motion-point{animation:point 2.6s ease-in-out infinite}.motion-think .coco-effect{animation:question 2s ease-in-out infinite}.motion-tilt{animation:tilt 3s ease-in-out infinite}.motion-twitch{animation:twitch 2.9s ease-in-out infinite}.motion-jump{animation:cheer .75s ease-in-out 3}.motion-spin{animation:spin 1s ease-in-out 1}.motion-thumb{animation:cheer 1.1s ease-in-out 2}.motion-star .coco-effect{animation:gift 1.3s ease-in-out 3}.motion-heart .coco-effect{color:#da927f;animation:gift 1.3s ease-in-out 3}.motion-sweat .coco-effect{animation:sweat 1.1s ease-in-out 3}.motion-droop{animation:droop 1s ease-in-out 2}.motion-shake{animation:shake .65s ease-in-out 3}.motion-palm{animation:tilt 1.2s ease-in-out 2}.motion-angry{animation:twitch .75s ease-in-out 2}@keyframes peek{0%,100%{transform:translateY(7px) rotate(-5deg)}45%,65%{transform:translateY(-6px) rotate(4deg)}}@keyframes point{0%,100%{transform:rotate(0)}40%,60%{transform:rotate(-8deg) translateX(4px)}}@keyframes question{50%{transform:translateY(-5px) rotate(9deg)}}@keyframes tilt{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(8deg)}}@keyframes twitch{0%,65%,100%{transform:rotate(0)}70%,80%{transform:rotate(-5deg)}75%,85%{transform:rotate(5deg)}}@keyframes cheer{0%,100%{transform:translateY(0) scale(1)}25%{transform:scale(1.03,.96)}50%{transform:translateY(-12px)}75%{transform:translateY(0) scale(1.04,.96)}}@keyframes spin{50%{transform:translateY(-12px) rotateY(180deg)}100%{transform:rotateY(360deg)}}@keyframes gift{0%{transform:scale(.5);opacity:.3}60%{transform:translate(12px,-12px) scale(1.25);opacity:1}100%{transform:translate(18px,-8px);opacity:0}}@keyframes sweat{50%{transform:translateY(12px)}}@keyframes droop{50%{transform:translateY(7px) rotate(5deg)}}@keyframes shake{25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}@keyframes police-light{to{opacity:.25}}
@media(max-width:1050px){.game-grid{grid-template-columns:minmax(0,1fr) 410px}}
@media(max-width:750px){.road-stage{position:relative;top:auto;width:100%;scroll-margin-top:8px}.road-stage canvas{aspect-ratio:960/700;object-fit:contain}.road-status{font-size:11px;padding:10px 13px;min-height:36px}.game-grid{display:grid;grid-template-columns:minmax(0,1fr)}.question-card{padding:18px}.question-card h1{font-size:19px}.coco-actor{width:88px;height:99px}.coco-actor img,.coco-actor video{height:88px}.companion{min-height:111px;gap:13px}.companion p{font-size:14px}.coco-effect{font-size:24px}.option{font-size:14px;min-height:66px}.play-top{font-size:12px}.scene-reset{padding:6px 9px}.journey-progress{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.coco-actor,.coco-effect,.siren i{animation:none!important}}
/* Visual rollback: fixed UI habitat, only the character performs motion. */
.coco-actor{animation:none!important;transform:none!important;width:120px;height:126px;overflow:visible;isolation:isolate}
.coco-habitat{position:absolute;inset:28px 1px 16px;border-radius:22px;background:linear-gradient(155deg,#f2e3cc,#fff7e7);border:2px solid #e8d4b8;box-shadow:inset 0 3px 7px #c9ac8125;z-index:0}
.coco-person{position:absolute;left:7px;top:4px;width:106px;height:105px;transform-origin:50% 80%;z-index:1}
.coco-person img,.coco-person video{width:100%;height:100%;object-fit:contain;border-radius:35% 35% 20% 20%;clip-path:polygon(16% 0,85% 0,98% 68%,88% 94%,16% 100%,0 65%);mix-blend-mode:multiply}
.coco-edge{position:absolute;left:0;right:0;bottom:16px;height:16px;border-radius:5px 5px 16px 16px;background:linear-gradient(#fff8e9,#e8d2ae);border-top:3px solid #f8eddb;box-shadow:0 3px 0 #d9c4a2;z-index:2}
.coco-hand{position:absolute;width:16px;height:12px;border-radius:7px;background:linear-gradient(#fff0dc,#e9b992);box-shadow:0 2px 2px #9b755433;top:86px;z-index:3}.hand-left{left:14px}.hand-right{right:14px}
.coco-effect{z-index:4;right:-8px;top:0}.asset-note{z-index:5;bottom:0}.companion{min-height:150px;overflow:visible}.question-card{overflow:visible}
.motion-peek .coco-person{animation:actor-peek 2s steps(1,end) infinite}.motion-point .coco-person{animation:actor-point 1.8s ease-out infinite}.motion-point .hand-right{transform:translate(25px,-32px) rotate(-35deg);width:28px}
.motion-look .coco-person{animation:actor-look 2s ease-out infinite}.motion-think .coco-person{animation:actor-think 2s ease-out infinite}.motion-twitch .coco-person img{animation:actor-ear 2s ease-out infinite}
.motion-jump .coco-person,.motion-thumb .coco-person{animation:actor-jump .6s ease-out 2}.motion-spin .coco-person{animation:actor-spin .85s ease-out}.motion-backflip .coco-person{animation:actor-flip .9s ease-out}
.motion-sweat .coco-person{animation:actor-sigh .6s ease-out 2}.motion-sweat .coco-effect{font-size:45px;animation:sweat .5s ease-out 3}.motion-droop .coco-person{animation:actor-sigh .7s ease-out 2}.motion-shake .coco-person{animation:shake .35s ease-out 3}.motion-palm .hand-right{transform:translate(-27px,-48px);width:25px;height:22px}.motion-angry .coco-person{animation:actor-stamp .4s ease-out 2}
@keyframes actor-peek{0%,100%{transform:translateY(10px)}20%,80%{transform:translateY(-13px)}}
@keyframes actor-point{0%,100%{transform:translateY(-5px)}20%,70%{transform:translate(8px,-12px) rotate(5deg)}}
@keyframes actor-look{0%,100%{transform:translateY(-6px)}25%,70%{transform:translate(-10px,-11px) rotate(-12deg)}}
@keyframes actor-think{0%,100%{transform:rotate(0)}20%,80%{transform:translateY(-6px) rotate(9deg)}}
@keyframes actor-ear{0%,50%,100%{transform:scaleX(1)}55%,65%{transform:scaleX(1.06)}60%,70%{transform:scaleX(.97)}}
@keyframes actor-jump{0%,100%{transform:translateY(0)}20%{transform:scale(1.03,.96)}45%,65%{transform:translateY(-27px)}85%{transform:scale(1.04,.96)}}
@keyframes actor-spin{0%,100%{transform:translateY(0) rotateY(0)}40%{transform:translateY(-25px) rotateY(170deg)}80%{transform:translateY(-10px) rotateY(350deg)}}
@keyframes actor-flip{0%,100%{transform:translateY(0) rotate(0)}20%{transform:translateY(-34px) rotate(-35deg)}60%{transform:translateY(-42px) rotate(-270deg)}85%{transform:translateY(-5px) rotate(-360deg)}}
@keyframes actor-sigh{50%{transform:translateY(7px) rotate(4deg)}}@keyframes actor-stamp{50%{transform:translateY(-4px) rotate(-5deg)}}
@media(max-width:750px){.coco-actor{width:106px;height:117px}.coco-person{width:94px;height:96px;left:6px}.coco-hand{top:79px}.companion{min-height:134px}.road-stage canvas{aspect-ratio:960/720}}
@media(prefers-reduced-motion:reduce){.coco-person,.coco-person img{animation:none!important}}

/* Old opaque sprite motions disabled pending alpha character layer. */
.coco-person,.coco-person img,.coco-effect{animation:none!important;transform:none!important}
.map-canvas .pin{background:transparent!important;border:0!important;box-shadow:none!important;color:transparent!important}.map-canvas .pin:hover,.map-canvas .pin:focus-visible{outline:3px solid #fff6d7;outline-offset:3px;background:#ffffff20!important}.map-pin-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.police-feedback{position:fixed;inset:0;z-index:100;pointer-events:none}.police-wash{position:absolute;inset:0;background:#e444441c;animation:police-wash .8s steps(1,end) 2}.police-beacon{position:absolute;right:24px;top:18px;display:flex;border:3px solid #fff9;border-radius:20px 20px 8px 8px;overflow:hidden;box-shadow:0 2px 12px #46526955}.police-beacon i{width:28px;height:24px;background:#e54949}.police-beacon i+i{background:#518de0}.police-beacon:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffffcc,transparent);animation:beacon-sweep .8s linear 2}.penalty-card{animation:penalty-emphasis .7s ease-out 1}@keyframes police-wash{50%{background:#3e80dc1c}}@keyframes beacon-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes penalty-emphasis{50%{box-shadow:0 0 0 5px #df3e3e30}}@media(prefers-reduced-motion:reduce){.police-wash,.police-beacon:after,.penalty-card{animation:none}.police-wash{background:transparent}}
.road-stage > .police-beacon{z-index:5;right:18px;top:18px;pointer-events:none}
#living-map{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.wood-home{position:absolute;left:0;top:0;width:20%;height:20%;background:transparent;border:0;box-shadow:none;cursor:pointer;z-index:4}.wood-home:focus-visible{outline:3px solid #fff3c9}.map-guide{position:absolute;left:12%;top:58%;width:24%;aspect-ratio:16/9;pointer-events:none;z-index:3}.map-guide video{width:100%;height:100%;object-fit:contain}.map-canvas .available{animation:first-destination 1.8s ease-in-out infinite}.map-canvas .pin{z-index:4}@keyframes first-destination{50%{outline:3px solid #fff3b8;outline-offset:5px;box-shadow:0 0 18px #ffd474!important}}@media(prefers-reduced-motion:reduce){.map-canvas .available{animation:none}}
.map-guide{left:13%;top:74%;animation:map-guide-arrive 3s cubic-bezier(.2,.65,.35,1) both}@keyframes map-guide-arrive{from{left:42%;top:12%}to{left:13%;top:74%}}@media(prefers-reduced-motion:reduce){.map-guide{animation:none}}

/* Homepage restoration: original art, real hit targets, no synthetic city sprites. */
.first-drive-label{position:absolute;left:9%;top:81%;width:8.5%;height:7.5%;background:#f7e5cc;border-radius:8px;display:flex;flex-direction:column;justify-content:center;padding:3px;color:#354755;pointer-events:none;z-index:2;font-size:clamp(10px,1.3vw,20px)}
.first-drive-label small{font-size:.62em;margin-top:3px}
.city-background{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:1}
.homepage-coco{position:absolute;left:13%;top:74%;width:24%;pointer-events:none;z-index:3}
.map-canvas .pin,.map-canvas .wood-home{z-index:4}


.first-drive-label{width:10.5%;font-size:clamp(9px,1vw,15px);white-space:nowrap;padding:4px;height:7%;top:81.5%}

/* User-selected 16:9 city video, fixed HTML destination signs above media. */
.living-city{aspect-ratio:16/9;container-type:inline-size}
.living-city .city-background{object-fit:contain;z-index:1}
.destination-plaque{position:absolute;transform:translate(-50%,-50%);height:9%;display:flex;align-items:center;gap:5%;padding:4px 5px;border:2px solid #fff4df;border-radius:18px;background:#fff2dc;box-shadow:0 3px 6px #795a3833;z-index:4;text-align:left;white-space:nowrap;font-size:1.45cqw;line-height:1.2}
.destination-number{border:3px solid #fff9e8;border-radius:50%;background:var(--destination-color);color:white;flex-shrink:0;width:3.6cqw;height:3.6cqw;display:grid;place-items:center;font-size:2.5cqw}
.destination-plaque span{min-width:0;display:flex;flex-direction:column;gap:3px}
.destination-plaque strong{font-size:1.5cqw}.destination-plaque small{font-size:1.05cqw}
.destination-plaque:hover,.destination-plaque:focus-visible{outline:3px solid #fff4a6;outline-offset:2px;background:#fff8e9}
.living-city .homepage-coco{left:15%;top:66%;width:22%;height:22%;object-fit:contain;z-index:3;pointer-events:none;transform-origin:50% 80%}
.living-city .homepage-coco.landing{animation:coco-map-approach 1.4s cubic-bezier(.2,.6,.3,1) both}
@keyframes coco-map-approach{from{left:53%;top:7%}to{left:15%;top:66%}}
.living-city .wood-home{width:20%;height:25%}
@media(max-width:750px){.living-city{min-width:780px}.map-window{overscroll-behavior-x:contain}}

/* Road-first gameplay: full-width demonstration, progress and answers underneath. */
.play-screen{display:block;max-width:1280px;padding:20px}
.play-screen .game-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.play-screen .road-stage{position:relative;top:auto;width:100%;max-width:1120px;justify-self:center}
.play-screen .road-stage canvas{aspect-ratio:960/720;width:100%;height:auto}
.play-screen .level-rail{display:block;width:100%;max-width:1120px;justify-self:center}
.play-screen .level-rail h2{margin:6px 0 10px;font-size:18px}
.play-screen .rail-item{display:inline-flex;margin:3px 5px 3px 0;padding:8px 12px;font-size:12px;gap:7px}
.play-screen .level-rail .prototype-note{margin:6px 0}
.play-screen .question-card{width:100%;max-width:1120px;justify-self:center}
.play-screen .options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.play-screen .companion{max-width:740px;margin:0 auto 12px}
.animation-progress{font-size:13px;color:#64786a;margin-top:18px}
@media(max-width:750px){.play-screen{padding:12px}.play-screen .options{grid-template-columns:minmax(0,1fr)}.play-screen .rail-item{font-size:11px;padding:6px 9px}.play-screen .level-rail .prototype-note{display:none}}

/* Desktop: demonstration and consequences left, decisions right. */
.play-screen{max-width:1500px}
.play-screen .game-grid{grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr);align-items:start}
.play-screen .road-column{grid-column:1;grid-row:1;min-width:0}
.play-screen .question-card{grid-column:2;grid-row:1;max-width:none}
.play-screen .level-rail{grid-column:1/-1;grid-row:2;max-width:none}
.play-screen .options{grid-template-columns:minmax(0,1fr)}
.road-column #feedback-slot:empty{display:none}
.road-column #feedback-slot{margin-top:16px}
.road-column #feedback-slot .next{width:100%}
@media(max-width:750px){
 .play-screen .game-grid{grid-template-columns:minmax(0,1fr)}
 .play-screen .road-column{display:contents}
 .play-screen .road-stage{grid-column:1;grid-row:1}
 .play-screen .question-card{grid-column:1;grid-row:2}
 .play-screen #feedback-slot{grid-column:1;grid-row:3}
 .play-screen .level-rail{grid-column:1;grid-row:4}
}

/* Quiz controls, local progress and Coco tip stay below the four answers. */
.play-screen .question-card .level-rail{margin-top:22px;padding:0;box-shadow:none;background:transparent}
.play-screen .question-card .tip-strip{margin-top:18px}
#answer-actions .replay,#answer-actions .next{width:100%;margin-top:16px}
@media(max-width:750px){.play-screen #feedback-slot{display:block}}

.result-coco{width:min(360px,100%);height:230px;margin:0 auto;pointer-events:none}.result-coco-video{width:100%;height:100%;object-fit:contain}.result-coco-line{font-weight:700;font-size:20px;color:#275878}

/* Full character follows the user's marked city route; UI stays fixed. */
.living-city .homepage-coco.landing{z-index:5;animation:coco-marked-flight 2s linear both;transform-origin:center;max-width:none}
@keyframes coco-marked-flight{
 0%{left:8%;top:12%;width:12%;height:20%;transform:translate(-50%,-50%)}
 22%{left:48%;top:17%;width:22%;height:36%;transform:translate(-50%,-50%)}
 42%{left:84%;top:30%;width:30%;height:48%;transform:translate(-50%,-50%)}
 60%{left:53%;top:46%;width:185%;height:235%;transform:translate(-50%,-50%)}
 72%{left:43%;top:51%;width:185%;height:235%;transform:translate(-50%,-50%)}
 88%{left:28%;top:66%;width:40%;height:45%;transform:translate(-50%,-50%)}
 100%{left:26%;top:77%;width:22%;height:22%;transform:translate(-50%,-50%)}
}
@media(prefers-reduced-motion:reduce){.living-city .homepage-coco.landing{animation:none}}

.living-city{overflow:hidden}

/* Rejected synthetic flight withdrawn: await the user’s naturally staged replacement. */
.living-city .homepage-coco.landing{animation:none;transform:none;left:15%;top:66%;width:22%;height:22%;z-index:3}
/* Preserve the approved source video full-frame map coordinates. */
.living-city canvas.homepage-coco{left:0;top:0;width:100%;height:100%;animation:none;transform:none;pointer-events:none;z-index:5}
.results>h1{font-size:clamp(30px,4vw,46px);line-height:1.16;margin:12px auto 22px;max-width:780px}
.result-coco{height:310px}
.result-character{height:100%;width:auto;max-width:100%;object-fit:contain}
.result-coco-line{font-size:clamp(18px,2vw,24px);line-height:1.5}
.result-coco-line+p{font-size:20px;line-height:1.5}
.destination-plaque.chapter-perfect{border:3px solid #eac765;box-shadow:0 0 0 3px #fff1aa99,0 8px 18px #76532222;background:#fff6d7}.destination-plaque.chapter-perfect .destination-number{background:#d5a32f}.chapter-position{font-size:13px;color:#57716d}.destination-plaque:disabled{cursor:default;filter:saturate(.65)}
.game-tools{display:flex;gap:8px;margin:-6px 0 12px;flex-wrap:wrap}.game-tools .quiet{font-size:12px;padding:7px 12px}.game-tools [hidden]{display:none}.mobile-answer-actions,.mobile-companion-tools{display:none}.scene-skip{font-size:11px;margin:0 8px 12px;padding:7px 12px}
@media(max-width:750px){.mobile-answer-actions{display:block;grid-row:4;grid-column:1;padding:0 12px}.mobile-answer-actions .replay,.mobile-answer-actions .next{width:100%}.play-screen .mobile-companion-tools{display:block;grid-row:5;grid-column:1;padding:20px;border-radius:28px;background:#fffaf4;box-shadow:0 8px 0 #e5d6c3,0 12px 25px #8879601c}.mobile-companion-tools .level-rail{margin:0;padding:0;background:transparent;box-shadow:none}.game-grid>.road-column>.prototype-note{grid-row:6!important}}


.living-city img.homepage-coco.reduced-pose{left:10%;top:55%;width:35%;height:35%;object-fit:contain;pointer-events:none;z-index:3}

.scene-context{margin:0;padding:9px 14px;background:#fff8e9;color:#31576a;font-weight:600;font-size:14px}

.destination-plaque .chapter-result{font-size:.86cqw;line-height:1.1;white-space:normal}.destination-plaque span{overflow:hidden}
.destination-number{position:relative}.destination-number .chapter-lock{position:absolute;right:-.45cqw;bottom:-.25cqw;font-size:1.05cqw;line-height:1;background:#fff2dc;border-radius:50%;padding:.15cqw;font-style:normal}

.living-city canvas.city-flight{position:absolute;left:0;top:0;width:100%;height:100%;transform-origin:0 0;pointer-events:none;z-index:5}.living-city canvas.city-flight[hidden]{display:none}
