.community-launch {position:fixed;right:20px;bottom:20px;width:54px;height:54px;z-index:1100;border:1px solid var(--accent);border-radius:50%;background:var(--accent-dark);color:#fff;cursor:pointer;box-shadow:0 4px 20px #0007;}
.community-launch svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;}
.community-badge{position:absolute;right:-2px;top:-2px;background:#ef4444;border-radius:50%;width:19px;height:19px;font-weight:900;}
.community-panel{position:fixed;right:20px;bottom:86px;width:min(420px,calc(100vw - 24px));height:min(600px,calc(100dvh - 110px));z-index:1101;border:1px solid rgba(var(--accent-rgb),.5);border-radius:16px;background:var(--bg-sidebar,#081016);box-shadow:0 12px 60px #0009;display:flex;flex-direction:column;overflow:hidden;color:var(--text-white);}
.community-panel[hidden],.community-panel [hidden],.community-badge[hidden]{display:none!important;}
.community-panel>header{display:flex;gap:8px;align-items:center;padding:12px;border-bottom:1px solid var(--border);}
.community-panel select{flex:1;min-width:0;background:var(--bg-panel);border:1px solid var(--border);border-radius:8px;padding:8px;color:var(--text-white);font-weight:800;}
.community-panel button{cursor:pointer;background:rgba(var(--accent-rgb),.09);border:1px solid rgba(var(--accent-rgb),.2);border-radius:6px;color:var(--text-white);padding:5px 8px;}
.community-panel button:disabled{opacity:.5;}.community-close{font-size:22px;}.community-error{font-size:12px;color:#fca5a5;padding:0 12px;}.community-error:empty{display:none;}
.community-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;display:flex;flex-direction:column;gap:10px;}
.community-message{flex:0 0 auto;padding:10px;background:var(--bg-panel);border-radius:10px;overflow-wrap:anywhere;contain:layout style;}
.community-author{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:800;color:var(--accent);}.community-author time{font-size:10px;color:var(--text-muted);font-weight:400;white-space:nowrap;}
.community-message p{font-size:13px;line-height:1.5;white-space:pre-wrap;margin:8px 0;}.community-message img{display:block;width:100%;max-height:260px;object-fit:contain;border-radius:8px;}
.community-message footer{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-top:8px;font-size:11px;}.community-message button{font-size:11px;}.community-message button[aria-pressed="true"]{border-color:var(--accent);color:var(--accent);}.community-views{color:var(--text-muted);margin-left:auto;}.community-quote,.community-reply{font-size:11px;color:var(--accent);border-left:2px solid var(--accent);padding:6px;}
.community-compose{padding:10px;border-top:1px solid var(--border);}.community-compose textarea{width:100%;resize:none;background:var(--bg-panel);border:1px solid var(--border);border-radius:8px;color:var(--text-white);padding:8px;font:inherit;font-size:13px;}.community-compose>div{display:flex;align-items:center;gap:8px;margin-top:6px;}.community-compose button{margin-left:auto;}.community-attach{cursor:pointer;font-size:24px;}.community-file-name{font-size:10px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#community-admin form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px;}#community-admin label{display:flex;flex-direction:column;gap:6px;}#community-admin input,#community-admin select{width:100%;padding:10px;background:var(--bg-panel);color:var(--text-white);border:1px solid var(--border);border-radius:8px;}#community-admin input[type="checkbox"]{width:auto;align-self:flex-start;}#community-admin [role="status"]{padding:0 20px 15px;}
@media(max-width:600px){.community-launch{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:48px;height:48px;}.community-panel{right:12px;bottom:calc(72px + env(safe-area-inset-bottom));height:min(570px,calc(100dvh - 100px));}.community-compose textarea{font-size:16px;}}

.community-channel-avatar{width:30px;height:30px;object-fit:cover;border-radius:50%;}
/* Messenger-style channel directory and conversation. */
.community-panel{background:#191d21;border-color:rgba(255,255,255,.09);border-radius:22px;box-shadow:0 20px 70px #0009;font-family:Inter,Arial,sans-serif;}
.community-panel>header{padding:14px 12px;background:#22272c;border-color:#ffffff09;gap:10px;min-height:77px;}
.community-panel .community-channel-avatar{display:none;}
.community-panel .community-close,.community-panel .community-list-back,.community-panel .community-directory-close{background:transparent;border:0;color:#a9b2bb;width:32px;height:36px;padding:5px;flex-shrink:0;border-radius:10px;}
.community-list-back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.community-heading{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;}.community-heading b{font-size:14px;color:#f3f5f7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.community-heading>span{font-size:11px;color:#99a3ad;}
.community-heading-avatar,.community-list-avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;background:radial-gradient(circle at 30% 20%,rgba(var(--accent-rgb),.23),rgba(var(--accent-rgb),.04));border:1px solid rgba(var(--accent-rgb),.18);overflow:hidden;}
.community-heading-avatar{width:42px;height:42px;}.community-list-avatar{width:54px;height:54px;}
.community-heading-avatar img,.community-list-avatar img{width:100%;height:100%;object-fit:cover;}.community-heading-avatar svg{width:22px;height:24px;}.community-list-avatar svg{width:27px;height:30px;}
.community-directory{display:flex;flex:1;min-height:0;flex-direction:column;}
.community-panel.is-directory>:not(.community-directory){display:none!important;}
.community-directory-top{display:flex;align-items:center;gap:8px;padding:16px 14px 10px;}
.community-search{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:#111518;border:1px solid #ffffff05;border-radius:25px;padding:11px 14px;}.community-search:focus-within{border-color:rgba(var(--accent-rgb),.4);}.community-search svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:#7e8791;stroke-width:1.8;stroke-linecap:round;}.community-search input{width:100%;min-width:0;background:none;border:0;outline:none;color:#f1f4f6;font:inherit;font-size:14px;}.community-search input::placeholder{color:#89929a;}
.community-tabs{display:flex;gap:8px;padding:3px 14px 13px;border-bottom:1px solid #ffffff07;}.community-panel .community-tabs button{border:0;border-radius:18px;background:transparent;color:#99a3ad;padding:8px 14px;font-weight:700;font-size:12px;}.community-panel .community-tabs button[aria-pressed=true]{background:rgba(var(--accent-rgb),.12);color:var(--accent);}
.community-channel-list{flex:1;overflow-y:auto;min-height:0;padding:8px;}.community-panel .community-channel-row{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:13px;background:transparent;padding:13px 8px;text-align:left;}.community-panel .community-channel-row:hover,.community-panel .community-channel-row:focus-visible{background:#ffffff05;}.community-panel button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.community-channel-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px;}.community-channel-name{font-size:14px;font-weight:750;color:#f4f6f8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.community-channel-preview{font-size:12px;font-weight:400;color:#929ca5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.community-channel-meta{display:flex;align-items:flex-end;flex-direction:column;gap:12px;align-self:stretch;padding-top:6px;}.community-channel-meta time{font-size:10px;color:#88939c;}.community-unread-dot{width:9px;height:9px;background:var(--accent);border-radius:50%;}.community-directory-note{padding:16px;text-align:center;color:#6e7882;font-size:11px;border-top:1px solid #ffffff05;}.community-list-empty{text-align:center;color:#929ca5;font-size:13px;padding:30px 10px;}
.community-messages{padding:18px 14px;gap:13px;background:radial-gradient(ellipse at top right,rgba(var(--accent-rgb),.035),transparent 65%);}
.community-message{background:#262d34;border:1px solid #ffffff04;border-radius:15px 15px 15px 5px;padding:13px;box-shadow:0 2px 4px #0001;}.community-message[data-own=true]{background:linear-gradient(130deg,rgba(var(--accent-rgb),.12),rgba(var(--accent-rgb),.06));border-color:rgba(var(--accent-rgb),.09);border-radius:15px 15px 5px 15px;}.community-message p{font-size:13px;color:#e4e9ed;line-height:1.65;}.community-author{font-size:12px;}.community-message footer{gap:6px;}.community-message footer button{border:0;background:#ffffff06;border-radius:14px;padding:6px 9px;color:#b5c0ca;font-size:11px;}.community-message footer button[aria-pressed=true]{background:rgba(var(--accent-rgb),.15);color:var(--accent);}
.community-compose{background:#22272c;border-color:#ffffff07;padding:12px;}.community-compose textarea{border:1px solid #ffffff07;background:#191e23;border-radius:13px;padding:11px 12px;font-size:13px;color:#eff3f7;}.community-compose textarea:focus{outline:none;border-color:rgba(var(--accent-rgb),.35);}.community-compose button{background:var(--accent);color:#101b14;font-weight:750;border:0;border-radius:18px;padding:9px 14px;}.community-attach{width:34px;height:34px;display:grid;place-items:center;background:#ffffff06;border-radius:50%;color:#aeb8c0;}.community-launch{background:linear-gradient(145deg,var(--accent),var(--accent-dark));border:1px solid rgba(255,255,255,.15);box-shadow:0 5px 22px rgba(var(--accent-rgb),.18),0 5px 14px #0005;}
@media(max-width:600px){.community-panel{border-radius:19px;}.community-search input,.community-compose textarea{font-size:16px;}.community-channel-row{min-height:78px;}}
.community-tab-count{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;border-radius:10px;background:var(--accent);color:#122019;font-size:10px;padding:0 4px;}
.community-unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:11px;background:var(--accent);color:#102017;font-size:11px;font-weight:800;line-height:1;}.community-channel-meta{min-width:34px;gap:9px;}
.community-launch[hidden]{display:none!important;}
.community-messages,.community-channel-list{scrollbar-width:thin;scrollbar-color:var(--accent) #171d22;}
.community-messages::-webkit-scrollbar,.community-channel-list::-webkit-scrollbar{width:6px;}
.community-messages::-webkit-scrollbar-track,.community-channel-list::-webkit-scrollbar-track{background:#171d22;}
.community-messages::-webkit-scrollbar-thumb,.community-channel-list::-webkit-scrollbar-thumb{background:var(--accent);border-radius:8px;}
.community-author-name{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;overflow-wrap:anywhere;}
.community-author-role{display:inline-flex;align-items:center;padding:3px 6px;border-radius:5px;font-size:8px;font-weight:800;letter-spacing:.3px;line-height:1;background:rgba(var(--accent-rgb),.12);color:var(--accent);}
.community-author-role[data-role=admin]{color:#ff8289;background:#ef44441a;}.community-author-role[data-role=moderator]{color:#c2a1ff;background:#9b6eff1a;}
.community-message footer .community-reaction-count{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 11px;border-radius:18px;}.community-reaction-count>span{font-size:22px;line-height:1;}.community-reaction-count>b{font-size:13px;}
.community-reaction-picker{position:relative;}.community-reaction-picker summary{display:flex;align-items:center;justify-content:center;gap:1px;width:36px;height:36px;border-radius:18px;background:#ffffff08;color:#adb8c1;cursor:pointer;list-style:none;font-size:24px;}.community-reaction-picker summary::-webkit-details-marker{display:none;}.community-reaction-picker summary>span{font-size:13px;}.community-reaction-picker summary:focus-visible{outline:2px solid var(--accent);}.community-reaction-picker[open]>div{display:flex;gap:4px;padding:4px;background:#1a2229;border:1px solid rgba(var(--accent-rgb),.2);border-radius:20px;margin-top:6px;}.community-reaction-picker:not([open])>div{display:none;}.community-message footer .community-reaction-picker button{font-size:24px;min-width:40px;height:40px;padding:5px;border-radius:50%;}
.community-panel>header,.community-directory-top,.community-tabs,.community-directory-note{cursor:grab;touch-action:none;}.community-panel.is-dragging,.community-panel.is-dragging *{cursor:grabbing!important;user-select:none!important;}.community-search input{cursor:text;}
.community-private-file{display:block;overflow-wrap:anywhere;color:var(--accent);text-decoration:none;padding:4px 0}.community-private-file img{display:block;max-width:100%;max-height:300px;object-fit:contain;border-radius:10px;background:#fff}.community-withdrawal-status{font-size:11px;color:var(--text-muted);line-height:1.5}.community-file-name{cursor:pointer}.community-compose button:disabled{opacity:.55;cursor:default}.community-attach[hidden]{display:none!important}.withdraw-qr{border:1px solid var(--border);border-radius:14px;padding:14px;margin:14px 0;background:var(--bg-panel)}.withdraw-qr>b{font-size:14px}.withdraw-qr p{font-size:12px;line-height:1.5;color:var(--text-muted);margin:8px 0 12px}.withdraw-qr-add{display:flex;justify-content:center;padding:10px;border:1px dashed var(--accent);border-radius:10px;color:var(--accent);font-size:13px;cursor:pointer}.withdraw-qr-preview{position:relative;margin-top:10px}.withdraw-qr-preview[hidden]{display:none}.withdraw-qr-preview img{display:block;width:140px;height:140px;object-fit:contain;background:white;border-radius:10px;margin:auto}.withdraw-qr-preview button{position:absolute;right:0;top:0;border:0;border-radius:50%;width:28px;height:28px;background:var(--bg-panel);color:var(--text-main);cursor:pointer}.withdraw-qr-status{display:block;margin-top:8px;font-size:12px;color:var(--text-muted)}
#withdraw-modal .pv2-withdraw-modal{display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}#withdraw-modal .modal-header{flex:0 0 auto}#withdraw-modal .modal-body{min-height:0;overflow-y:auto;scrollbar-color:var(--accent) transparent}#withdraw-modal .withdraw-qr{flex-shrink:0}

.community-launch { transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease; }
.community-withdrawals { flex:0 0 auto; display:flex; flex-direction:column; gap:6px; padding:10px 12px; border-top:1px solid #ffffff0a; background:#22272c; }
.community-withdrawals label { color:var(--text-white,#fff); font-size:12px; font-weight:700; }
.community-withdrawals select { flex:none; width:100%; min-width:0; text-overflow:ellipsis; font-size:12px; color:#eff3f7; background:#191e23; }
.community-withdrawals>span { color:var(--text-muted,#a0a8b0); font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.community-panel .community-compose { flex-shrink:0; }
@media(max-width:600px) { .community-withdrawals select { font-size:16px; } }
.community-launch:hover, .community-launch:focus-visible { background: var(--accent); box-shadow: 0 4px 20px #0007, 0 0 20px rgba(var(--accent-rgb), .45); }
.community-launch:active { transform: scale(.9); }
.community-launch:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .community-launch { transition: none; } }

/* Replays on every opening without changing the draggable panel's position. */
.community-panel:not([hidden]) { animation: community-panel-open .24s ease-out; }
@keyframes community-panel-open {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .community-panel:not([hidden]) { animation: none; }
}

.community-event-announcement{margin:14px 0 4px;font-size:12px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}
.community-event-intro{display:flex;flex-direction:column;gap:5px;padding:2px 0 16px}.community-event-eyebrow{color:#ceba84;font-size:9px;letter-spacing:1.3px;font-weight:700}.community-event-intro>strong{font-size:21px;line-height:1.25;color:#f1f4f7;letter-spacing:-.5px}.community-event-intro>span:last-child{color:#96a5b2;font-size:11px}
.community-event-item{padding:14px;margin-bottom:9px;background:linear-gradient(135deg,#1b242d,#1d272f);border:1px solid #ffffff0b;border-radius:12px}.community-event-title{display:flex;gap:9px;align-items:center;margin-bottom:9px}.community-event-title>span{display:grid;place-items:center;width:25px;height:25px;flex-shrink:0;border-radius:7px;background:#e3c77610;border:1px solid #e3c77625;color:#ddc68e;font-size:10px;font-weight:700}.community-event-title>strong{color:#eff3f6;font-size:13px;font-weight:700;line-height:1.35}.community-event-condition{color:#aebcc7;font-size:12px;margin-bottom:5px}.community-event-time{color:#80929f;font-size:10px}
.community-event-prizes{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.community-event-prizes>div{flex:1;min-width:65px;padding:8px;border:1px solid #dfc5791d;border-radius:7px;background:#dbc27c08;display:flex;flex-direction:column;gap:3px}.community-event-prizes small{color:#97a4ae;font-size:9px}.community-event-prizes b{font-size:12px;color:#eed398;font-weight:700}
.community-event-note{display:flex;flex-direction:column;gap:6px;padding:12px 2px 4px;color:#9bacb9;font-size:11px}.community-event-note>strong{color:#d5dfe6;font-size:12px}.community-event-note>a{align-self:flex-start;display:inline-flex;text-decoration:none;color:#ecd293;font-weight:600;padding:8px 10px;margin-top:3px;border-radius:8px;border:1px solid #e6ca7c25;background:#e6ca7c08}.community-event-note>a:hover{background:#e6ca7c14}.community-event-signoff{margin-top:12px;color:#82939f;font-size:10px;text-align:center}.community-author-role[data-role="system"]{background:#d9c18418;color:#d9c184}
