.walking-mascot{position:fixed;z-index:30;top:42vh;left:8vw;display:block;width:72px;height:72px;margin:0;padding:0;border:0;background:transparent;cursor:grab;touch-action:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:left var(--walk-duration,2.3s) cubic-bezier(.42,0,.22,1),top var(--walk-duration,2.3s) cubic-bezier(.42,0,.22,1),transform 220ms ease;outline:0}
.walking-mascot:focus{outline:none}
.walking-mascot:focus-visible{outline:3px solid #29a9c2;outline-offset:4px;border-radius:50%}
.walking-mascot img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;transform-origin:50% 88%;animation:mascot-step 360ms ease-in-out infinite alternate}
.walking-mascot.has-walk-sprite img{display:none}
.walking-mascot-sprite{position:absolute;inset:0;display:block;background-image:url('/assets/perf/walking-mascot-sprite.png');background-repeat:no-repeat;background-size:400% 200%;background-position:0 0;pointer-events:none}
.walking-mascot.is-walking .walking-mascot-sprite{animation:mascot-walk-frames 800ms steps(1,end) infinite}
.walking-mascot.is-reacting .walking-mascot-sprite{animation:none;background-position:0 0}
.walking-mascot.is-dragging{z-index:100;cursor:grabbing;transition:none;transform:scale(1.17) rotate(-9deg)}
.walking-mascot.is-dragging .walking-mascot-sprite{animation:mascot-walk-frames 560ms steps(1,end) infinite}
.walking-mascot.is-dragging img{animation:mascot-grab 360ms ease-in-out infinite alternate}
.walking-mascot.is-reacting{animation:mascot-react 860ms cubic-bezier(.2,.9,.25,1.25)}
.walking-mascot.is-reacting::before{content:"✦  ♡  ✦";position:absolute;z-index:2;top:-15px;right:-21px;color:#eb6caa;font-size:17px;font-weight:900;letter-spacing:1px;white-space:nowrap;pointer-events:none;animation:sparkle-pop 820ms ease-out both}
.walking-mascot.is-idle{animation:mascot-idle 700ms ease-in-out}
.walking-mascot.is-popping{animation:mascot-pop 680ms cubic-bezier(.2,.9,.3,1.3)}
.mascot-speech{position:absolute;left:50%;bottom:calc(100% + 4px);width:max-content;max-width:min(220px,70vw);padding:9px 12px;border-radius:14px 14px 14px 4px;background:#fff;color:#24485a;box-shadow:0 8px 24px #21445820;font-size:12px;font-weight:700;line-height:1.6;opacity:0;transform:translate(-12px,8px) scale(.9);transition:opacity 180ms ease,transform 180ms ease;pointer-events:none}
.mascot-speech.is-visible{opacity:1;transform:translate(-12px,0) scale(1)}
.mascot-letter{position:fixed;z-index:29;display:grid;place-items:center;width:48px;height:48px;border:1px solid #f3cbdc;border-radius:50%;background:#fff8fb;color:#d85f91;box-shadow:0 6px 20px #ab5b8120;font-size:30px;line-height:1;cursor:pointer;animation:letter-shine 1.8s ease-in-out infinite;transition:transform 180ms ease,opacity 180ms ease}
.mascot-letter[hidden]{display:none}
.mascot-letter:hover{transform:scale(1.12)}
.mascot-letter:focus-visible{outline:3px solid #29a9c2;outline-offset:4px}
.mascot-letter.is-opening{animation:letter-open 680ms ease-in forwards}
@keyframes mascot-step{from{translate:0 1px;rotate:-3deg}to{translate:0 -7px;rotate:3deg}}
@keyframes mascot-walk-frames{0%{background-position:0 0}12.5%{background-position:33.3333% 0}25%{background-position:66.6667% 0}37.5%{background-position:100% 0}50%{background-position:0 100%}62.5%{background-position:33.3333% 100%}75%{background-position:66.6667% 100%}87.5%{background-position:100% 100%}}
@keyframes mascot-grab{from{translate:0 0;rotate:-8deg;scale:1.05 .94}to{translate:0 -7px;rotate:8deg;scale:.94 1.08}}
@keyframes mascot-react{0%{translate:0 0;rotate:0deg;scale:1}16%{translate:0 7px;rotate:-12deg;scale:1.2 .76}38%{translate:0 -30px;rotate:8deg;scale:.94 1.14}57%{translate:0 3px;rotate:-7deg;scale:1.12 .88}76%{translate:0 -9px;rotate:5deg;scale:.98 1.04}100%{translate:0 0;rotate:0deg;scale:1}}
@keyframes mascot-idle{0%,100%{rotate:0deg;scale:1}30%{rotate:-7deg;scale:1.08 .94}65%{rotate:7deg;scale:.96 1.06}}
@keyframes sparkle-pop{0%{opacity:0;translate:0 12px;scale:.5}28%{opacity:1;translate:6px -9px;scale:1.15}100%{opacity:0;translate:14px -24px;scale:.85}}
@keyframes mascot-pop{0%{scale:.55;translate:0 36px;opacity:0}65%{scale:1.18;translate:0 -10px;opacity:1}100%{scale:1;translate:0 0;opacity:1}}
@keyframes letter-shine{50%{box-shadow:0 0 0 8px #f8d6e540,0 6px 20px #ab5b8120}}
@keyframes letter-open{to{scale:.5;opacity:0;rotate:22deg}}
@media(max-width:600px){.walking-mascot{width:58px;height:58px}.mascot-letter{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.walking-mascot,.walking-mascot img,.walking-mascot-sprite,.mascot-letter,.walking-mascot.is-reacting::before{animation:none;transition:none}}
