/* BIEC Mr.B — original blue / white / gold character. No picture swapping. */
#mrbBlue { display:none; position:fixed; right:12px; bottom:max(10px, env(safe-area-inset-bottom)); width:134px; height:166px; z-index:99990; isolation:isolate; pointer-events:none; contain:layout style; }
#mrbBlue * { box-sizing:border-box; }
body.mrb-blue-ready #mrbBlue { display:block; }
body.mrb-blue-ready #mrbLaunch { display:none!important; }
#mrbBlue .mrb-blue-stage { position:absolute; left:0; top:0; right:0; bottom:32px; pointer-events:none; }
#mrbBlue .mrb-blue-actor { position:absolute; inset:0; z-index:2; background:transparent; border:0; padding:0; display:block; width:100%; height:100%; cursor:pointer; pointer-events:auto; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
#mrbBlue .mrb-blue-rig { position:absolute; inset:0; display:block; transform-origin:54% 52%; animation:mrbBlueBreathe 4.2s ease-in-out infinite; will-change:transform; }
#mrbBlue .mrb-blue-body, #mrbBlue .mrb-blue-cape { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:center center; display:block; pointer-events:none; user-select:none; }
#mrbBlue .mrb-blue-cape { transform-origin:77% 42%; animation:mrbBlueCapeFlutter 3.4s ease-in-out infinite; will-change:transform; }
#mrbBlue .mrb-blue-shadow { position:absolute; z-index:0; left:17%; right:14%; bottom:7px; height:12px; opacity:.45; border-radius:50%; background:radial-gradient(ellipse, rgba(14,76,158,.48), rgba(14,76,158,0) 70%); filter:blur(4px); animation:mrbBlueShadow 4.2s ease-in-out infinite; }
#mrbBlue .mrb-blue-halo { position:absolute; z-index:0; left:19%; bottom:7px; width:64%; height:21px; border:1.5px solid rgba(52,163,255,.45); border-radius:50%; opacity:.3; box-shadow:0 0 10px rgba(37,144,251,.4); animation:mrbBlueShadow 4.2s ease-in-out infinite; }
#mrbBlue .mrb-blue-glint { position:absolute; top:22%; left:48%; width:40%; height:18%; background:radial-gradient(ellipse, rgba(78,193,255,.15),transparent 70%); opacity:.3; filter:blur(7px); animation:mrbBlueEyesPulse 3.7s ease-in-out infinite; pointer-events:none; mix-blend-mode:screen; }
#mrbBlue .mrb-blue-bubble { position:absolute; right:80%; top:7%; z-index:4; min-width:94px; max-width:155px; padding:8px 10px; background:rgba(255,255,255,.98); border:1px solid #edc66f; border-radius:14px 14px 4px 14px; box-shadow:0 7px 20px rgba(7,38,73,.16); color:#153e65; text-align:center; line-height:1.3; font-size:11px; font-weight:800; opacity:0; transform:translateY(6px) scale(.94); transition:opacity .23s ease,transform .23s ease; pointer-events:none; }
#mrbBlue .mrb-blue-bubble.is-speaking { opacity:1; transform:translateY(0) scale(1); }
#mrbBlue .mrb-blue-chat { position:absolute; bottom:0; left:50%; transform:translateX(-50%); z-index:5; display:flex; justify-content:center; align-items:center; gap:7px; min-width:105px; padding:0 12px; height:30px; border-radius:99px; border:1.5px solid #efc771; background:linear-gradient(135deg,#0b315b,#156ea8); color:#fff; box-shadow:0 7px 20px rgba(5,54,106,.27); cursor:pointer; font-weight:850; font-size:11px; white-space:nowrap; pointer-events:auto; }
#mrbBlue .mrb-blue-dot { height:7px; width:7px; background:#76f1aa; border-radius:50%; box-shadow:0 0 8px #79ffbb; }
#mrbBlue .mrb-blue-actor:focus-visible, #mrbBlue .mrb-blue-chat:focus-visible { outline:3px solid #f4bc63; outline-offset:3px; border-radius:16px; }
#mrbBlue .mrb-blue-actor.is-greeting .mrb-blue-rig { animation:mrbBlueGreet .56s cubic-bezier(.2,.7,.25,1) 1; }
body.mrb-blue-chat-open #mrbBlue { opacity:0; visibility:hidden; pointer-events:none; }
body.mrb-blue-ready .mrb-head .mrb-avatar { color:transparent!important; font-size:0!important; background:#eff8ff url('mrb-blue-original.webp') center / contain no-repeat!important; border:2px solid #e5bd65; }
@keyframes mrbBlueBreathe { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-8px) rotate(1.4deg)} }
@keyframes mrbBlueCapeFlutter { 0%,100%{transform:rotate(-1deg) skewY(0deg) translateX(0)} 33%{transform:rotate(1.9deg) skewY(-1.3deg) translateX(-2px)} 70%{transform:rotate(-1.8deg) skewY(1.4deg) translateX(1px)} }
@keyframes mrbBlueShadow { 0%,100%{transform:scaleX(.9);opacity:.42} 50%{transform:scaleX(1.08);opacity:.2} }
@keyframes mrbBlueEyesPulse { 0%,100%{opacity:.2} 50%{opacity:.62} }
@keyframes mrbBlueGreet { 0%{transform:translateY(0) rotate(0)} 45%{transform:translateY(-17px) rotate(8deg)} 75%{transform:translateY(3px) rotate(-3deg)} 100%{transform:translateY(0) rotate(0)} }
@media(max-width:640px) { #mrbBlue { width:101px; height:131px; right:6px; bottom:max(7px,env(safe-area-inset-bottom)); } #mrbBlue .mrb-blue-stage { bottom:26px; } #mrbBlue .mrb-blue-chat { height:26px; font-size:10px; min-width:92px; padding:0 9px; } #mrbBlue .mrb-blue-bubble { right:83%; top:1%; min-width:80px; max-width:110px; font-size:10px; padding:6px 8px; } }
@media(max-width:370px) { #mrbBlue { width:92px; height:122px; right:3px; } #mrbBlue .mrb-blue-bubble { right:86%; min-width:78px; font-size:9px; } }
@media(prefers-reduced-motion:reduce) { #mrbBlue .mrb-blue-rig, #mrbBlue .mrb-blue-cape, #mrbBlue .mrb-blue-shadow, #mrbBlue .mrb-blue-halo, #mrbBlue .mrb-blue-glint { animation:none!important; } #mrbBlue .mrb-blue-bubble { transition:none; } }
