.community-pulse{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;max-width:530px;margin:0 14px;min-width:0}
.cp-item{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 12px;border:1px solid var(--border-color,#dce5f2);background:var(--bg-primary,#fff);border-radius:13px;box-shadow:0 3px 12px #162d5810;color:var(--text-primary,#152847);font:inherit;white-space:nowrap;text-align:left}
.cp-item b{display:block;font-size:17px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.15}.cp-item small{font-size:10px;color:var(--text-secondary,#52647c)}
.cp-icon{display:grid;place-items:center;width:29px;height:29px;flex-shrink:0;border-radius:9px;background:#eaf2ff;color:#2463da}.cp-icon svg{width:17px;height:17px}.cp-accounts .cp-icon{background:#e5f8ef;color:#14804c}
.cp-top{cursor:pointer;border-color:#d6bef7;background:linear-gradient(120deg,#5a35ad,#7f45cc);color:#fff;box-shadow:0 4px 12px #6531b32b}.cp-top small{color:#f1e6ff}.cp-top .cp-icon{background:#ffffff20;color:#ffd971}.cp-top:hover{filter:brightness(1.08)}.cp-top:focus-visible,.cp-dialog button:focus-visible{outline:3px solid #fbbf24;outline-offset:3px}
.cp-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:85dvh;margin:auto;padding:0;border:1px solid var(--border-color,#dbe3f0);border-radius:20px;background:var(--bg-primary,#fff);color:var(--text-primary,#172a47);box-shadow:0 24px 100px #10234345}.cp-dialog::backdrop{background:#0c18385c;backdrop-filter:blur(4px)}
.cp-dialog-head{display:flex;justify-content:space-between;gap:10px;align-items:center;background:linear-gradient(120deg,#432b84,#7f45cc);color:white;padding:22px}.cp-dialog-head h2{font-size:22px;margin:0 0 4px}.cp-dialog-head p{margin:0;font-size:12px;color:#e8dbff}.cp-close{background:#ffffff20;border:1px solid #ffffff60;color:white;font-size:24px;width:36px;height:36px;border-radius:11px;cursor:pointer}.cp-body{padding:18px}.cp-leaders{list-style:none;margin:0;padding:0;display:grid;gap:7px}.cp-leaders li{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--border-color,#e6ebf3);border-radius:12px}.cp-rank{display:grid;place-items:center;min-width:30px;height:30px;border-radius:10px;background:#edf2f9;color:#40526b;font-weight:800}.cp-leaders li:nth-child(1) .cp-rank{background:#fff0bc;color:#8e5b00}.cp-leaders li:nth-child(2) .cp-rank{background:#e7edf5}.cp-leaders li:nth-child(3) .cp-rank{background:#fbe4d6;color:#954a23}.cp-player{flex:1;font-size:13px;font-weight:600}.cp-score{font-size:13px;font-weight:800;color:var(--action-blue,#2563eb)}.cp-note{font-size:12px;line-height:1.5;color:var(--text-secondary,#53637a);margin:14px 0}.cp-play{display:block;text-align:center;padding:12px;border-radius:11px;background:#15834c;color:white;font-weight:700;text-decoration:none}
@media(max-width:1100px){.community-pulse{gap:5px;margin:0 7px}.cp-item{padding:7px 8px;gap:5px}.cp-item b{font-size:14px}.cp-icon{width:25px;height:25px}}
@media(max-width:760px){body > header[role=banner]:has(.community-pulse){flex-wrap:wrap!important;height:auto!important;min-height:70px;gap:8px;padding-top:10px;padding-bottom:10px}.community-pulse{order:3;flex:1 0 100%;max-width:none;margin:0;justify-content:stretch}.cp-item{flex:1;justify-content:center;padding:7px 6px}.cp-item b{font-size:14px}.cp-item small{font-size:10px}}
html[data-theme=dark] .cp-item:not(.cp-top){background:#142037;color:#edf3ff;border-color:#30415d}html[data-theme=dark] .cp-item:not(.cp-top) small{color:#afc0db}html[data-theme=dark] .cp-dialog{background:#111d31;color:#edf3ff;border-color:#34445f}html[data-theme=dark] .cp-note{color:#b9c7dc}html[data-theme=dark] .cp-leaders li{border-color:#34445f}html[data-theme=dark] .cp-score{color:#89b8ff}
.cp-dialog .cp-dialog-head h2{color:#fff!important}.cp-dialog .cp-dialog-head p{color:#eee3ff!important}
@media(prefers-reduced-motion:reduce){.community-pulse *{transition:none!important}}
