#publicChatBtn{position:fixed;right:16px;bottom:16px;z-index:75;border-radius:24px;background:#173a4b;color:#eafff9;border:1px solid #799c9f;padding:12px 22px;min-height:44px}#journeyChat{position:fixed;right:16px;bottom:74px;width:min(390px,calc(100vw - 24px));max-height:min(580px,75dvh);z-index:76;color:#e8f6f6;background:#102a38f5;border:1px solid #5d8794;border-radius:18px;box-shadow:0 12px 45px #0008;overflow:auto;padding:16px;box-sizing:border-box;font:14px system-ui}#journeyChat[hidden]{display:none}#journeyChat header{display:flex;justify-content:space-between;align-items:center;position:static;padding:0;background:none}#journeyChat h2{font-size:19px;margin:3px 0 12px}#journeyChat small{color:#9ec3c9;font-size:11px}#journeyChat button{background:#244957;border:1px solid #527885;color:#f0ffff;border-radius:8px;padding:8px;min-height:36px;cursor:pointer}#journeyChat nav{display:flex;align-items:center;gap:10px;font-size:11px;color:#adc0cc}#chatMessages{list-style:none;padding:0;max-height:270px;min-height:120px;overflow:auto;overflow-wrap:anywhere}#chatMessages li{padding:9px 4px;border-bottom:1px solid #41616a55}#chatMessages li>div{display:flex;justify-content:space-between;gap:10px}#chatMessages strong{color:#a9e4d6}#chatMessages time{font-size:10px;color:#9fb8be}#chatMessages p{margin:5px 0;white-space:pre-wrap}#chatMessages details{font-size:11px}#chatForm>div{display:flex;gap:8px;margin:6px 0}#chatInput{min-width:0;width:100%;border:1px solid #6c949e;border-radius:8px;background:#071f2b;color:white;padding:10px;font:16px system-ui}#chatStatus{color:#bcd4dc;font-size:12px}#journeyChat button:focus-visible,#chatInput:focus-visible{outline:2px solid #ffd77c;outline-offset:2px}#journeyChat button:disabled{opacity:.5}body:has(#pokeRoyale:not([hidden])) #publicChatBtn{display:none}@media(pointer:coarse){#publicChatBtn{bottom:190px}#journeyChat{bottom:78px;max-height:calc(100dvh - 96px)}}

body.menuOpen #publicChatBtn{display:none}

/* Native regions render above the shared shell in full-screen frames. */
#publicChatBtn{z-index:2147483000}#journeyChat{z-index:2147483001}#chatSignIn{margin:6px 0 12px}#chatSignIn[hidden]{display:none}

#journeyChat.isFaded{background:rgba(10,29,39,.48);backdrop-filter:none;box-shadow:0 3px 16px #0002}#journeyChat.isFaded:not(:hover):not(:focus-within){background:rgba(10,29,39,.18);border-color:#8cabb044;box-shadow:none}#journeyChat.isFaded:hover,#journeyChat.isFaded:focus-within{background:rgba(10,29,39,.88)}#journeyChat nav{flex-wrap:wrap}#chatChannel{max-width:190px;padding:7px;border:1px solid #729498;border-radius:7px;background:#142e3b;color:#edffff}#chatFade{width:auto}#chatTeam{margin-top:10px}#chatTeamContent{max-height:210px;overflow:auto}#chatTeamContent p{margin:5px 0}#chatMessages{scrollbar-width:thin}#journeyChat.isFaded #chatMessages{text-shadow:0 1px 2px #000}

/* Resize toward the top/left while keeping the chat anchored above its button. */
#journeyChat{height:540px;max-height:calc(100dvh - 90px);display:flex;flex-direction:column;overflow:hidden}
#journeyChat[hidden]{display:none}#journeyChat>*{flex-shrink:0}#chatMessages{flex:1 1 auto;min-height:35px;max-height:none}#chatTeamContent{max-height:120px}
#journeyChat,#journeyChat *{scrollbar-width:none}#journeyChat::-webkit-scrollbar,#journeyChat *::-webkit-scrollbar{display:none}
#journeyChat .chatResize{position:absolute;z-index:3;touch-action:none}#journeyChat .chatResize.top{top:0;left:12px;right:12px;height:8px;cursor:ns-resize}#journeyChat .chatResize.left{left:0;top:12px;bottom:12px;width:8px;cursor:ew-resize}#journeyChat .chatResize.corner{left:0;top:0;width:14px;height:14px;cursor:nwse-resize}
#journeyChat.isFaded,#journeyChat.isFaded:hover,#journeyChat.isFaded:focus-within{background:rgba(10,29,39,.25);box-shadow:none;backdrop-filter:none}
#journeyChat.isFaded button,#journeyChat.isFaded input,#journeyChat.isFaded select,#journeyChat.isFaded details{background:rgba(12,36,47,.2);border-color:#72949866}#journeyChat.isFaded option{background:#142e3b}#journeyChat.isFaded *{text-shadow:0 1px 2px #0009}
