/* KARTA v1.4.562 — stable interaction button outside the clipped stadium shell. */
#karta-stadium-test > .karta-interaction-portal-v562 {
 display:flex !important;
 position:fixed !important;
 right:max(18px,env(safe-area-inset-right)) !important;
 bottom:max(16px,env(safe-area-inset-bottom)) !important;
 top:auto !important;left:auto !important;
 width:auto !important;height:auto !important;
 z-index:2147482000 !important;
 overflow:visible !important;
 isolation:isolate !important;
 padding:0 !important;margin:0 !important;
 pointer-events:none !important;
 transform:none !important;
}
#karta-stadium-test > .karta-interaction-portal-v562 > .karta-portal-interact-v562 {
 display:inline-flex !important;
 align-items:center !important;justify-content:center !important;
 gap:10px !important;
 width:clamp(124px,9.5vw,166px) !important;
 min-height:66px !important;
 padding:10px 16px !important;
 border:1px solid #bda374 !important;
 border-radius:13px !important;
 background:linear-gradient(155deg,#1e2231,#101522) !important;
 color:#f7dfad !important;
 box-shadow:0 9px 27px #000c !important;
 font:800 17px Cairo,Tahoma,Arial,sans-serif !important;
 text-align:center !important;
 cursor:pointer !important;
 pointer-events:auto !important;
 touch-action:manipulation !important;
 text-indent:0 !important;white-space:nowrap !important;
}
#karta-stadium-test > .karta-interaction-portal-v562 > .karta-portal-interact-v562 svg{
 width:24px !important;height:24px !important;flex:none !important;
}
#karta-stadium-test > .karta-interaction-portal-v562 > .karta-portal-interact-v562[aria-expanded="true"] {
 background:#332b3b !important;border-color:#e4c47e !important;
}
#karta-stadium-test > .karta-interaction-portal-v562 > .karta-portal-interact-v562:focus-visible{
 outline:3px solid #eed694 !important;outline-offset:3px !important;
}
/* Hide only the obsolete duplicate desktop launcher. */
#karta-stadium-test .stadium-layout > .karta-desktop-interact-v561{
 display:none !important;
}
/* The mobile action lives in the existing game toolbar, never in a fixed overlay. */
#karta-stadium-test.karta-mobile-ui-v456 > .karta-interaction-portal-v562{
 display:none !important;
}
#karta-stadium-test.karta-mobile-ui-v456 .stadium-layout .stadium-bottom-tools > .karta-bottom-interact-v561{
 display:flex !important;visibility:visible !important;opacity:1 !important;
 pointer-events:auto !important;
}

/* On desktop the original dock button must not appear as a second action. */
#karta-stadium-test:not(.karta-mobile-ui-v456) .stadium-layout .stadium-bottom-tools > .karta-bottom-interact-v561{
 display:none !important;
}

/* KARTA 1.4.568 — pre-match lobby chat avatar isolation and consistent RTL rows. */
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat .live-chat-list{
 min-width:0!important;width:100%!important;overflow-x:hidden!important;box-sizing:border-box!important;
}
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat article.karta-chat-message-v443{
 display:flex!important;flex-direction:row!important;direction:rtl!important;align-items:flex-start!important;justify-content:flex-start!important;
 gap:9px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;
 padding:8px 5px!important;margin:0!important;text-align:right!important;overflow:hidden!important;
 background:transparent!important;border-bottom:1px solid rgba(92,136,168,.2)!important;
}
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat .karta-chat-avatar-v443{
 display:flex!important;position:relative!important;align-items:center!important;justify-content:center!important;
 flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
 max-width:34px!important;max-height:34px!important;box-sizing:border-box!important;margin:0!important;padding:0!important;
 background:#253645!important;border:1px solid var(--chat-avatar-color,#23d5a3)!important;border-radius:50%!important;
 overflow:hidden!important;isolation:isolate!important;
}
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat .karta-chat-avatar-v443 .wof-avatar-inline,
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat .karta-chat-avatar-v443 .bot-avatar{
 display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 100%!important;
 position:static!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:50%!important;overflow:hidden!important;box-sizing:border-box!important;
}
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat .karta-chat-avatar-v443 :is(svg,img,canvas){
 display:block!important;position:static!important;flex:none!important;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 max-width:100%!important;max-height:100%!important;object-fit:contain!important;box-sizing:border-box!important;
}
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat .karta-chat-avatar-v443 .karta-chat-avatar-fallback{
 display:grid!important;place-items:center!important;width:100%!important;height:100%!important;color:#fff!important;
 font:800 15px Cairo,Tahoma,sans-serif!important;
}
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat .karta-chat-copy-v443{
 display:flex!important;flex:1 1 0!important;flex-direction:column!important;min-width:0!important;max-width:100%!important;
 gap:3px!important;margin:0!important;padding:0!important;direction:rtl!important;text-align:right!important;
 overflow-wrap:anywhere!important;word-break:break-word!important;
}
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat .karta-chat-copy-v443 b{
 display:block!important;margin:0!important;font:800 11px/1.5 Cairo,Tahoma,sans-serif!important;color:#78ebc0!important;
 overflow-wrap:anywhere!important;unicode-bidi:plaintext!important;
}
#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test#karta-stadium-test .karta-lobby .kls-lobby-chat .karta-chat-copy-v443 p{
 display:block!important;margin:0!important;padding:0!important;max-width:100%!important;
 font:600 12px/1.65 Cairo,Tahoma,sans-serif!important;color:#eff6ff!important;
 white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important;
}
