.community-gift-button{position:relative;flex:0 0 9cqw;width:9cqw;height:9cqw;border:0;padding:.35cqw;background:none;color:#fff;overflow:visible}
.community-gift-image{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 3px #0008)}
.community-gift-count{position:absolute;right:-.8cqw;top:0;min-width:4.2cqw;padding:.12cqw .75cqw;border-radius:3cqw;background:#df1e30;color:#fff;font-size:clamp(9px,2.1cqw,12px);line-height:1.4;font-weight:500;box-shadow:0 1px 4px #0004;white-space:nowrap}
.community-gift-count[hidden]{display:none}
.community-gift-button svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.community-gift-button[hidden],.community-dialog [hidden],.community-social[hidden]{display:none}
body.community-open{overflow:hidden}
.community-dialog{color:#f2f2f5;background:#101115;border:0;padding:0;font:14px/1.6 Arial,Tahoma,sans-serif;max-height:100dvh}
.community-dialog::backdrop{background:#000b}
.community-gifts{position:fixed;inset:0;width:100%;height:100dvh;max-width:576px;margin:auto;overflow-y:auto}
.community-wrap{min-height:100%;padding-bottom:24px}
.community-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top));background:#101115f5;border-bottom:1px solid #ffffff12}
.community-top h1{margin:0;flex:1;font-size:17px;font-weight:600}
.community-back{border:0;background:none;color:#fff;padding:0 10px;font-size:30px}
.community-text-button{border:0;background:none;color:#e9a2aa;padding:8px 2px;font:inherit;font-size:12px;cursor:pointer}
.community-content{padding:8px 16px 20px}
.community-message{margin:0;padding:0 16px;color:#f2c983;font-size:13px;white-space:pre-wrap}
.community-message:empty{display:none}
.community-balance{display:flex;flex-direction:column;padding:15px 2px 20px;background:radial-gradient(ellipse at right,#74542c33,transparent 70%)}
.community-balance>span{color:#a4a5ad;font-size:13px}.community-balance strong{font-size:38px;font-weight:600;color:#f6d798}
.community-checkin{padding:16px;border:1px solid #ffffff10;background:#202125;border-radius:14px}
.community-checkin h2{font-size:16px;margin:0 0 14px}.community-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:15px}
.community-day{padding:8px 0;border-radius:7px;text-align:center;background:#2e2f33;color:#a3a5ad;display:flex;flex-direction:column;font-size:12px}
.community-day small{font-size:10px}.community-day.is-today{color:#fff;background:#573c32;outline:1px solid #cda76c}
.community-coin{color:#e6ba57;font-size:22px;text-shadow:0 0 8px #dba84855}
.community-button{display:inline-block;border:1px solid #ef3545;border-radius:8px;background:#df1e30;color:white;padding:10px 14px;font:inherit;font-size:13px;line-height:1.5;text-align:center;text-decoration:none;cursor:pointer}
.community-button:disabled{background:#33343b;border-color:#45464e;color:#9d9fa9;cursor:default}.community-checkin>.community-button{width:100%}
.community-section-title{font-size:19px;margin:25px 0 14px}.community-quest{display:flex;align-items:center;gap:12px;background:#1c1d22;border-radius:12px;padding:15px 12px;margin:0 0 12px}
.community-quest-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:#2b2c32;color:#f0d1b7}
.community-quest-icon svg,.community-social-link svg,.community-login>svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.community-quest-copy{min-width:0;flex:1}.community-quest-copy h3{font-size:14px;font-weight:500;margin:0 0 3px;overflow-wrap:anywhere}
.community-quest-copy p{font-size:12px;color:#a1a3af;margin:2px 0;white-space:pre-wrap}.community-quest-copy .community-quest-reward{color:#dfbb77}.community-quest-copy small{font-size:11px;color:#9195a1}
.community-quest>.community-button{flex-shrink:0;max-width:105px;padding:8px 10px;font-size:12px}
.community-history-row{display:grid;grid-template-columns:1fr auto;gap:4px;padding:14px 0;border-bottom:1px solid #ffffff12}.community-history-row small{font-size:11px;color:#9094a2}.community-history-row .positive{color:#e8c67d}
.community-empty{color:#9298a6;text-align:center;padding:20px 5px}.community-login{padding:45px 10px;text-align:center}.community-login>svg{width:60px;height:60px;color:#f1b37d}.community-login h2{font-size:21px}.community-login p{color:#a2a5af}.community-login .community-button{display:block;width:100%;margin:20px 0 5px}
.community-sheet{position:absolute;inset:0;z-index:5;min-height:100%;padding:30px 18px;background:#101115}
.community-task-form{display:grid;gap:15px}.community-task-form h2{font-size:20px}.community-task-form input:not([type=file]),.community-task-form textarea{width:100%;border:1px solid #424651;border-radius:8px;background:#22252e;color:white;padding:12px;font:inherit}.community-task-form textarea{min-height:120px}.community-form-status{color:#efb1b8}.community-proof-preview{max-width:100%;max-height:230px;object-fit:contain}
.community-popup{width:min(72vw,384px);max-width:calc(100% - 32px);max-height:94dvh;padding:0;border-radius:0;overflow:visible;background:transparent}
.community-popup::backdrop{background:#000b}
.community-popup-card{position:relative;max-height:94dvh;overflow-y:auto;scrollbar-width:thin;border-radius:12px;background:#202126;padding:16px;text-align:center}
.community-popup-card.is-image{padding:0;border-radius:0;background:none;overflow:visible}
.community-popup-close{display:grid;place-items:center;margin:38px auto 0;border:1.5px solid #ffffffa6;border-radius:50%;width:36px;height:36px;padding:0;background:#10111555;color:#fff;font:30px/1 Arial,sans-serif}
.community-popup-image{display:block;width:100%;max-height:calc(88dvh - 150px);height:auto;object-fit:contain;border-radius:4px}.community-popup h2{font-size:21px;margin:14px 0 8px}.community-popup-description{color:#d2d3db;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 15px}.community-popup .community-button{display:block;width:100%;margin-top:10px;padding:12px 14px;border-radius:4px;font-size:16px}.community-popup-image-action{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer}
.community-popup[open] .community-popup-card{animation:community-popup-in .2s ease-out}
.community-automatic-note{color:#9c9faa;font-size:12px;margin-top:-6px}.community-automatic-row{display:grid;grid-template-columns:1fr auto;gap:3px 12px;padding:14px 0;border-bottom:1px solid #ffffff12}.community-automatic-row strong{font-size:14px;font-weight:500}.community-automatic-row>span{font-size:12px;color:#dfbb77}.community-automatic-row p,.community-automatic-row small{grid-column:1/-1;margin:0;color:#969ba8;font-size:12px}
@keyframes community-popup-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.community-popup[open] .community-popup-card{animation:none}}
.community-social{display:flex;flex-wrap:wrap;justify-content:center;gap:13px;padding:24px 16px 14px;border-top:1px solid #ffffff0d;margin:20px 16px 0}.community-social-link{display:flex;flex-direction:column;align-items:center;gap:5px;color:#a0a3ae;font-size:10px;text-decoration:none}
.community-reward{position:fixed;inset:0;width:100%;height:100dvh;max-width:100%;margin:0;background:#050608}.community-reward-stage{position:relative;height:100%;max-width:1100px;margin:auto;background:black}.community-reward video{position:absolute;width:100%;height:100%;object-fit:contain}
.community-reward-back,.community-reward-play,.community-reward-mute{position:absolute;z-index:2;border:1px solid #ffffff55;border-radius:8px;background:#15161dbb;color:white;padding:10px 14px;font:inherit}.community-reward-back{top:max(15px,env(safe-area-inset-top));left:15px}.community-reward-play{top:50%;left:50%;transform:translate(-50%,-50%)}.community-reward-mute{bottom:30px;right:20px}.community-reward-status{position:absolute;bottom:20px;left:20px;right:110px;color:#eee;text-shadow:0 1px 4px black}
.community-dialog button:focus-visible,.community-dialog a:focus-visible{outline:2px solid white;outline-offset:3px}.community-submission{border-bottom:1px solid #ffffff18;padding:12px 0;color:#b2b5c0;font-size:12px}
.community-reward-link{position:absolute;z-index:2;top:70px;right:20px;border:1px solid #ffffff55;border-radius:8px;background:#15161dbb;color:#fff;padding:9px 12px;font:inherit;text-decoration:none}
@media(max-width:360px){.community-content{padding:8px 10px}.community-quest{gap:8px;padding:12px 9px}.community-quest-icon{flex-basis:32px;width:32px;height:32px}.community-quest>.community-button{max-width:85px;font-size:11px}.community-checkin{padding:12px}.community-day small{font-size:9px}}

/* The gifts surface has its own warm palette; player and popup styling stays independent. */
.community-gifts{background:#fff8ed;color:#30251e}
.community-gifts .community-top{background:#fff8edf5;border-bottom-color:#eaddcb;backdrop-filter:blur(10px)}
.community-gifts .community-back{color:#503526}
.community-gifts .community-text-button{color:#b3451f;font-weight:600}
.community-gifts .community-message,.community-gifts .community-form-status{color:#9f3f20}
.community-gifts .community-balance{margin:8px 0 16px;padding:20px;border:1px solid #edd5a8;border-radius:18px;background:radial-gradient(ellipse at right,#f9d68588,transparent 70%),#fff2d9}
.community-gifts .community-balance>span{color:#745b40}
.community-gifts .community-balance strong{color:#8c5710}
.community-gifts .community-checkin{border-color:#efdfc6;background:#fff;box-shadow:0 4px 18px #7a491008}
.community-gifts .community-day{background:#fff6e7;color:#725f4e}
.community-gifts .community-day.is-today{background:#ffe7be;color:#6d3c11;outline-color:#d59b32}
.community-gifts .community-coin{color:#bd7b0d;text-shadow:0 1px 0 #fff}
.community-gifts .community-button{background:linear-gradient(115deg,#c8312e,#cc481c);border-color:#be3e22;color:#fff;box-shadow:0 2px 6px #c64b2114}
.community-gifts .community-button:disabled{background:#eee6db;border-color:#dfd3c4;color:#776b60;box-shadow:none}
.community-gifts .community-quest{background:#fff;border:1px solid #efdfca;box-shadow:0 3px 12px #7a491006}
.community-gifts .community-quest-icon{background:#fff0d4;color:#a86722}
.community-quest-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.community-gifts .community-quest-copy h3{font-weight:600}
.community-gifts .community-quest-copy p,.community-gifts .community-quest-copy small{color:#75675c}
.community-gifts .community-quest-copy .community-quest-reward,.community-gifts .community-quest-reward{color:#916011;font-weight:600}
.community-gifts .community-quest-copy .community-quest-xp{color:#9b4b23}
.community-gifts .community-history-row,.community-gifts .community-automatic-row,.community-gifts .community-submission{border-bottom-color:#e9ddce}
.community-gifts .community-history-row small,.community-gifts .community-submission,.community-gifts .community-automatic-note,.community-gifts .community-automatic-row p,.community-gifts .community-automatic-row small{color:#78695d}
.community-gifts .community-history-row .positive,.community-gifts .community-automatic-row>span{color:#8e5c0c}
.community-gifts .community-empty,.community-gifts .community-login p{color:#78695d}
.community-gifts .community-login>svg{color:#b66c19}
.community-gifts .community-sheet{background:#fff8ed}
.community-gifts .community-task-form input:not([type=file]),.community-gifts .community-task-form textarea{background:#fff;color:#30251e;border-color:#d6c4ae}
.community-gifts button:focus-visible,.community-gifts a:focus-visible{outline:2px solid #b24522;outline-offset:3px}
.community-bonus-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 6px}
.community-bonus-heading .community-section-title{margin:0}
.community-bonus-heading+.community-automatic-note{margin:0 0 12px;line-height:1.7}
.community-bonus-offer{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 12px;padding:14px 12px;border:1px solid #ecd5ad;border-radius:14px;background:#fff;color:#30251e;text-align:left;font:inherit;cursor:pointer;box-shadow:0 3px 12px #7a491008;touch-action:manipulation}
.community-bonus-offer:hover{background:#fffcf5;border-color:#d8aa63}
.community-bonus-image{display:grid;place-items:center;flex:0 0 60px;width:60px;height:60px;overflow:hidden;border-radius:12px;background:#fff0d4;color:#aa6819}
.community-bonus-image img{width:100%;height:100%;object-fit:cover}
.community-bonus-image svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.community-bonus-copy{display:grid;gap:4px;flex:1;min-width:0}
.community-bonus-copy strong{font-size:14px;overflow-wrap:anywhere;line-height:1.5}
.community-bonus-copy small{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.community-bonus-sponsor{color:#8c633b}
.community-bonus-state{color:#746357}
.community-bonus-reward{display:grid;flex:0 0 80px;gap:1px;padding:8px 6px;border:1px solid #edcf8b;border-radius:10px;background:#fff0c9;color:#80520a;text-align:center}
.community-bonus-reward strong{font-size:17px;overflow-wrap:anywhere;line-height:1.4}
.community-bonus-reward small{font-size:10px}
.community-bonus-history{width:100%;margin:0 0 14px}
.community-bonus-warning{margin:10px 0;padding:10px 12px;border-radius:10px;background:#fff0d7;color:#88421e;font-size:12px}
.community-bonus-warning p{margin:0;white-space:pre-wrap}
@media(max-width:360px){.community-bonus-offer{gap:8px;padding:12px 9px}.community-bonus-image{flex-basis:48px;width:48px;height:48px}.community-bonus-reward{flex-basis:72px}.community-bonus-reward strong{font-size:15px}.community-bonus-copy strong{font-size:13px}.community-bonus-heading .community-section-title{font-size:17px}}

/* Exact M coin artwork supplied by the site owner. */
.community-m-coin{display:inline-block;flex:none;width:28px;height:28px;object-fit:contain;border-radius:50%;vertical-align:middle;background:#fff}
.community-day>.community-m-coin{width:clamp(24px,6vw,38px);height:clamp(24px,6vw,38px);margin:7px auto}
.community-day>.community-m-coin.is-claimed{outline:2px solid #bc872d;outline-offset:2px;opacity:.7}
.community-balance>strong{display:flex;align-items:center;gap:8px}.community-balance>strong .community-m-coin{width:36px;height:36px}
.community-history-tabs,.community-history-toolbar,.community-history-actions,.community-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0}
.community-history-tabs button[aria-pressed=true]{border-bottom:2px solid #b24522;color:#9d3720;font-weight:700}
.community-history-search{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.community-history-search input,.community-history-search select{min-width:0;flex:1;padding:10px;border:1px solid #d6c4ae;border-radius:8px;background:#fff;color:#30251e;font:inherit}
.community-history-toolbar{font-size:12px}.community-history-toolbar label,.community-history-row-head{display:flex;align-items:center;gap:10px;min-width:0}.community-history-row-head strong{overflow-wrap:anywhere}
.community-history-toolbar input,.community-history-row input{width:18px;height:18px;accent-color:#b24522;flex:none}
.community-proof-row{display:grid;gap:8px;padding:16px 0;border-bottom:1px solid #e9ddce;overflow-wrap:anywhere}.community-proof-row p{white-space:pre-wrap;margin:0;font-size:13px}.community-proof-note{color:#9f3f20}
.community-proof-status,.community-proof-row small{font-size:12px;color:#78695d}.community-history-row strong .community-m-coin{width:20px;height:20px;margin-right:5px}
.community-history-row>.community-text-button{justify-self:end}.community-history-pagination{font-size:12px}.community-history-pagination button{min-height:44px}
.community-history-actions button{min-height:44px}.community-history button:disabled{opacity:.5;cursor:default}

/* V6: compact balance and predictable task order. */
.community-gifts .community-balance.is-compact{flex-direction:row;align-items:center;justify-content:space-between;padding:10px 14px;margin:4px 0 14px;border-radius:12px;background:#fff1d6}.community-balance.is-compact strong{display:flex;align-items:center;gap:7px;font-size:22px}.community-balance.is-compact .community-m-coin{width:24px;height:24px}.community-gifts .community-center-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 8px;padding-top:14px;border-top:1px solid #eadbc6}.community-gifts .community-center-actions .community-button,.community-gifts .community-center-actions .community-text-button{padding:8px 10px;font-size:12px}.community-gifts .community-login{padding:12px 6px 18px}.community-gifts .community-login h2{font-size:18px;margin:4px}.community-gifts .community-login .community-button{margin:10px 0 4px}.community-referral-card{display:grid;gap:8px;margin:16px 0;padding:18px;border:1px solid #edbd6e;border-radius:16px;background:linear-gradient(125deg,#ffe1a8,#fff7e6);color:#633910;box-shadow:0 4px 16px #b6781010}.community-referral-card h2{font-size:20px;margin:0}.community-referral-card p{font-size:13px;margin:0}.community-referral-card small,.community-referral-eyebrow{font-size:11px;line-height:1.6;color:#795b3b}.community-referral-reward{font-size:24px;color:#ad4a1c}.community-referral-card progress{width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;accent-color:#cf4b21}.community-referral-card>.community-button{margin-top:5px;min-height:44px}.community-task-filters{display:flex;gap:7px;overflow:auto;margin:0 0 14px;padding:2px}.community-filter{flex:0 0 auto;border:1px solid #e4d2b5;border-radius:18px;padding:7px 11px;background:#fff;color:#795b3b;font:inherit;font-size:12px}.community-filter[aria-pressed=true]{background:#7e381e;color:white;border-color:#7e381e}.community-task-filters button:focus-visible{outline:2px solid #7e381e;outline-offset:2px}
