.fan-mascot{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:18px;z-index:35;width:300px;max-width:calc(100vw - 24px);pointer-events:none;animation:mascot-enter .7s cubic-bezier(.16,1,.3,1) both}
.fan-mascot[hidden]{display:none}
.fan-mascot button{pointer-events:auto}
.mascot-play{display:block;padding:0;margin:0;border:0;background:transparent;cursor:pointer;width:128px;height:164px;min-height:0;border-radius:18px;box-shadow:none}
.mascot-play img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 7px #20345220);transform-origin:50% 90%;animation:mascot-hello 1.5s .6s ease-in-out}
.mascot-play:focus-visible{outline:3px solid #345ef1;outline-offset:4px}
.mascot-bubble{position:absolute;left:101px;bottom:122px;width:192px;padding:16px 24px 13px 15px;background:#fff;border:1px solid #dce7fa;border-radius:18px 18px 18px 4px;box-shadow:0 8px 30px #27477b18;color:#172945;pointer-events:auto}
.mascot-bubble::after{content:"";position:absolute;bottom:-8px;left:12px;width:14px;height:14px;background:#fff;border-right:1px solid #dce7fa;border-bottom:1px solid #dce7fa;transform:rotate(45deg)}
.mascot-bubble b{display:block;font:700 12px/1.5 'Be Vietnam Pro',sans-serif;letter-spacing:.2px}
.mascot-bubble span[lang]{display:block;font:700 23px/1.5 sans-serif;color:#345ef1;margin:2px 0}
.mascot-bubble small{display:block;font:400 10px/1.5 sans-serif;color:#667994}
.mascot-close{position:absolute;right:4px;top:3px;display:grid;place-items:center;width:30px;height:30px;min-height:0;padding:0;background:transparent;border:0;border-radius:8px;color:#667994;font:18px/1 sans-serif;cursor:pointer}
.mascot-close:hover{background:#eff4ff}
.fan-mascot.is-speaking .mascot-play img{animation:mascot-talk .65s ease-in-out infinite}
body:has(dialog[open]) .fan-mascot{visibility:hidden}
@keyframes mascot-enter{from{opacity:0;transform:translateX(calc(-100% - 50px))}to{opacity:1;transform:translate(0,0)}}
@keyframes mascot-hello{0%,100%{transform:rotate(0)}25%,75%{transform:rotate(-5deg)}50%{transform:rotate(4deg)}}
@keyframes mascot-talk{50%{transform:translateY(-3px) rotate(-2deg)}}
@media(max-width:700px){.fan-mascot{bottom:calc(78px + env(safe-area-inset-bottom));width:258px}.mascot-play{width:92px;height:122px}.mascot-bubble{left:75px;bottom:88px;width:178px;padding:12px 22px 11px 12px}.mascot-bubble span[lang]{font-size:21px}.mascot-bubble b{font-size:11px}}
@media(prefers-reduced-motion:reduce){.fan-mascot,.mascot-play img,.fan-mascot.is-speaking .mascot-play img{animation:none}}
@media print{.fan-mascot{display:none}}

/* Compact single welcome line, without listening instructions. */
.fan-mascot{width:326px}.mascot-bubble{width:218px}.mascot-bubble span[lang]{font-size:17px;white-space:nowrap}
@media(max-width:700px){.fan-mascot{width:278px}.mascot-bubble{width:198px}.mascot-bubble span[lang]{font-size:15px}}

.mascot-bubble span[lang]{min-height:26px}.fan-mascot.is-leaving{animation:mascot-exit 1.3s cubic-bezier(.55,0,.8,.4) forwards;pointer-events:none}.fan-mascot.is-leaving button{pointer-events:none}
@keyframes mascot-exit{to{transform:translateX(calc(-100% - 50px));opacity:0}}
@media(prefers-reduced-motion:reduce){.fan-mascot.is-leaving{animation:none;opacity:0}}

.fan-mascot.is-bowing .mascot-play img,.fan-mascot.is-bowing.is-speaking .mascot-play img{animation:none}
