
.sl-mascot{position:fixed;right:12px;bottom:0;width:min(205px,100vw);height:270px;z-index:80;user-select:none;-webkit-user-select:none;touch-action:none;cursor:grab;filter:drop-shadow(0 9px 6px #34483a24)}.sl-mascot svg{display:block;position:absolute;right:0;bottom:0;width:min(172px,100%);overflow:visible}.sl-mascot.dragging{cursor:grabbing}.sl-mascot.dragging *{cursor:grabbing!important}.sl-mascot .bodybob{transform-box:fill-box;transform-origin:center bottom;animation:bob 3.2s ease-in-out infinite}.sl-mascot .umbrella{transform-box:fill-box;transform-origin:47% 90%;animation:umbrella 3.6s ease-in-out infinite}.sl-mascot .ear-l{transform-box:fill-box;transform-origin:bottom;animation:ear 5s ease-in-out infinite}.sl-mascot .ear-r{transform-box:fill-box;transform-origin:bottom;animation:ear 5s ease-in-out .2s infinite}.sl-mascot .eye{transition:transform .08s ease-out}.sl-mascot .blink{transform-box:fill-box;transform-origin:center;animation:blink 6.5s infinite}.sl-mascot .rain{animation:rain 1.9s linear infinite}.sl-mascot .rain:nth-child(2n){animation-delay:-.9s}.sl-mascot .rain:nth-child(3n){animation-delay:-1.3s}.sl-mascot .tail{transform-box:fill-box;transform-origin:right bottom;animation:tail 3s ease-in-out infinite}.sl-mascot .sign{transform-box:fill-box;transform-origin:center bottom;animation:sign 4.4s ease-in-out infinite}.sl-mascot .message{opacity:0;transition:opacity .25s;pointer-events:none}.sl-mascot .message.visible{opacity:1}.sl-mascot .cheek{opacity:.55}.sl-mascot .hit{cursor:pointer;outline:0}.sl-mascot .hop{animation:hop .62s ease-in-out}.sl-mascot-close{position:absolute;left:5px;bottom:5px;z-index:81;background:#fff9;border:0;border-radius:50%;width:26px;height:26px;cursor:pointer;color:#63736d}.sl-mascot-open{position:fixed;right:16px;bottom:16px;display:flex;align-items:center;justify-content:center;border:0;padding:11px 16px;background:#ecf5ec;border-radius:22px;cursor:pointer;z-index:81}@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}@keyframes umbrella{0%,100%{transform:rotate(-1.8deg)}50%{transform:rotate(2deg)}}@keyframes ear{0%,93%,100%{transform:rotate(0)}95%{transform:rotate(8deg)}}@keyframes blink{0%,43%,45%,100%{transform:scaleY(1)}44%{transform:scaleY(.08)}}@keyframes tail{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(6deg)}}@keyframes sign{0%,100%{transform:rotate(-.4deg)}50%{transform:rotate(.5deg)}}@keyframes rain{0%{transform:translate(0,-14px);opacity:0}15%{opacity:.7}85%{opacity:.55}100%{transform:translate(-9px,30px);opacity:0}}@keyframes hop{0%,100%{transform:translateY(0)}35%{transform:translateY(-17px)}70%{transform:translateY(0)}}@media(max-width:600px){.sl-mascot{width:min(190px,100vw);height:250px;right:0}.sl-mascot svg{width:min(150px,100%)}}
/* 对话框使用独立 HTML 图层，尺寸不受 SVG 40% 缩放影响 */
.sl-speech{position:absolute;top:0;left:0;width:calc(100% - 30px);min-height:57px;max-height:138px;padding:11px 10px;border:2px solid #b8cdbb;border-radius:15px;background:#fffdf0;box-shadow:0 4px 14px #263d3025;color:#476654;font-size:15px;font-weight:650;line-height:1.45;text-align:center;overflow-wrap:anywhere;opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s;pointer-events:none;z-index:2}
.sl-speech.visible{opacity:1;transform:translateY(0)}.sl-speech:after{content:"";position:absolute;right:24px;bottom:-9px;width:13px;height:13px;transform:rotate(45deg);background:#fffdf0;border-right:2px solid #b8cdbb;border-bottom:2px solid #b8cdbb}

/* Mascot only on home; below modal layers, compact and self-contained. */
.sl-mascot{width:205px;height:270px;isolation:isolate;contain:layout style;}
.sl-mascot[hidden],.sl-mascot-open[hidden]{display:none!important}
.sl-mascot svg{pointer-events:visiblePainted}
.sl-mascot .sl-speech{width:205px;max-height:unset;min-height:65px;overflow:visible;font-size:15px;line-height:1.5}
@media(max-width:650px){.sl-mascot{width:160px;height:215px}.sl-mascot svg{width:136px}.sl-mascot .sl-speech{width:160px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.sl-mascot .bodybob,.sl-mascot .umbrella,.sl-mascot .rain{animation:none}}

.sl-mascot.sl-tight{opacity:.85}

/* Reopen control: transparent in light and dark themes. */
.sl-mascot-open,
.sl-mascot-open:hover,
.sl-mascot-open:focus,
.sl-mascot-open:active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  color: #808080 !important;
}
.sl-mascot-open { font: inherit; }
.sl-mascot-open:focus-visible { outline: 2px solid #808080; outline-offset: 2px; }

/* Close control: only the cross, no circular background or chrome. */
.sl-mascot-close,
.sl-mascot-close:hover,
.sl-mascot-close:active,
.sl-mascot-close:focus {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #808080 !important;
  padding: 0 !important;
  font-size: 22px;
  line-height: 1;
}
.sl-mascot-close:focus-visible { outline: 2px solid #808080; outline-offset: 2px; }
