/* Walk-wander copy only: animated character + visitor action buttons.
   v22fix8 canvas backing GS×DPR; v22fix7 canvas cell paint (no CSS atlas stretch); v22fix6 left atlas clean-source; v22fix4 first paint: from the very first paint the old seated figure is hidden and a static poster (idle frame 0 with
   the 10 and three stars, exact sheet cell) sits where the animated sprite will appear; the tall chair and glass desk are
   applied by CSS too. The poster is hidden once the sprite engine has painted (data-walk-ready). If the poster, chair or
   desk cannot load, walk-wander.js sets html[data-walk-off] and everything below reverts to the original page. */
html[data-walk-ready] .workstation-group .seated-character,html[data-walk-ready] .workstation-group .face-expression-layer{display:none}
.walk-wander{position:absolute;left:0;top:0;pointer-events:none;user-select:none;background-repeat:no-repeat;transform-origin:0 0}
.workstation-group .walk-wander{z-index:-1}
.walk-wander.front{z-index:0}
.walk-controls{position:absolute;right:2%;top:84.6%;z-index:30;display:flex;gap:0.9cqw;pointer-events:auto}
.walk-controls[hidden]{display:none}
.walk-btn{font:600 max(10px,2.6cqw)/1 system-ui,-apple-system,"PingFang SC",sans-serif;color:#2a5d8f;padding:1.3cqw 2.2cqw;min-height:26px;
 border:1px solid rgba(255,255,255,.85);border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(214,234,252,.62));
 box-shadow:0 2px 8px rgba(70,130,190,.18),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
 cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:opacity .2s,transform .1s}
.walk-btn:active{transform:scale(.95)}
.walk-btn:focus-visible{outline:2px solid #4a90d9;outline-offset:2px}
.walk-btn[aria-disabled="true"]{opacity:.42;cursor:default}

/* ---- v22fix4 first-paint poster (geometry = idle frame 0 at the seat; same formula as geom(): x terms in % of width, y = 22.909% of height (group scale origin) + cqw terms) ---- */
html:not([data-walk-off]) .workstation-group .seated-character{visibility:hidden}
html:not([data-walk-off]) .workstation-group .face-expression-layer{left:43.48186%;top:calc(22.90885% + 68.72985cqw);width:16.96185%;height:33.98668cqw;aspect-ratio:auto;
 transform:none;filter:none;animation:none;mask:none;-webkit-mask:none;
 background:url(assets/walk/walk-poster.webp?v=walk23) 0 0/100% 100% no-repeat}
html:not([data-walk-off]) .workstation-group .face-expression-layer>*{visibility:hidden}
html:not([data-walk-off]) .workstation-group .front-table{content:url(assets/walk/desk-glass2.webp);left:3.2124%;top:70.8003%;width:93.5752%;height:auto;max-width:none}
html:not([data-walk-off]) .workstation-group .office-chair{height:auto;transform-origin:50% 100%;transform:translate(0cqw,-14.214cqw) scale(0.7)}
html:not([data-walk-off]) .workstation-group .office-chair-contact{transform-origin:50% 100%;transform:translate(0cqw,-8.871cqw) scale(0.7)}

/* ---- v23 speech bubble + 说话/静音 buttons (DOM, crisp at any DPR) ---- */
.walk-controls[data-still] .walk-btn:not([data-act="speak"]):not([data-act="mute"]){display:none}
.walk-btn[data-act="mute"]{padding:1.3cqw 1.6cqw;min-width:26px}
.walk-bubble{position:absolute;left:0;top:0;z-index:25;pointer-events:none;max-width:min(46%,230px);padding:1.6cqw 2.4cqw;
 font:600 max(11px,2.9cqw)/1.45 system-ui,-apple-system,"PingFang SC",sans-serif;color:#1f3f66;background:rgba(255,255,255,.96);
 border:1px solid rgba(74,144,217,.35);border-radius:3cqw;box-shadow:0 3px 12px rgba(40,90,150,.18);opacity:0;transition:opacity .18s;will-change:transform}
.walk-bubble.on{opacity:1}
.walk-bubble::after{content:"";position:absolute;bottom:-6px;left:var(--tail,18px);width:11px;height:11px;background:inherit;border-right:1px solid rgba(74,144,217,.35);border-bottom:1px solid rgba(74,144,217,.35);transform:rotate(45deg)}
.walk-bubble .rest{color:transparent}
@media (prefers-reduced-motion:reduce){.walk-bubble{transition:none}}

/* ---- v25 design B: bubble pop-in, current-line highlight, sound-wave arcs (body motion is a JS transform on the sprite canvas) ---- */
.walk-bubble.pop{animation:wbPop .28s cubic-bezier(.3,1.5,.5,1) both}
@keyframes wbPop{from{scale:.82}to{scale:1}}
.walk-bubble span.hl{background:linear-gradient(transparent 62%,rgba(255,214,102,.55) 62%) no-repeat 0 0/100% 100%;animation:wbHl .35s ease-out both}
@keyframes wbHl{from{background-size:0 100%}to{background-size:100% 100%}}
.walk-waves{position:absolute;left:0;top:0;z-index:24;pointer-events:none;width:18px;height:22px;opacity:0;transition:opacity .2s}
.walk-waves.talk{opacity:1}
.walk-waves i{position:absolute;top:50%;border:2px solid rgba(74,144,217,.8);border-left-color:transparent;border-bottom-color:transparent;border-radius:50%;transform:translateY(-50%) rotate(45deg);opacity:0}
.walk-waves[data-side=l] i{transform:translateY(-50%) rotate(-135deg)}
.walk-waves i:nth-child(1){left:0;width:6px;height:6px}
.walk-waves i:nth-child(2){left:-3px;width:12px;height:12px}
.walk-waves i:nth-child(3){left:-6px;width:18px;height:18px}
.walk-waves.talk i{animation:wbWave 1s ease-in-out infinite}
.walk-waves.talk i:nth-child(2){animation-delay:.15s}
.walk-waves.talk i:nth-child(3){animation-delay:.3s}
@keyframes wbWave{0%,100%{opacity:.15}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.walk-bubble.pop,.walk-bubble span.hl{animation:none}.walk-waves{display:none}}

/* ---- v26 seated speech: mouth + blink overlays inside the sprite box (% of the idle cell; follows the engine transform) ---- */
.walk-face{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.walk-face[hidden]{display:none}
.walk-face img{position:absolute;display:block;visibility:hidden;max-width:none}
.walk-face .wf-eyes{left:23.1405%;top:24.2798%;width:33.8843%;height:5.7613%}
.walk-face .wf-mouth{left:30.2737%;top:31.4393%;width:19.8347%;height:4.9383%}
