/* Community: ONE steady frame for all six tabs (Forums, News, Blogs, Members, Clubs, Messages). Same width, the banner
   and tab bar always in the same place, the frame at least a window tall (so short tabs never re-centre the page), and
   Clubs and the messenger drawn inside it in the Community style. Loaded after community.css, messenger.css, play.css. */
html body #messagesView[data-community-tab]:not([hidden]){display:block!important;width:100%!important;max-width:1220px!important;height:auto!important;min-height:calc(100dvh - 48px)!important;max-height:none!important;overflow:visible!important;margin:12px auto 24px!important;padding:16px 18px!important;border:1px solid rgba(216,183,108,.42)!important;border-radius:22px!important;background:radial-gradient(120% 50% at 0% 0%,rgba(216,183,108,.12),transparent 55%),linear-gradient(180deg,rgba(18,58,56,.97) 0%,rgba(13,42,44,.97) 60%,rgba(10,33,36,.97) 100%)!important;box-shadow:0 24px 60px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.06)!important;box-sizing:border-box}
html body #messagesView[data-community-tab]:not([hidden])>.community-tabs{width:100%!important;max-width:none!important;margin:0 0 16px!important;flex:none}
html body #messagesView[data-community-tab]:not([hidden])>#communityBanner:not([hidden]){display:grid!important}
html body #messagesView[data-community-tab][data-community-depth=thread]:is([data-community-tab=forums],[data-community-tab=news],[data-community-tab=blogs])>#communityBanner{display:none!important}
/* Pinned to the top: the site centres short pages (auto margins on every view), which moved the tab bar from tab to tab. */
html body>main>#club>#messagesView[data-community-tab]:not(#playView):not(#reviewView):not([hidden]){margin-top:0!important;margin-bottom:0!important}
@media (min-width:1001px){html body>main>#club>#messagesView[data-community-tab]:not(#playView):not(#reviewView):not([hidden]){min-height:calc(100dvh - 32px)!important}}
/* Messages: the frame is exactly one window tall and the messenger takes whatever is left under the tabs. */
html body #messagesView[data-community-tab=messages]:not([hidden]){display:flex!important;flex-direction:column!important;gap:0!important;row-gap:0!important}
html body #messagesView[data-community-tab=messages]:not([hidden])>:is(#communityBanner,.community-tabs){flex:none!important}
@media (min-width:1001px){html body>main>#club>#messagesView[data-community-tab=messages]:not(#playView):not(#reviewView):not([hidden]){height:calc(100dvh - 32px)!important}}
html body #messagesView[data-community-tab=messages]:not([hidden])>#inboxContent{flex:1 1 auto!important;height:auto!important;min-height:340px!important}
/* Messages (older rule kept for reference below): */
html body #messagesView[data-community-tab]:not([hidden])>#inboxContent{width:100%!important;max-width:none!important;margin:0!important;height:calc(100dvh - 334px)!important;min-height:380px!important;max-height:none!important;box-sizing:border-box}
/* Clubs: drawn like the other Community lists. */
html body #messagesView[data-community-tab]:not([hidden])>#clubsContent{width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;border:0!important;border-radius:0!important;color:#dde6e0!important}
html body #messagesView #clubsContent .club-content{max-width:none!important;margin:0!important}
html body #messagesView #clubsContent .club-toolbar{display:flex!important;align-items:center;gap:12px;margin:0 0 14px!important}
html body #messagesView #clubsContent .club-toolbar h2,html body #messagesView #clubsContent>h2,html body #messagesView #clubsContent .club-content>h2{margin:0 auto 0 0!important;font:700 26px/1.15 Georgia,'Noto Serif KR',serif!important;color:#f3d68a!important;background:none!important;-webkit-text-fill-color:currentColor}
html body #messagesView #clubsContent button{width:auto!important;min-height:40px!important;margin:0!important;padding:8px 16px!important;border:1px solid rgba(215,180,90,.6)!important;border-radius:12px!important;background:rgba(9,30,32,.8)!important;color:#f3e6c2!important;font:700 14px/1.2 system-ui,sans-serif!important;box-shadow:none!important;cursor:pointer}
html body #messagesView #clubsContent button:is([type=submit],.primary){border:0!important;background:linear-gradient(180deg,#f0d483,#c99a3c)!important;color:#1d1608!important;box-shadow:0 6px 18px rgba(201,154,60,.3)!important}
@media (hover:hover){html body #messagesView #clubsContent button:not(:disabled):hover{filter:brightness(1.08);border-color:#f3d98f!important}}
html body #messagesView #clubsContent :is(input,textarea,select){box-sizing:border-box;width:100%!important;min-height:44px;margin:6px 0 0!important;padding:10px 14px!important;border:1px solid rgba(215,180,90,.5)!important;border-radius:12px!important;background:rgba(5,20,22,.7)!important;color:#fff8e6!important;font:500 15px/1.3 system-ui,sans-serif!important}
html body #messagesView #clubsContent :is(input,textarea,select):focus{outline:0!important;border-color:#f3d98f!important;box-shadow:0 0 0 4px rgba(215,180,90,.22)!important}
html body #messagesView #clubsContent input[type=search]{min-height:46px;padding-left:16px!important}
html body #messagesView #clubsContent label{display:block;margin:12px 0 0!important;color:#e3c97f!important;font:800 11.5px/1.3 system-ui,sans-serif!important;letter-spacing:.12em;text-transform:uppercase}
html body #messagesView #clubsContent :is(.club-card,.club-posts article,.empty-state-card){margin:14px 0 0!important;padding:18px 20px!important;border:1px solid rgba(215,180,90,.35)!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015)),rgba(10,36,38,.85)!important;box-shadow:0 10px 26px rgba(0,0,0,.22)!important}
html body #messagesView #clubsContent .club-card h3{margin:0 0 4px!important;font:700 20px/1.2 Georgia,'Noto Serif KR',serif!important;color:#f3d68a!important}
html body #messagesView #clubsContent :is(p,small){color:#b9cbc2!important;font-size:14px;line-height:1.5}
/* The new tab's content fades in; nothing else moves. */
@keyframes cm-tab-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html[data-motion=full] body #messagesView>:is(#inboxContent,#clubsContent):not([hidden]){animation:cm-tab-in .28s cubic-bezier(.2,.8,.2,1)}

/* Short laptop screens: a slimmer banner so the messenger still fits. */
@media (min-width:1001px) and (max-height:760px){
 html body #messagesView[data-community-tab]:not([hidden]){margin:10px auto 16px!important;padding:12px 14px!important;min-height:calc(100dvh - 40px)!important}
 html body #messagesView[data-community-tab]:not([hidden])>#inboxContent{height:calc(100dvh - 318px)!important;min-height:340px!important}
}
/* Phones and tablets: the same frame, narrower padding. */
@media (max-width:1000px){
 html body #messagesView[data-community-tab]:not([hidden]){margin:10px auto 20px!important;padding:12px!important;border-radius:18px!important;min-height:calc(100dvh - 92px)!important}
 html body #messagesView[data-community-tab]:not([hidden])>.community-tabs{margin-bottom:12px!important}
 html body #messagesView[data-community-tab]:not([hidden])>#inboxContent{height:calc(100dvh - 150px)!important;min-height:420px!important}
}
