.wsduck-host{position:relative}
#wsduck-companion{position:absolute!important;left:12px!important;bottom:12px!important;width:146px!important;z-index:45!important;box-sizing:border-box!important;pointer-events:none!important;font:12px/1.4 "Segoe UI","Microsoft YaHei",sans-serif!important;color:#173b32!important;text-align:left!important}
#wsduck-companion *{box-sizing:border-box!important}
#wsduck-companion [hidden]{display:none!important}
#wsduck-companion button{pointer-events:auto!important;position:static;display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;max-width:100%;min-width:0;min-height:28px;padding:4px 7px;border:1px solid #bcd6c8;border-radius:9px;background:#f7fcf7;color:#204e3d;font:12px/1.35 "Microsoft YaHei",sans-serif;box-shadow:none;cursor:pointer;white-space:normal}
#wsduck-companion button:disabled{opacity:.55;cursor:default}
#wsduck-companion button:focus-visible{outline:2px solid #337c58;outline-offset:2px}
#wsduck-companion .wsduck-character{padding:0;border:0;border-radius:13px;overflow:hidden;background:#b2afab;display:flex;width:92px;margin:0 auto}
#wsduck-companion .wsduck-sprite{display:block;flex:none;--wsduck-size:92px;width:var(--wsduck-size);height:calc(var(--wsduck-size)*1.16);background-image:url('/kids-tablet/20261025-v3/learning-companion/duck-colors.webp');background-size:calc(var(--wsduck-size)*4) auto;background-position:calc(var(--wsduck-size)*var(--wsduck-col)*-1) calc(var(--wsduck-size)*var(--wsduck-row)*-1.333333);background-repeat:no-repeat}
#wsduck-companion .wsduck-bar{display:flex;justify-content:center;gap:5px;margin-top:5px}
#wsduck-companion .wsduck-progress{font-size:10px;line-height:1.4;text-align:center;color:#173b32;background:#eff8e9e8;padding:3px;border-radius:7px;margin-top:4px}
#wsduck-companion .wsduck-reward{background:#fff1b8;color:#66480d;border-color:#d8b24e;width:100%;font-weight:600;margin-top:5px;min-height:31px}
#wsduck-companion .wsduck-bubble{width:218px;max-width:calc(100vw - 42px);padding:10px 12px;border-radius:13px 13px 13px 3px;border:1px solid #b6d3ba;background:#f5fff0f5;box-shadow:0 3px 12px #071b2520;margin-bottom:7px;overflow-wrap:anywhere;pointer-events:auto;color:#173b32}
#wsduck-companion .wsduck-bubble [lang]{font-size:14px;font-weight:600}
#wsduck-companion small{display:block;font-size:10px;line-height:1.45;color:#466454;margin-top:4px}
#wsduck-companion .wsduck-home{position:absolute;bottom:0;left:0;width:292px;max-width:calc(100vw - 40px);max-height:340px;overflow:auto;background:#f5faf3;color:#173b32;border:1px solid #adc7b1;border-radius:14px;box-shadow:0 8px 28px #081e3440;pointer-events:auto;padding:11px;z-index:2}
#wsduck-companion .wsduck-home header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0;border:0;background:none;width:auto;height:auto;min-height:0}
#wsduck-companion .wsduck-home p{font-size:11px;margin:6px 0;color:#466454}
#wsduck-companion .wsduck-pets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#wsduck-companion .wsduck-pets button{display:flex;flex-direction:column;padding:4px 2px;border-radius:9px;gap:1px;background:#fff;overflow:hidden}
#wsduck-companion .wsduck-pets .wsduck-sprite{border-radius:6px}
#wsduck-companion .wsduck-pets small{margin:0;font-size:9px}
#wsduck-companion .wsduck-home-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
#wsduck-companion.wsduck-small{width:128px!important}
#wsduck-companion.wsduck-small .wsduck-character{width:72px}
#wsduck-companion.wsduck-small .wsduck-character .wsduck-sprite{--wsduck-size:72px!important}
#wsduck-companion.wsduck-small .wsduck-bubble{width:190px;font-size:12px}
#wsduck-companion.wsduck-inline{position:relative!important;left:auto!important;bottom:auto!important;width:86px!important;float:left;margin:0 12px 7px 0}
#wsduck-companion.wsduck-inline .wsduck-bubble,#wsduck-companion.wsduck-inline .wsduck-progress,#wsduck-companion.wsduck-inline .wsduck-bar,#wsduck-companion.wsduck-inline .wsduck-reward,#wsduck-companion.wsduck-inline .wsduck-home{display:none!important}
#wsduck-companion.wsduck-speaking .wsduck-character{animation:wsduck-talk .6s ease-in-out infinite alternate}
#wsduck-companion.wsduck-hop .wsduck-character{animation:wsduck-hop .5s ease-in-out 2}
#wsduck-companion.wsduck-think .wsduck-character{animation:wsduck-think .75s ease-in-out 1}
@keyframes wsduck-talk{to{transform:rotate(1.5deg) translateY(-1px)}}
@keyframes wsduck-hop{40%{transform:translateY(-10px) rotate(-3deg)}80%{transform:translateY(-2px) rotate(2deg)}}
@keyframes wsduck-think{50%{transform:rotate(-6deg)}}
@media(max-width:700px){#wsduck-companion{left:6px!important;bottom:6px!important;width:112px!important}#wsduck-companion .wsduck-character{width:68px}#wsduck-companion .wsduck-character .wsduck-sprite{--wsduck-size:68px!important}#wsduck-companion .wsduck-bubble{width:168px;padding:7px 8px}#wsduck-companion .wsduck-bubble [lang]{font-size:12px}#wsduck-companion .wsduck-bubble small{font-size:9px}#wsduck-companion .wsduck-progress{font-size:9px}}
@media(prefers-reduced-motion:reduce){#wsduck-companion *{animation:none!important;transition:none!important}}
