#online .oa-lobby{max-width:1000px;margin:auto;display:grid;gap:14px;padding:8px}#online .oa-lobby header{position:static;background:none;padding:0;display:block}#online .oa-lobby h2{font-size:clamp(24px,4vw,38px);color:#d1f57c;margin:4px 0}#online .oa-lobby h3{margin:0 0 8px;color:#d1f57c}#online .oa-lobby p{margin:4px 0 10px}#online .oa-lobby-card{background:#19251b;border:1px solid #536e38;border-radius:14px;padding:16px;min-width:0}#online .oa-lobby-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#online .oa-lobby label{display:block;margin:6px 0 12px}#online .oa-lobby input,#online .oa-lobby select{width:100%;box-sizing:border-box}#online .oa-lobby button{width:100%;margin:4px 0}#online .oa-lobby-tournament{background:#25311c}#online .oa-lobby-tv{text-align:center;color:#d1f57c;padding:8px}#online .oa-lobby [hidden]{display:none!important}@media(max-width:650px){#online .oa-lobby>.oa-lobby-grid{grid-template-columns:1fr}}
#oa-chat-toggle{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));right:16px;z-index:950;background:#caff49;color:#101809;border-radius:999px;padding:10px 14px;font-weight:bold}#oa-chat{position:fixed;bottom:calc(65px + env(safe-area-inset-bottom));right:12px;width:min(340px,calc(100vw - 24px));max-height:65dvh;overflow:auto;z-index:951;background:#142014;color:#eef5e7;border:1px solid #769b3d;border-radius:14px;padding:12px;box-shadow:0 8px 30px #0009;box-sizing:border-box}#oa-chat[hidden],#oa-chat-toggle[hidden],#oa-chat-reaction[hidden]{display:none!important}#oa-chat button{padding:6px;margin:2px}#oa-chat-log{max-height:145px;overflow:auto;overflow-wrap:anywhere;font-size:14px}#oa-chat input{width:100%;box-sizing:border-box}#oa-chat-reaction{position:fixed;top:18%;right:12px;z-index:950;background:#243719;padding:10px;border-radius:12px;font-size:24px;pointer-events:none}

/* Compact match toolbar chat; panel stays inside the visible viewport. */
#online-game .oa-chat-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}#online-game .oa-online-actions{flex-wrap:wrap;gap:6px}#oa-chat-toggle{position:static;inset:auto;z-index:auto;background:transparent;border:1px solid #769b3d;color:#caff49;border-radius:10px;padding:7px 10px;white-space:nowrap;touch-action:manipulation}#oa-chat-toggle[data-unread="true"]{background:#caff49;color:#101809}#oa-chat{bottom:auto;left:max(8px,env(safe-area-inset-left));right:auto;top:12px;width:min(340px,calc(100vw - 24px));max-height:calc(100vh - 24px);z-index:2147483000;overscroll-behavior:contain;touch-action:auto}#oa-chat input{font-size:16px;min-width:0}#oa-chat form{display:flex;gap:4px;align-items:center}#oa-chat form input{flex:1;width:0}#oa-chat [data-quick]{display:flex;flex-wrap:wrap;gap:3px}#oa-chat-reaction{z-index:2147482999}

/* Chat dock: independent of sidebar styles, centered above the keyboard. */
#online-game #oa-chat-toggle{position:static!important;inset:auto!important;transform:none!important;display:inline-flex;align-items:center;width:auto!important;max-width:100%;flex:0 0 auto;min-height:36px}
#oa-chat-toggle[hidden],#oa-chat[hidden]{display:none!important}
body #oa-chat:not([hidden]){display:flex!important;flex-direction:column;gap:4px;position:fixed!important;inset:auto!important;left:var(--chat-x,50%)!important;bottom:calc(var(--chat-bottom,0px) + max(8px,env(safe-area-inset-bottom)))!important;transform:translateX(-50%)!important;width:min(480px,var(--chat-width,calc(100vw - 16px)))!important;max-height:var(--chat-height,48dvh)!important;min-height:0!important;overflow:auto!important;margin:0!important;padding:8px!important;z-index:2147483000!important;background:#142014;color:#eef5e7;box-sizing:border-box}
#oa-chat-score{font-size:12px;color:#d7ef83;overflow-wrap:anywhere;flex-shrink:0}
#oa-chat-log{min-height:24px;max-height:90px;flex:1 1 auto;overflow:auto}
#oa-chat form,#oa-chat [data-quick]{flex-shrink:0}#oa-chat [data-quick]{flex-wrap:nowrap;overflow-x:auto}#oa-chat [data-quick] button{flex-shrink:0;white-space:nowrap}#oa-chat form input{font-size:16px!important}#oa-chat button{min-height:32px}#oa-chat small{font-size:11px}

/* Dedicated chat mount, outside wrapping match toolbar. */
#online-game #oa-chat-mount{display:flex!important;justify-content:center;min-width:0;width:100%;margin:3px 0;position:relative;z-index:5} #online-game #oa-chat-mount:has(button[hidden]){display:none!important} #online-game #oa-chat-mount #oa-chat-toggle:not([hidden]){display:inline-flex!important;position:static!important;float:none!important;inset:auto!important;transform:none!important;margin:0!important;padding:5px 12px!important;min-height:34px!important;max-width:100%!important;color:#caff49;background:#142014;border:1px solid #769b3d} #online-game #oa-chat-mount #oa-chat-toggle[data-unread=true]{background:#caff49;color:#101809} 

/* Smart Match Chat V4 */
body #oa-chat:not([hidden]){left:var(--chat-left,8px)!important;top:var(--chat-top,8px)!important;bottom:auto!important;transform:none!important;width:var(--chat-width,520px)!important;height:var(--chat-height,350px)!important;max-height:none!important;padding:10px!important;gap:7px;font-size:17px;overflow:auto!important}#oa-chat [data-chat-header]{display:flex;align-items:center;gap:4px;touch-action:none;cursor:move;flex-shrink:0}#oa-chat [data-chat-header] strong{flex:1;color:#caff39;font-size:16px}#oa-chat-log{font-size:17px;line-height:1.45;max-height:none;min-height:48px;flex:1 1 auto}#oa-chat-score{font-size:14px}#oa-chat button{font-size:15px;min-height:36px}#oa-chat [data-quick] button{font-size:18px}#oa-chat [data-chat-resize]{align-self:flex-end;touch-action:none;cursor:nwse-resize;font-size:25px;line-height:25px;padding:2px 8px;color:#caff39;flex-shrink:0}.oa-chat-bubble{position:fixed;z-index:2147483001;pointer-events:none;max-width:min(240px,42vw);overflow-wrap:anywhere;background:#354a24;color:#f4ffe2;border:1px solid #caff39;border-radius:10px;padding:8px 12px;font-size:17px;line-height:1.25;box-shadow:0 3px 12px #0009}.oa-chat-bubble:after{content:'';position:absolute;top:100%;left:50%;border:6px solid transparent;border-top-color:#caff39;transform:translateX(-50%)}
