/* Local 3D character artwork, with small breathing/weight shifts and long rests. */
.panda-companion{position:relative;display:block;aspect-ratio:1;overflow:visible;--panda-companion-delay:-.7s}
.panda-companion__frame{position:relative;display:block;width:100%;height:100%;aspect-ratio:1;overflow:hidden;transform-origin:50% 92%;animation:panda-companion-settle 9.8s ease-in-out infinite;animation-delay:var(--panda-companion-delay);will-change:auto}
.panda-companion__atlas{position:absolute;display:block;top:0;left:0;width:300%!important;max-width:none!important;height:100%!important;object-fit:fill;transform:translateX(calc(var(--panda-pose) * -100% / 3));pointer-events:none;user-select:none}
.panda-companion--purple{--panda-companion-delay:-3.4s}
.panda-companion--yellow{--panda-companion-delay:-5.2s}
.campus-companion .panda-companion{--panda-companion-delay:-2.6s}
.panda-companion--focus .panda-companion__frame{animation:panda-companion-think 13s ease-in-out infinite;animation-delay:var(--panda-companion-delay)}
.panda-companion--celebrate .panda-companion__frame{animation:panda-companion-cheer 8.6s ease-in-out infinite;animation-delay:var(--panda-companion-delay)}
.panda-companion__fallback{display:none;width:100%;height:100%}
.panda-companion--fallback .panda-companion__frame{display:none}
.panda-companion--fallback .panda-companion__fallback{display:grid;place-items:center}
.panda-companion__fallback>.panda-character{width:88%;max-height:100%;height:auto}
@keyframes panda-companion-settle{0%,16%,100%{transform:translateY(0) rotate(0) scale(1)}33%,43%{transform:translateY(-1px) rotate(.65deg) scale(1.006,1.01)}59%,70%{transform:translateY(-.3px) rotate(-.45deg) scale(1.002,1.005)}86%{transform:translateY(0) rotate(.1deg) scale(1)}}
@keyframes panda-companion-think{0%,22%,100%{transform:translateY(0) rotate(0) scale(1)}39%,54%{transform:translateY(-.5px) rotate(.65deg) scale(1.004,1.009)}72%,82%{transform:translateY(0) rotate(-.3deg) scale(1.002,1.004)}}
@keyframes panda-companion-cheer{0%,12%,40%,100%{transform:translateY(0) rotate(0) scale(1)}17%{transform:translateY(.9px) scale(1.012,.992)}23%{transform:translateY(-4px) rotate(-1.2deg) scale(.998,1.012)}28%{transform:translateY(.4px) rotate(.5deg) scale(1.009,.996)}33%{transform:translateY(-1.7px) rotate(.65deg) scale(1,1.005)}}
body[data-page-hidden="true"] .panda-companion *,body.page-hidden .panda-companion *,.paused .panda-companion *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.panda-companion,.panda-companion *{animation:none!important;transition:none!important}}

/* Reference-family cutouts: keep the face untouched and move the whole figure gently. */
.panda-mascot{position:relative;display:block;aspect-ratio:1;isolation:isolate;overflow:visible;line-height:0}
.campus-companion>.panda-mascot{--panda-character-size:156px}
.map-decoration.map-character>.panda-mascot{margin:0;padding:0;max-width:100%;background:transparent;border-radius:0;white-space:normal}
.map-character .panda-mascot__fallback{margin:0;padding:0;background-color:transparent;border-radius:50%;white-space:normal}
.panda-mascot__image{position:relative;z-index:1;display:block;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain;filter:none;transform-origin:50% 90%;animation:maimai-reference-breathe 7.8s ease-in-out infinite;pointer-events:none;user-select:none}
.panda-mascot__fallback{display:none;width:100%;height:100%;aspect-ratio:1;border-radius:50%;background-size:410.695187% 273.796791%;background-position:10.499139% 18.461538%;background-repeat:no-repeat}
.panda-mascot--fallback>.panda-mascot__image{display:none}
.panda-mascot--fallback>.panda-mascot__fallback{display:block}
.panda-mascot--custom-accent:before{content:'';position:absolute;z-index:0;left:20%;right:20%;bottom:2%;height:8%;border-radius:50%;background:var(--panda-mascot-accent);opacity:.18;filter:blur(7px);pointer-events:none}
@keyframes maimai-reference-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-.3px) scale(1.003)}}
body[data-page-hidden="true"] .panda-mascot *,body.page-hidden .panda-mascot *,.paused .panda-mascot *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.panda-mascot,.panda-mascot *{animation:none!important;transition:none!important}}

.panda-editor__family-note{margin:-12px 0 18px;color:#927d94;font-size:12px;line-height:1.6}
@media(max-width:620px){.panda-editor__family-note{font-size:11px;margin:-3px 0 12px}}
