/* Compact opt-in chat: never participates in the battle layout. */
.bsg-livechat{--chat-bg:rgba(7,20,34,.985);--chat-border:rgba(127,170,198,.22);position:fixed;z-index:10020;right:18px;bottom:76px;width:min(340px,calc(100vw - 28px));max-height:min(440px,62vh);display:flex;flex-direction:column;border:1px solid var(--chat-border);border-radius:16px;overflow:hidden;background:var(--chat-bg);color:#edf7ff;box-shadow:0 18px 55px rgba(0,0,0,.42);font:inherit;text-align:start;direction:inherit;backdrop-filter:blur(16px)}
.bsg-livechat[hidden],.bsg-chat-launcher[hidden]{display:none!important}
.bsg-livechat__head{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;background:linear-gradient(120deg,rgba(28,211,196,.12),rgba(49,102,159,.12));border-bottom:1px solid var(--chat-border)}
.bsg-livechat__titles{display:flex;flex-direction:column;gap:3px}.bsg-livechat__titles strong{font-size:13px}.bsg-livechat__titles small{font-size:10px;color:#91aabd}
.bsg-livechat__collapse{width:30px;height:30px;border:1px solid var(--chat-border);border-radius:9px;background:rgba(255,255,255,.05);color:inherit;font-size:20px;cursor:pointer}
.bsg-livechat__content{display:flex;min-height:0;flex-direction:column;padding:9px}.bsg-livechat__log{display:flex;flex-direction:column;gap:7px;min-height:65px;max-height:280px;overflow:auto;padding:3px 2px 9px;overscroll-behavior:contain}.bsg-livechat__empty{margin:auto;color:#91aabd;font-size:12px;padding:14px}
.bsg-livechat__msg{position:relative;align-self:flex-start;max-width:88%;min-width:90px;padding:8px 10px;border:1px solid rgba(130,170,195,.14);border-radius:12px 12px 12px 4px;background:rgba(255,255,255,.055);overflow-wrap:anywhere}.bsg-livechat__msg.is-mine{align-self:flex-end;border-color:rgba(25,211,197,.18);background:rgba(25,211,197,.11);border-radius:12px 12px 4px 12px}.bsg-livechat__meta{font-size:10px;color:#91aabd;margin-bottom:4px}.bsg-livechat__msg p{font-size:12px;line-height:1.5;margin:0;white-space:pre-wrap}.bsg-livechat__report{display:block;margin-top:4px;padding:0;border:0;background:none;color:#92a8ba;font-size:10px;cursor:pointer}
.bsg-livechat__form{display:flex;flex:0 0 auto;gap:7px;padding-top:8px;border-top:1px solid var(--chat-border)}.bsg-livechat__input{min-width:0;flex:1;border:1px solid var(--chat-border);border-radius:10px;padding:9px 10px;background:#0b1c2b;color:#f5fbff;font:inherit;font-size:14px;outline:none}.bsg-livechat__input:focus{border-color:#25cdbf;box-shadow:0 0 0 2px rgba(37,205,191,.12)}.bsg-livechat__send{border:0;border-radius:10px;padding:0 13px;background:#19bdae;color:#042026;font-weight:700;cursor:pointer}.bsg-livechat__send:disabled{opacity:.55;cursor:wait}
.bsg-chat-launcher{position:fixed;z-index:10019;right:18px;bottom:18px;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid rgba(101,207,218,.35);border-radius:50%;background:linear-gradient(135deg,#11354a,#0b1c2b);color:#eaffff;font-size:20px;box-shadow:0 8px 26px rgba(0,0,0,.35);cursor:pointer}.bsg-chat-launcher:hover{border-color:#39cfc3;transform:translateY(-1px)}
html[dir="rtl"] .bsg-livechat,html[dir="rtl"] .bsg-chat-launcher{right:auto;left:18px}
@media(max-width:600px){.bsg-livechat{right:10px;left:10px;bottom:66px;width:auto;max-height:52vh;border-radius:14px}.bsg-livechat__log{max-height:30vh}.bsg-chat-launcher{right:12px;left:auto;bottom:12px;width:42px;height:42px}html[dir="rtl"] .bsg-chat-launcher{left:12px;right:auto}}
/* 3.4: unread indicator, quick emotes, and transient in-match reactions */
.bsg-chat-launcher{position:fixed;overflow:visible}.bsg-chat-badge{position:absolute;top:-4px;right:-3px;min-width:19px;height:19px;padding:0 4px;display:flex;align-items:center;justify-content:center;border:2px solid #071421;border-radius:999px;background:#ef3340;color:#fff;font:700 10px/1 system-ui;box-shadow:0 3px 10px rgba(239,51,64,.45)}.bsg-chat-badge[hidden]{display:none!important}.bsg-chat-launcher.has-unread{border-color:#ef3340;box-shadow:0 0 0 3px rgba(239,51,64,.13),0 8px 26px rgba(0,0,0,.35)}
.bsg-livechat__reactions{display:flex;flex-wrap:wrap;gap:4px;padding:2px 0 8px;border-bottom:1px solid var(--chat-border);margin-bottom:7px}.bsg-livechat__reaction{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid rgba(130,170,195,.14);border-radius:9px;background:rgba(255,255,255,.05);font-size:16px;cursor:pointer;transition:transform .12s,background .12s}.bsg-livechat__reaction:hover{transform:translateY(-2px);background:rgba(25,211,197,.13)}.bsg-livechat__reaction:disabled{opacity:.45}.bsg-livechat__reaction.is-error{border-color:#ef3340}
.bsg-reaction-float{position:fixed;z-index:10018;top:17%;left:50%;transform:translateX(-50%);pointer-events:none;font-size:clamp(34px,5vw,54px);line-height:1;padding:12px 16px;border-radius:24px;background:rgba(7,20,34,.72);border:1px solid rgba(255,255,255,.14);box-shadow:0 12px 36px rgba(0,0,0,.24);animation:bsg-reaction-pop 1.7s cubic-bezier(.2,.8,.2,1) both;backdrop-filter:blur(8px)}
@keyframes bsg-reaction-pop{0%{opacity:0;transform:translate(-50%,12px) scale(.55)}18%{opacity:1;transform:translate(-50%,0) scale(1.12)}30%{transform:translate(-50%,0) scale(1)}78%{opacity:1}100%{opacity:0;transform:translate(-50%,-28px) scale(.94)}}
html[dir="rtl"] .bsg-chat-badge{right:auto;left:-3px}@media(prefers-reduced-motion:reduce){.bsg-reaction-float{animation:none;opacity:1}.bsg-livechat__reaction{transition:none}}

.bsg-emote-launcher{position:fixed;z-index:10019;right:21px;bottom:72px;width:40px;height:40px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:linear-gradient(135deg,#253a4b,#102234);color:#fff;font-size:20px;box-shadow:0 7px 22px rgba(0,0,0,.3);cursor:pointer}.bsg-emote-launcher:hover{transform:translateY(-1px);border-color:#f5c75e}.bsg-emote-popover{position:fixed;z-index:10021;right:18px;bottom:120px;display:grid;grid-template-columns:repeat(5,32px);gap:5px;padding:8px;border:1px solid var(--chat-border);border-radius:14px;background:rgba(7,20,34,.97);box-shadow:0 12px 32px rgba(0,0,0,.36);backdrop-filter:blur(12px)}.bsg-emote-popover[hidden]{display:none!important}.bsg-emote-popover .bsg-livechat__reaction{width:32px;height:32px}.bsg-emote-popover .bsg-livechat__reaction.is-error{border-color:#ef3340}html[dir="rtl"] .bsg-emote-launcher,html[dir="rtl"] .bsg-emote-popover{right:auto;left:21px}html[dir="rtl"] .bsg-emote-popover{left:18px}@media(max-width:600px){.bsg-emote-launcher{right:13px;bottom:66px;width:38px;height:38px}html[dir="rtl"] .bsg-emote-launcher{left:13px;right:auto}.bsg-emote-popover{right:10px;bottom:110px}html[dir="rtl"] .bsg-emote-popover{left:10px;right:auto}}
