/* v07: retained v06 snow, wrist greeting and pose motion. */
.hamo-greeting{display:block;position:relative;width:100%;max-width:400px;padding:0;border:0;background:none;color:#e4f2ff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hamo-character{display:block;width:100%;height:350px;overflow:visible;filter:drop-shadow(0 10px 10px #294d6b18)}
.hamo-body{transform-box:view-box;transform-origin:600px 1000px}
.hamo-hand{transform-box:view-box;transform-origin:821px 630px}
.hamo-greeting-hint{display:block;font-size:.875rem;line-height:1.6;text-align:center;text-decoration:underline;text-underline-offset:4px;margin-top:-13px;opacity:.95;background:transparent;display:table;margin-inline:auto;padding-inline:7px}
.hamo-greeting:focus-visible{outline:3px solid #f5d98c;outline-offset:5px;border-radius:20px}
@keyframes hamo-hand-wave{0%,9%,100%{transform:rotate(0)}20%{transform:rotate(-14deg)}32%{transform:rotate(11deg)}44%{transform:rotate(-12deg)}56%{transform:rotate(8deg)}68%{transform:rotate(-7deg)}80%{transform:rotate(4deg)}91%{transform:rotate(-1deg)}}
@keyframes hamo-soft-greeting{0%,100%{transform:translateY(0) rotate(0)}22%{transform:translateY(-3px) rotate(-.35deg)}48%{transform:translateY(-2px) rotate(.3deg)}72%{transform:translateY(-1px) rotate(-.15deg)}}
@keyframes hamo-cheer{0%,100%{transform:translateY(0) rotate(0)}20%{transform:translateY(-4px) rotate(-2deg)}40%{transform:translateY(0) rotate(2deg)}62%{transform:translateY(-3px) rotate(-1.5deg)}80%{transform:translateY(0) rotate(1deg)}}
@keyframes hamo-nod{0%,100%{transform:rotate(0) translateY(0)}35%{transform:rotate(1.5deg) translateY(2px)}65%{transform:rotate(-.5deg) translateY(0)}}
@keyframes hamo-thanks{0%,100%{transform:scale(1) rotate(0)}30%{transform:scale(1.025) rotate(-2deg)}60%{transform:scale(1.015) rotate(1deg)}}
@media(prefers-reduced-motion:no-preference){
.hamo-greeting.is-greeting .hamo-hand{animation:hamo-hand-wave 5s cubic-bezier(.45,0,.55,1) both}
.hamo-greeting.is-greeting .hamo-body{animation:hamo-soft-greeting 5s ease-in-out both}
.hamo-pose.pose-visible{transform-origin:50% 85%;animation:hamo-nod 2.8s ease-in-out 1}
.hamo-pose.pose-broadcast.pose-visible,.hamo-pose.pose-success.pose-visible{animation-name:hamo-cheer}
.hamo-pose.pose-survey.pose-visible{animation-name:hamo-thanks}
}
.hamo-resting .hamo-hand,.hamo-resting .hamo-body{animation-play-state:paused!important}
.motion-paused .hamo-hand,.motion-paused .hamo-body,.motion-paused .hamo-pose{animation:none!important;transform:none!important}
#winter-snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:45;contain:strict}
.motion-paused #winter-snow{visibility:hidden}
#winter-motion-toggle{background:#fff;border:1px solid #d5ccb5;border-radius:8px;padding:6px 11px;min-height:36px;font-size:.8125rem;line-height:1.3;color:#24516f;white-space:nowrap}
#winter-motion-toggle:hover{background:#f4fbff}
#winter-motion-toggle:disabled{opacity:.8;cursor:default}

/* Placement for the v06 mascots retained within the restored v05 layout. */
.demo-bar .shell-width{align-items:center}
.page-head{display:flex;flex-direction:row;align-items:center;gap:20px;min-height:132px}
.page-title-copy{flex:1;min-width:0}
.page-mascot{flex:none;width:138px;height:132px}
.page-mascot .heading-art{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 6px #254c7010)}
@media(max-width:760px){
.hero-art{height:235px;margin-top:10px;justify-content:center}
.hamo-greeting{width:280px;max-width:100%}
.hamo-character{height:248px}
.hamo-greeting-hint{margin-top:-15px;font-size:.8125rem;padding:0 7px}
.page-head{gap:8px;min-height:110px}
.page-head h1{font-size:1.7rem}
.page-mascot{width:98px;height:112px}
.page-head .page-subtitle{font-size:.94rem}
.demo-bar .shell-width>span{max-width:calc(100% - 91px);font-size:.8125rem}
#winter-motion-toggle{font-size:.75rem;min-height:32px;padding:5px 9px}
}
@media(max-width:370px){.hero-art{height:220px}.hamo-character{height:230px}.page-mascot{width:80px}.page-head h1{font-size:1.5rem}}
@media(prefers-reduced-motion:reduce){#winter-snow{display:none}.hamo-hand,.hamo-body,.hamo-pose{animation:none!important;transform:none!important}}
@media print{#winter-snow,#winter-motion-toggle,.hamo-greeting-hint{display:none!important}.hamo-hand,.hamo-body,.hamo-pose{animation:none!important;transform:none!important}}
