/* Keep original QR pixels: the frame hides only the surrounding artwork. */
html[data-theme] body .webpw-community{gap:8px;width:210px;max-height:calc(100dvh - 32px);overflow:visible}
.webpw-social-qr{width:210px;display:flex;flex-direction:column;align-items:center;gap:6px}
.webpw-qr-image{position:relative;overflow:hidden;background:#fff;width:150px;height:150px;border-radius:4px;flex:none}
.webpw-qr-image img{position:absolute;max-width:none!important;height:auto!important;display:block}
.webpw-qr-whatsapp img{width:277.5px!important;left:-58px;top:-123px}
.webpw-qr-instagram img{width:222px!important;left:-36px;top:-25px}
html[data-theme] body .webpw-community a{width:210px;height:54px;min-height:54px;padding:8px 12px;gap:8px}
html[data-theme] body .webpw-community .wlc[data-mode=min],html[data-theme] body .webpw-community .wlc-restore{width:210px;min-height:54px}
.webpw-community .wlc[data-mode=min] .wlc-top{box-sizing:border-box;min-height:52px;padding:4px}
.webpw-community .wlc[data-mode=min] .wlc-title{font-size:10px;line-height:1.2}
.webpw-community .wlc[data-mode=min] button{min-width:22px;padding:3px}
.webpw-community .wlc[data-mode=min] .wlc-badge{margin-left:2px}
.webpw-community .wlc:not([data-mode=min]){position:absolute;right:0;bottom:0;z-index:2;max-height:calc(100dvh - 32px)}
@media(max-height:740px) and (min-width:781px){.webpw-qr-image{width:120px;height:120px}.webpw-qr-image img{transform:scale(.8);transform-origin:top left}.webpw-qr-whatsapp img{left:-46.4px;top:-98.4px}.webpw-qr-instagram img{left:-28.8px;top:-20px}}
@media(max-width:780px){
 html[data-theme] body .webpw-community{width:210px;max-height:calc(100dvh - 24px)}
 html[data-theme] body .webpw-community:not(.is-open) .webpw-social-qr{display:none}
 html[data-theme] body .webpw-community.is-open{overflow-y:auto;padding:4px;background:#101010;border-radius:6px}
 .webpw-community.is-open .webpw-community-toggle{width:210px;border-radius:6px;justify-content:center;flex:none}
 .webpw-qr-image{width:150px;height:150px}
}

@media(max-width:1100px){html[data-theme] body .webpw-community .webpw-qr-image{display:none!important}}

/* Community rail: independent of the panel's general nav/footer rules. */
html body nav.webpw-community{position:fixed!important;inset:auto max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) auto!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:flex-end!important;flex-wrap:nowrap!important;float:none!important;width:180px!important;max-width:calc(100vw - 20px);height:auto!important;margin:0!important;padding:0!important;gap:6px!important;z-index:1000;grid-template-columns:none!important}
html body nav.webpw-community .webpw-social-qr{width:180px;display:flex;flex-direction:column;align-items:center;gap:4px}
html body nav.webpw-community a{box-sizing:border-box;width:180px!important;height:46px!important;min-height:46px!important;padding:6px 9px!important;gap:7px!important}
html body nav.webpw-community svg{width:23px;height:23px}
html body nav.webpw-community .webpw-qr-image{width:100px!important;height:100px!important}
html body nav.webpw-community .webpw-qr-image img{transform:none!important}
html body nav.webpw-community .webpw-qr-whatsapp img{width:185px!important;left:-38.6667px!important;top:-82px!important}
html body nav.webpw-community .webpw-qr-instagram img{width:148px!important;left:-24px!important;top:-16.6667px!important}
html body nav.webpw-community .wlc[data-mode=min],html body nav.webpw-community .wlc-restore{width:180px!important;min-height:40px!important}
html body nav.webpw-community .wlc[data-mode=min] .wlc-title{white-space:normal}
@media(max-width:1100px),(max-height:620px){html body nav.webpw-community .webpw-qr-image{display:none!important}}
@media(max-width:780px){html body nav.webpw-community:not(.is-open) .webpw-social-qr{display:none!important}html body nav.webpw-community.is-open{padding:4px!important}html body nav.webpw-community .webpw-community-toggle{max-width:180px}}

/* Isolate the floating rail from footer and generic navigation layouts. */
html body #webpw-community-rail{position:fixed!important;top:auto!important;left:auto!important;right:10px!important;bottom:10px!important;transform:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;width:190px!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;margin:0!important;padding:0!important;gap:6px!important;z-index:1000!important}
html body #webpw-community-rail .webpw-social-qr{width:190px!important;min-height:0!important;flex:0 0 auto!important;gap:4px!important}
html body #webpw-community-rail a{display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:flex-start!important;box-sizing:border-box!important;width:190px!important;max-width:190px!important;height:auto!important;min-height:49px!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;padding:8px 10px!important;gap:8px!important;line-height:1.25!important;white-space:normal!important;overflow:hidden!important}
html body #webpw-community-rail a>svg{display:block!important;flex:0 0 22px!important;width:22px!important;height:22px!important;margin:0!important}
html body #webpw-community-rail a>span{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important;width:auto!important;gap:3px!important;text-align:left!important}
html body #webpw-community-rail strong{display:block!important;font:700 12px/1.25 Arial,sans-serif!important;white-space:normal!important;overflow-wrap:anywhere!important;margin:0!important}
html body #webpw-community-rail small{display:block!important;font:600 10px/1.3 Arial,sans-serif!important;white-space:normal!important;overflow-wrap:anywhere!important;margin:0!important}
@media(max-width:780px){html body #webpw-community-rail:not(.is-open) a,html body #webpw-community-rail:not(.is-open) .webpw-social-qr{display:none!important}html body #webpw-community-rail.is-open{overflow-y:auto!important}}

/* Floating game chat disabled globally; home inline chat remains. */
html body .webpw-community .wlc,html body .webpw-community .wlc-restore{display:none!important}
