/* One chrome frame, shared typography and flush tab strip. */
:is(#communityHub,#playerProfilePopup){width:min(1000px,94vw);height:min(680px,90dvh);max-width:94vw;max-height:90dvh;padding:0!important;border:2px solid transparent!important;border-radius:24px;background:linear-gradient(145deg,#e7eeeedb,#cad6d6c7) padding-box,linear-gradient(135deg,#fff,#7e8d96 26%,#f9fbfb 50%,#7b8993 76%,#fff) border-box!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);color:#262626;font:16px 'Barlow',sans-serif;box-shadow:0 18px 70px #0007;overflow:hidden}
:is(#communityHub,#playerProfilePopup)::backdrop{background:#06100d80;backdrop-filter:blur(3px)}
:is(#communityHub,#playerProfilePopup)[open]{display:flex;flex-direction:column}
.hub-tabs{display:flex;flex:none;min-height:52px;width:100%;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #fff9;background:#ffffff20}
:is(#communityHub,#playerProfilePopup) .hub-tabs button{border:0!important;border-right:1px solid #ffffff4d!important;border-radius:0!important;flex:1 0 auto;padding:13px 14px;font:600 17px 'Barlow Condensed',sans-serif;color:#263b40;background:transparent!important;box-shadow:none!important;white-space:nowrap}
:is(#communityHub,#playerProfilePopup) .hub-tabs button[aria-selected=true]{background:linear-gradient(#ffffff90,#ffffff20)!important;box-shadow:inset 0 -3px #537b75!important;color:#102c28}
.hub-content{padding:22px 26px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-color:#7b92908a transparent}
.hub-content h2{font:600 30px 'Barlow Condensed',sans-serif;margin:0 0 12px}.hub-content h3{font:600 21px 'Barlow Condensed',sans-serif;margin:15px 0 10px}.hub-content p{line-height:1.45;margin:8px 0}.hub-muted,.hub-content small{color:#516365}.hub-content small{display:block}
.hub-actions,.hub-subtabs,.hub-filter{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}
:is(#communityHub,#playerProfilePopup) button:not(.hub-tabs button){min-height:36px;padding:7px 14px;border:1px solid #f9ffff;border-radius:9px;background:linear-gradient(135deg,#ffffff70,#d9e6e327)!important;color:#262626;box-shadow:inset 0 1px #ffffff80;font:600 15px 'Barlow',sans-serif;cursor:pointer}
:is(#communityHub,#playerProfilePopup) button[aria-pressed=true]{outline:2px solid #738e87;outline-offset:-3px;background:linear-gradient(135deg,#bde6d48a,#e1faf599)!important}
:is(#communityHub,#playerProfilePopup) button:disabled{opacity:.5;cursor:default}:is(#communityHub,#playerProfilePopup) button:active:not(:disabled){filter:brightness(.85)}
:is(#communityHub,#playerProfilePopup) input,:is(#communityHub,#playerProfilePopup) select,:is(#communityHub,#playerProfilePopup) textarea{box-sizing:border-box;max-width:100%;border:1px solid #ffffffb0;border-radius:8px;background:#ffffff40;color:#262626;padding:8px 10px;font:inherit;min-height:36px}:is(#communityHub,#playerProfilePopup) label{display:flex;gap:10px;align-items:center;flex-wrap:wrap}:is(#communityHub,#playerProfilePopup) select option{background:#e2e9e7;color:#262626}
.hub-profile-hero{display:flex;gap:22px;align-items:center}.hub-portrait{width:104px;height:104px;object-fit:cover;border-radius:50%;border:2px solid #eaf3f0}.hub-hero-copy{flex:1;min-width:0}.hub-title{color:#47665a;letter-spacing:.06em;font-weight:600}.hub-badges{display:flex;height:48px;gap:5px}.hub-badges .profile-badge{position:relative!important;width:38px!important;height:45px!important;transform:none!important;inset:auto!important}.hub-xp{height:7px;border-radius:8px;background:#37494330;overflow:hidden;margin:8px 0;max-width:350px}.hub-xp i{display:block;height:100%;background:linear-gradient(90deg,#f1d748,#2abf66,#995d28,#238bea,#d971af,#20262c);border-radius:inherit}
.hub-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0}.hub-stat{padding:13px;background:#ffffff25;border:1px solid #ffffff50;border-radius:10px}.hub-stat strong{display:block;font:600 27px 'Barlow Condensed',sans-serif}.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hub-panel{padding:16px;border-radius:13px;border:1px solid #ffffff90;background:#ffffff25}
.hub-settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #ffffff50}.hub-settings-row input[type=checkbox]{accent-color:#537c68;width:20px;height:20px;min-height:20px}.hub-status{min-height:0;color:#8a3030;padding:0 26px}.hub-status:not(:empty){padding-top:8px;padding-bottom:8px;background:#fff7}.hub-empty{padding:25px 18px;text-align:center;color:#516461}.hub-loading{opacity:.7}
.hub-list{list-style:none;margin:0;padding:0}.hub-row{display:flex;gap:12px;align-items:center;padding:10px 5px;border-bottom:1px solid #ffffff60}.hub-row .hub-user{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:left;background:transparent!important;border:0!important;box-shadow:none!important}.hub-row .hub-user img{width:37px;height:37px;object-fit:cover;border-radius:50%}.hub-row .hub-user span{overflow:hidden;text-overflow:ellipsis}.hub-row .hub-place{width:30px;text-align:center;font-weight:700}.hub-row.hub-leader{padding:15px 8px;background:linear-gradient(110deg,#f3df9470,#fff2);border-radius:14px;margin-bottom:8px}.hub-leader .hub-user img{width:60px;height:60px}.hub-row[data-own=true]{box-shadow:inset 3px 0 #527f6c}.hub-row .profile-badge{position:relative!important;width:28px!important;height:34px!important;inset:auto!important;transform:none!important;flex:none}.hub-value{font-weight:600;white-space:nowrap}.hub-row .hub-actions{margin:0}.hub-subtabs button{flex:0 1 auto}.hub-scroll-target{scroll-margin:10px}
.hub-cabinet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:20px;background:radial-gradient(ellipse at 50% 0,#63777b,#172126 75%);border:2px solid #929fa5;border-radius:14px;box-shadow:inset 0 4px 20px #0008;color:#e8eef0;min-height:170px}.hub-shelf{display:flex;flex-direction:column;align-items:center;padding:5px 4px 13px;border-bottom:3px solid #aabbbd;box-shadow:0 9px 8px -8px #000;min-width:0;text-align:center}.hub-shelf img{height:104px;width:100%;object-fit:contain;filter:drop-shadow(0 7px 5px #0006)}.hub-shelf strong{font:600 15px 'Barlow Condensed';letter-spacing:.05em;margin:8px 0}.hub-shelf button{color:#edf6f3!important;background:#ffffff14!important}.hub-award-detail{display:flex;align-items:center;gap:25px}.hub-award-detail img{width:180px;height:210px;object-fit:contain}.hub-cue{height:18px;border-radius:2px 50% 50% 2px;background:linear-gradient(90deg,#273033 0 22%,#dcc18b 22% 85%,#ead8a3 85% 98%,#5b827e 98%);box-shadow:0 5px 8px #0003;margin:25px 10px}.hub-wallet-amount{display:flex;align-items:center;gap:12px;font:600 36px 'Barlow Condensed'}.hub-wallet-amount img{height:44px;width:55px;object-fit:contain}.hub-ledger{width:100%;border-collapse:collapse}.hub-ledger td,.hub-ledger th{padding:10px;text-align:left;border-bottom:1px solid #fff5}.hub-ledger .positive{color:#267446}.hub-news-date{letter-spacing:.08em;text-transform:uppercase;color:#4c7066}.hub-order{display:flex;justify-content:center;gap:4px;margin:5px 0}.hub-order button{padding:3px 8px!important;min-height:30px!important}
#currencyHUD [data-currency],.menu-brand{cursor:pointer}.reduced-motion *, .reduced-motion *::before,.reduced-motion *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
@media(max-height:500px){:is(#communityHub,#playerProfilePopup){height:94dvh;max-height:94dvh;border-radius:17px}.hub-tabs{min-height:40px}:is(#communityHub,#playerProfilePopup) .hub-tabs button{padding:9px 11px;font-size:15px}.hub-content{padding:13px 18px;font-size:14px}.hub-content h2{font-size:25px}.hub-portrait{width:76px;height:76px}.hub-stats{gap:6px;margin:12px 0}.hub-stat{padding:8px}.hub-stat strong{font-size:22px}.hub-shelf img{height:80px}.hub-cabinet{gap:12px;padding:12px}.hub-content button{font-size:14px!important}}
@media(max-width:650px){.hub-grid{grid-template-columns:1fr}.hub-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.hub-row{gap:6px}.hub-value{font-size:13px}.hub-filter select{max-width:180px}}
body :is(#communityHub,#playerProfilePopup){overflow:hidden!important}body :is(#communityHub,#playerProfilePopup)::after{display:none}body :is(#communityHub,#playerProfilePopup)::backdrop{background:#07151080!important;backdrop-filter:blur(3px)!important}:is(#communityHub,#playerProfilePopup) .hub-inline-badges{display:inline-flex;align-items:center;gap:4px}.hub-achievement-medal{width:78px;height:90px;display:grid;place-items:center;font-size:45px;color:#ffedb7;clip-path:polygon(12% 0,88% 0,100% 20%,90% 76%,50% 100%,10% 76%,0 20%);background:linear-gradient(135deg,#f4e4b4,#72766b 30%,#d9cb97 48%,#354a44 53%,#9e9a7c);text-shadow:0 3px 3px #0008;box-shadow:inset 0 0 15px #0005}
#communityNotice{position:fixed;z-index:45;right:16px;bottom:62px;max-width:min(310px,40vw);padding:8px 12px;border:0!important;border-radius:11px!important;font:500 14px 'Barlow',sans-serif;box-shadow:0 6px 18px #0003!important}#communityNotice::after{inset:0;padding:var(--fcs-rim-notice);border-radius:inherit}#communityNotice button{background:transparent!important;border:0!important;box-shadow:none!important;text-align:left;padding:0;white-space:normal;color:#262626!important;cursor:pointer}#communityNotice[hidden],body.playing #communityNotice{display:none!important}
body .menu-brand{pointer-events:auto}

/* Player hub: silver glass, flush file tabs and compact window controls. */
body :is(#communityHub,#playerProfilePopup){width:min(1100px,96vw);max-width:96vw;background:linear-gradient(145deg,#edf2f3c9,#a9b9c1a6) padding-box,linear-gradient(135deg,#fff 0%,#83919a 22%,#f8fcff 46%,#6a7884 73%,#eaf6ff 100%) border-box!important;backdrop-filter:blur(26px) saturate(1.12);-webkit-backdrop-filter:blur(26px) saturate(1.12);border-radius:20px;font-size:14px}
.hub-header{display:flex;flex:none;align-items:stretch;min-height:46px;border-bottom:1px solid #f4fbffb0;background:linear-gradient(180deg,#ffffff35,#c8d3da18)}
.hub-tabs{min-height:0;min-width:0;flex:1;border:0;overflow:visible;width:auto}
:is(#communityHub,#playerProfilePopup) .hub-tabs button{flex:1 1 0;min-width:0;padding:10px 5px;font:600 clamp(11px,1.55vw,16px) 'Barlow Condensed',sans-serif;letter-spacing:.015em;color:#52616e;background:linear-gradient(#83939b26,#a0adb52e)!important;border-right:1px solid #ffffff45!important;opacity:.76;transition:background .15s,opacity .15s}
:is(#communityHub,#playerProfilePopup) .hub-tabs button[aria-selected=true]{color:#24333e;opacity:1;background:linear-gradient(#ffffffae,#e5edf126)!important;box-shadow:inset 0 2px #ffffffcf,inset 0 -2px #eaf2f6!important}
:is(#communityHub,#playerProfilePopup) .hub-window-tools{display:flex;align-items:center;gap:4px;padding:0 8px;border-left:1px solid #ffffff45}
:is(#communityHub,#playerProfilePopup) .hub-window-tools button{display:grid;place-items:center;flex:none;width:29px;height:29px;min-height:29px;padding:5px;border-radius:8px}
.hub-window-tools svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #fff)}
body :is(#communityHub,#playerProfilePopup).hub-compact{width:min(820px,96vw);height:72dvh;max-height:72dvh}
:is(#communityHub,#playerProfilePopup).hub-compact .hub-tabs button{font-size:12px;padding-inline:3px}
.hub-content{padding:18px 24px;background:radial-gradient(ellipse at 15% 0,#ffffff33,transparent 65%)}
.hub-content h2{font-size:24px;font-weight:600;margin-bottom:9px;letter-spacing:.015em}.hub-content h3{font-size:18px;margin:12px 0 8px}.hub-content strong{font-weight:600}.hub-content p{font-size:14px}.hub-content small{font-size:12px;color:#526370}
:is(#communityHub,#playerProfilePopup) button:not(.hub-tabs button){border:1px solid transparent;background:linear-gradient(135deg,#edf3f37a,#b6c6cc42) padding-box,linear-gradient(135deg,#ffffff,#84929b 24%,#f4faff 51%,#82939e 78%,#e7f4fc) border-box!important;box-shadow:inset 0 1px 0 #ffffff80,0 2px 4px #233a4612;font-size:13px;font-weight:500;border-radius:8px;min-height:34px;padding:7px 12px}
:is(#communityHub,#playerProfilePopup) button[aria-pressed=true]{outline:none;background:linear-gradient(135deg,#f9fcfcc7,#dbe6ed8a) padding-box,linear-gradient(135deg,#fff,#83919a,#f4faff) border-box!important}
:is(#communityHub,#playerProfilePopup) button:focus-visible{outline:2px solid #617b90;outline-offset:-3px}:is(#communityHub,#playerProfilePopup) button:disabled{opacity:.48}
:is(#communityHub,#playerProfilePopup) .hub-subtabs{gap:0;flex-wrap:nowrap;border-bottom:1px solid #f7fbffbd;margin:10px 0 16px;align-items:stretch}
:is(#communityHub,#playerProfilePopup) .hub-subtabs button{border-radius:5px 5px 0 0;box-shadow:none;margin-bottom:-1px;padding:9px 17px;opacity:.64;border:1px solid #eaf0f470;background:linear-gradient(#8495a02c,#b3c1c92b)!important;font:600 14px 'Barlow Condensed',sans-serif;letter-spacing:.03em}
:is(#communityHub,#playerProfilePopup) .hub-subtabs button[aria-pressed=true]{opacity:1;background:linear-gradient(#ffffffb0,#eef4f64d)!important;border-bottom-color:transparent;box-shadow:inset 0 2px #fff9}
:is(#communityHub,#playerProfilePopup) input,:is(#communityHub,#playerProfilePopup) select,:is(#communityHub,#playerProfilePopup) textarea{background:linear-gradient(#ffffff63,#d1dce33b);border-color:#f4faffc0;border-radius:7px;font-size:13px;box-shadow:inset 0 1px 3px #31495812;min-height:34px}
.hub-profile-hero{gap:17px;position:relative;padding-right:170px;min-height:116px}.hub-profile-hero h2{font-size:23px;margin:3px 0}.hub-profile-hero .hub-badges{position:absolute;right:0;top:24px;height:54px}.hub-profile-hero .hub-badges .profile-badge{width:42px!important;height:51px!important}.hub-portrait{width:88px;height:88px;box-shadow:0 3px 10px #253a4826,inset 0 0 0 1px #fff;border-color:#f5fbff}
.hub-profile-actions{justify-content:flex-end;margin-top:-27px;margin-bottom:20px;position:relative;max-width:100%}
.hub-xp{width:220px;max-width:100%;height:6px;background:linear-gradient(#40586740,#6b829433);position:relative;isolation:isolate;margin:8px 0 5px}
.hub-xp i{width:100%;border-radius:inherit;background:linear-gradient(90deg,#2cc9c0 0%,#2f7bf0 28%,#9b2fd8 58%,#e8264f 82%,#ff4a2e 100%);filter:brightness(1.22) saturate(1.15);mask-image:linear-gradient(90deg,#000 max(0px,calc(var(--hub-xp) - 1px)),transparent var(--hub-xp));-webkit-mask-image:linear-gradient(90deg,#000 max(0px,calc(var(--hub-xp) - 1px)),transparent var(--hub-xp))}
.hub-stats{gap:8px;margin:14px 0}.hub-stat{border:1px solid #f6fbff9c;background:linear-gradient(135deg,#f5f9fc6e,#ffffff12);padding:10px 13px;border-radius:10px;box-shadow:inset 0 1px #fff5}.hub-stat strong{font-size:22px;color:#243a48;margin-top:3px}.hub-panel{background:linear-gradient(135deg,#edf4f55c,#e8eff222);border:1px solid #f4fbffa3;box-shadow:inset 0 1px #fff3;border-radius:12px;padding:15px}
.hub-cabinet{background:radial-gradient(ellipse at 50% 0,#ffffff63,transparent 75%),linear-gradient(135deg,#dce6ec57,#9eafb953);border:1px solid #f4fbffbd;box-shadow:inset 0 2px 12px #50657320;color:#2a3c48;min-height:150px;border-radius:12px}.hub-shelf{border-bottom:2px solid #f4fbffbd;box-shadow:0 9px 8px -8px #28455655}.hub-shelf strong{font-size:14px}.hub-shelf button{color:#262626!important}.hub-collection-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:24px;padding:5px 22px;max-width:660px;margin:auto}.hub-collection-empty img{height:105px;width:90px;object-fit:contain;filter:drop-shadow(0 9px 7px #30475238)}.hub-collection-empty small{letter-spacing:.13em;font-size:10px}.hub-collection-empty h3{margin:7px 0}.hub-collection-empty p{max-width:410px;color:#526370}.hub-achievement-medal{background:linear-gradient(135deg,#f7eed5,#a1a7a1 26%,#fff4d0 45%,#a8b9c0 54%,#f1e4bc);color:#52636e;text-shadow:0 1px #fff;box-shadow:inset 0 0 12px #ffffffbd}
.hub-cue-stage{padding:42px 12px;background:radial-gradient(ellipse at 50% 70%,#69818d24,transparent 65%);overflow:hidden}.hub-cue-model{display:block;width:100%;height:auto;transform:rotate(-4deg);filter:drop-shadow(0 8px 4px #28384130)}.hub-cue-details{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:10px 0 18px}.hub-cue-details>div{overflow:hidden;border:1px solid #effaff9c;border-radius:10px;background:linear-gradient(140deg,#ffffff4a,#fff1);padding:10px 14px}.hub-cue-detail{display:block;height:60px;background-image:url('./assets/cue-showcase.webp');background-repeat:no-repeat;background-size:1800px auto}.hub-tip{background-position:left 45%}.hub-joint{background-position:76% 45%}.hub-cue-details small{font-size:11px;letter-spacing:.04em}
.hub-wallet-amount{font-size:28px}.hub-wallet-amount img{height:36px;width:47px}
.hub-community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.hub-social{display:flex;align-items:center;gap:13px;min-width:0}.hub-social h3{margin:0 0 4px}.hub-social small{font-size:11px}.hub-social-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;border:1px solid #f5fbffb0;background:linear-gradient(135deg,#ffffffac,#a7bcc553);font:600 25px 'Barlow Condensed',sans-serif;color:#425966;box-shadow:0 3px 9px #344c5b15}.hub-community-bottom{margin-top:14px}.hub-replay-empty{text-align:center;display:flex;flex-direction:column;align-items:center;padding:35px 20px;background:radial-gradient(ellipse at center,#ffffff6e,transparent 70%);border:1px solid #f1f8ff87;border-radius:14px}.hub-replay-mark{width:74px;height:74px;display:grid;place-items:center;border:1px solid #faffff;border-radius:50%;font-size:24px;color:#506774;box-shadow:0 6px 18px #213a4825,inset 0 1px #fff;background:linear-gradient(140deg,#ffffffb0,#a6bac44a);margin-bottom:22px;padding-left:3px}.hub-coming{display:inline-block;color:#5c6e7b;border:1px solid #eaf4ff99;border-radius:20px;padding:5px 14px;margin-top:10px;font-size:11px;letter-spacing:.08em}
@media(max-height:500px){.hub-header{min-height:38px}.hub-content{padding:12px 18px}.hub-content h2{font-size:21px}.hub-content h3{font-size:16px}.hub-content p{font-size:13px}.hub-content button{font-size:12px!important}.hub-profile-hero{min-height:100px;padding-right:140px}.hub-portrait{width:74px;height:74px}.hub-profile-hero .hub-badges{top:10px}.hub-profile-actions{margin-top:-19px;margin-bottom:12px}.hub-content small{font-size:11px}.hub-cue-stage{padding:25px 12px}.hub-collection-empty img{height:85px}.hub-content .hub-stat strong{font-size:20px}.hub-community-grid{gap:8px}.hub-social{padding:10px;gap:9px}.hub-replay-empty{padding:20px}.hub-replay-mark{width:54px;height:54px;margin-bottom:12px}.hub-window-tools{gap:2px!important;padding-inline:5px!important}}
@media(max-width:720px){:is(#communityHub,#playerProfilePopup) .hub-tabs button,:is(#communityHub,#playerProfilePopup).hub-compact .hub-tabs button{font-size:11px;padding-inline:1px}:is(#communityHub,#playerProfilePopup) .hub-window-tools button{width:25px;height:27px;min-height:27px;padding:4px}.hub-profile-hero{padding-right:80px}.hub-profile-actions{margin-top:8px;justify-content:flex-start}.hub-community-grid{grid-template-columns:repeat(2,1fr)}.hub-subtabs button{padding-inline:10px!important}.hub-profile-hero .hub-badges .profile-badge{width:32px!important;height:40px!important}}
/* Mask the chrome itself so it never makes the glass fill opaque. */
body :is(#communityHub,#playerProfilePopup){border:0!important;background:linear-gradient(145deg,#edf2f3b5,#b5c4ce99) padding-box!important;border-radius:20px!important;backdrop-filter:blur(26px) saturate(1.12)!important;-webkit-backdrop-filter:blur(26px) saturate(1.12)!important}
body :is(#communityHub,#playerProfilePopup)::after{display:block;inset:0;padding:var(--fcs-rim-window);border-radius:inherit;background:var(--fcs-window-chrome) 0 0 / 100% 100% no-repeat;pointer-events:none}
:is(#communityHub,#playerProfilePopup) button:not(.hub-tabs button){position:relative;border:1px solid transparent!important;background:linear-gradient(135deg,#edf3f37a,#b6c6cc42)!important}
:is(#communityHub,#playerProfilePopup) button:not(.hub-tabs button)::after{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:linear-gradient(135deg,#fff,#85959f 25%,#f6fbff 49%,#8395a1 74%,#f1faff);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;pointer-events:none}
:is(#communityHub,#playerProfilePopup) button[aria-pressed=true]{background:linear-gradient(135deg,#f9fcfcc7,#dbe6ed8a)!important}
:is(#communityHub,#playerProfilePopup) .hub-subtabs button::after,:is(#communityHub,#playerProfilePopup) .hub-user::after{display:none}
:is(#communityHub,#playerProfilePopup) .hub-subtabs button{border:1px solid #eef7ff9c!important;border-radius:4px 4px 0 0!important;background:linear-gradient(#8495a02c,#b3c1c92b)!important}
:is(#communityHub,#playerProfilePopup) .hub-subtabs button[aria-pressed=true]{background:linear-gradient(#ffffffb0,#eef4f64d)!important;border-bottom-color:transparent!important}
:is(#communityHub,#playerProfilePopup) .hub-user{background:transparent!important;border:0!important}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button{box-sizing:border-box;width:30px;height:30px;min-height:30px;padding:5px!important;border-radius:8px}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools svg{width:18px;height:18px;display:block;color:#314651;stroke:#314651;stroke-width:1.7}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button[aria-pressed=true] svg{transform:rotate(180deg)}
@media(max-width:720px){:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button{width:26px;height:28px;min-height:28px;padding:3px!important}}
.hub-profile-hero{padding-right:235px;min-height:122px;margin-bottom:14px}.hub-profile-hero .hub-profile-actions{position:absolute;right:0;bottom:3px;margin:0;justify-content:flex-end;max-width:230px}.hub-profile-hero h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hub-profile-hero .hub-badges{top:8px}
.hub-social-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media(max-height:500px){.hub-profile-hero{min-height:110px;margin-bottom:8px;padding-right:215px}.hub-profile-hero .hub-profile-actions{max-width:215px;gap:6px}}
@media(max-width:720px){.hub-profile-hero{padding-right:190px}.hub-profile-hero .hub-profile-actions{max-width:190px;gap:5px}.hub-profile-hero .hub-profile-actions button{padding-inline:8px}}

/* Continuous silver bevel: no subpixel masked edges or alternating bright bands. */
:is(#communityHub,#playerProfilePopup) button:not(.hub-tabs button){border:1px solid #c3cfd7!important;border-top-color:#f7fbff!important;border-bottom-color:#8d9ca7!important;background:linear-gradient(155deg,#f0f5f77a,#bccbd442)!important;box-shadow:inset 0 1px 0 #ffffff40,0 1px 2px #21344116!important}
:is(#communityHub,#playerProfilePopup) button:not(.hub-tabs button)::after{display:none}
:is(#communityHub,#playerProfilePopup) .hub-user{border:0!important;box-shadow:none!important;background:transparent!important}
:is(#communityHub,#playerProfilePopup) .hub-tabs button,:is(#communityHub,#playerProfilePopup) .hub-subtabs button{transition:none!important;filter:none!important;opacity:.73}
:is(#communityHub,#playerProfilePopup) .hub-tabs button[aria-selected=true],:is(#communityHub,#playerProfilePopup) .hub-subtabs button[aria-pressed=true]{opacity:1}
:is(#communityHub,#playerProfilePopup) .hub-tabs button:active,:is(#communityHub,#playerProfilePopup) .hub-subtabs button:active{filter:none!important}
:is(#communityHub,#playerProfilePopup) .hub-subtabs button{background:linear-gradient(#8495a02c,#b3c1c92b)!important;box-shadow:none!important;border-color:#eef7ff9c!important}
:is(#communityHub,#playerProfilePopup) .hub-subtabs button[aria-pressed=true]{background:linear-gradient(#ffffffb0,#eef4f64d)!important;border-bottom-color:transparent!important;box-shadow:inset 0 2px #fff9!important}
/* Profile identity and actions occupy separate grid rows; no badge can cover a control. */
:is(#communityHub,#playerProfilePopup) .hub-profile-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px 18px;padding:0;min-height:0;margin:2px 0 17px;align-items:center}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-badges{position:static;height:54px;align-self:center;justify-self:end;display:flex;align-items:center}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-profile-actions{position:static;grid-column:1/-1;max-width:none;margin:0;justify-content:flex-end;gap:8px}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-portrait{width:82px;height:82px}
.hub-name-line{display:flex;align-items:center;gap:8px;min-width:0}.hub-name-line h2{margin:2px 0!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(#communityHub,#playerProfilePopup) .hub-name-line .hub-name-edit{width:27px;height:27px;min-height:27px;flex:none;padding:4px!important;border-radius:6px;display:grid;place-items:center}
.hub-name-edit svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.hub-name-form{display:flex;gap:6px;align-items:center;margin:5px 0}.hub-name-form input{width:240px;min-width:0;flex:0 1 240px}:is(#communityHub,#playerProfilePopup) .hub-name-form button{flex:none;padding:4px 9px;font-size:17px!important}
:is(#communityHub,#playerProfilePopup) .hub-name-line[hidden],:is(#communityHub,#playerProfilePopup) .hub-name-form[hidden]{display:none!important}
.hub-stats-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:12px 0 18px;font-variant-numeric:tabular-nums;border-top:1px solid #f6fbffc7;border-bottom:1px solid #7e929d54;background:linear-gradient(120deg,#ffffff26,#e3edf00a)}
.hub-stats-table th{font-weight:400;text-align:left;color:#455965;width:34%;padding:9px 12px;font-size:13px}.hub-stats-table td{text-align:right;width:16%;font:600 20px 'Barlow Condensed',sans-serif;color:#243b48;padding:7px 14px}
.hub-stats-table tr+tr{border-top:1px solid #eef6fa55}.hub-stats-table tr:nth-child(even){background:#c1cfd514}.hub-stats-table th:nth-child(3){border-left:1px solid #f5faff70;padding-left:22px}
:is(#communityHub,#playerProfilePopup) .hub-subtabs button{border-radius:0!important;opacity:1!important;color:#3c4c56!important;background:linear-gradient(#7e90993d,#91a3ad32)!important}
:is(#communityHub,#playerProfilePopup) .hub-subtabs button[aria-pressed=true]{background:linear-gradient(#ffffffb0,#eef4f64d)!important;color:#24333e!important;opacity:1!important}
.hub-cue-model{transform:rotate(-1.25deg)}
@media(max-height:500px){:is(#communityHub,#playerProfilePopup) .hub-profile-hero{gap:8px 15px;margin-bottom:12px}:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-portrait{width:70px;height:70px}.hub-stats-table th{padding:7px 11px;font-size:12px}.hub-stats-table td{padding:6px 12px;font-size:18px}.hub-stats-table{margin:10px 0 14px}}
@media(max-width:720px){:is(#communityHub,#playerProfilePopup) .hub-profile-hero{gap:8px 12px}.hub-stats-table th:nth-child(3){padding-left:14px}.hub-stats-table th{font-size:12px;padding-inline:9px}}
/* Outrank the shared popup press-state rule, including while the pointer is held. */
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button[aria-pressed=false]:not(:disabled){background:linear-gradient(#7e90993d,#91a3ad32)!important;border-radius:0!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button[aria-pressed=true]:not(:disabled){background:linear-gradient(#ffffffb0,#eef4f64d)!important;border-radius:0!important}
body :is(#communityHub,#playerProfilePopup) .hub-header .hub-tabs button[aria-selected=false]:not(:disabled){background:linear-gradient(#83939b26,#a0adb52e)!important}
body :is(#communityHub,#playerProfilePopup) .hub-header .hub-tabs button[aria-selected=true]:not(:disabled){background:linear-gradient(#ffffffae,#e5edf126)!important}

:is(#communityHub,#playerProfilePopup) .hub-profile-hero.hub-with-trophy{grid-template-columns:auto minmax(0,1fr) auto auto}

/* Sidebar hub: navigation and window controls meet the chrome frame. */
body :is(#communityHub,#playerProfilePopup)[open]{display:grid;grid-template-columns:156px minmax(0,1fr);grid-template-rows:40px auto minmax(0,1fr)}
:is(#communityHub,#playerProfilePopup) .hub-sidebar{grid-column:1;grid-row:1/-1;display:flex;flex-direction:column;min-height:0;border-right:1px solid #f5fbff85;background:linear-gradient(120deg,#ffffff20,#9aaeb923);overflow:hidden}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand{height:65px;min-height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 13px}
.hub-crest{width:35px;height:43px;filter:drop-shadow(0 2px 2px #263b4938)}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand button{width:29px;height:29px;min-height:29px;padding:5px;border-radius:5px}
:is(#communityHub,#playerProfilePopup) .hub-sidebar svg:not(.hub-crest){width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
:is(#communityHub,#playerProfilePopup) .hub-tabs{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;overflow:auto;scrollbar-width:thin;background:transparent;border:0}
:is(#communityHub,#playerProfilePopup) .hub-tabs button,:is(#communityHub,#playerProfilePopup).hub-compact .hub-tabs button{display:flex;align-items:center;gap:13px;flex:1 0 32px;max-height:48px;width:100%;box-sizing:border-box;text-align:left;padding:7px 14px;font-size:16px;border:0!important;border-bottom:1px solid #ffffff38!important;border-radius:0!important}
body :is(#communityHub,#playerProfilePopup) .hub-sidebar .hub-tabs button[aria-selected=false]:not(:disabled){background:linear-gradient(#83939b26,#a0adb52e)!important}
body :is(#communityHub,#playerProfilePopup) .hub-sidebar .hub-tabs button[aria-selected=true]:not(:disabled){background:linear-gradient(#ffffffae,#e5edf126)!important;box-shadow:inset 2px 0 #ffffffcf!important}
:is(#communityHub,#playerProfilePopup) .hub-header{grid-column:2;grid-row:1;min-height:0;display:flex;justify-content:space-between;align-items:stretch}
.hub-page-label{align-self:center;padding-left:20px;font:600 14px 'Barlow Condensed',sans-serif;letter-spacing:.1em;color:#50616c;text-transform:uppercase}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools{padding:0!important;gap:0!important;align-items:stretch;border:0}
:is(#communityHub,#playerProfilePopup) .hub-window-tools>div{display:flex}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button{width:40px;height:40px;min-height:40px;border-radius:0;padding:10px!important;box-shadow:inset 0 1px #ffffff40!important}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button[data-tab=Settings]{opacity:.73}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button[data-tab=Settings][aria-selected=true]{opacity:1;background:linear-gradient(#ffffffae,#e5edf126)!important}
:is(#communityHub,#playerProfilePopup) .hub-status{grid-column:2;grid-row:2;min-width:0}
:is(#communityHub,#playerProfilePopup) .hub-content{grid-column:2;grid-row:3;min-width:0;min-height:0}
body :is(#communityHub,#playerProfilePopup).hub-nav-collapsed{grid-template-columns:56px minmax(0,1fr)}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-tabs button{justify-content:center;padding-inline:0;gap:0}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-tabs button>span{display:none}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand{height:89px;min-height:89px;flex-direction:column;justify-content:center;gap:5px;padding:0}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed [data-action=sidebar] svg{transform:rotate(180deg)}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero{grid-template-columns:auto minmax(0,1fr);column-gap:16px}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-profile-ranks{grid-column:2/-1;height:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:16px;justify-self:stretch;margin:3px 0}
:is(#communityHub,#playerProfilePopup) .hub-rank-pair{display:flex;align-items:center;gap:7px;min-width:0}
:is(#communityHub,#playerProfilePopup) .hub-rank-pair>span{display:flex}
:is(#communityHub,#playerProfilePopup) .hub-rank-pair small{font:500 10px 'Barlow',sans-serif;letter-spacing:.12em;color:#526370;margin-bottom:2px}
:is(#communityHub,#playerProfilePopup) .hub-rank-pair strong{font:600 21px/1.1 'Barlow Condensed',sans-serif;white-space:nowrap;color:#263d4a}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero.hub-with-trophy{grid-template-columns:auto minmax(0,1fr) auto}
:is(#communityHub,#playerProfilePopup) .hub-with-trophy>img:not(.hub-portrait){grid-column:3;grid-row:1}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-badges .profile-badge{width:38px!important;height:45px!important}
@media(min-width:800px){:is(#communityHub,#playerProfilePopup):not(.hub-compact) .hub-profile-hero{grid-template-columns:auto minmax(0,1fr) auto}:is(#communityHub,#playerProfilePopup):not(.hub-compact) .hub-profile-hero .hub-profile-ranks{grid-column:3;grid-row:1;gap:18px}:is(#communityHub,#playerProfilePopup):not(.hub-compact) .hub-profile-hero.hub-with-trophy{grid-template-columns:auto minmax(0,1fr) auto auto}:is(#communityHub,#playerProfilePopup):not(.hub-compact) .hub-with-trophy>img:not(.hub-portrait){grid-column:4}}
@media(max-height:500px){body :is(#communityHub,#playerProfilePopup)[open]{grid-template-columns:132px minmax(0,1fr);grid-template-rows:34px auto minmax(0,1fr)}:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand{height:48px;min-height:48px;padding-inline:12px}.hub-crest{height:35px;width:29px}:is(#communityHub,#playerProfilePopup) .hub-tabs button,:is(#communityHub,#playerProfilePopup).hub-compact .hub-tabs button{font-size:14px;flex-basis:27px;padding:4px 12px;gap:10px}:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button{width:35px;height:34px;min-height:34px;padding:7px!important}:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-badges .profile-badge{width:32px!important;height:38px!important}:is(#communityHub,#playerProfilePopup) .hub-rank-pair strong{font-size:19px}body :is(#communityHub,#playerProfilePopup).hub-nav-collapsed{grid-template-columns:48px minmax(0,1fr)}:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand{height:76px;min-height:76px}}
body :is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button[data-tab=Settings]:not(:disabled){filter:none!important;transition:none!important;background:linear-gradient(#83939b26,#a0adb52e)!important}
body :is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button[data-tab=Settings][aria-selected=true]:not(:disabled){background:linear-gradient(#ffffffae,#e5edf126)!important}

/* Unframed, compact text navigation; use the content area right up to the top. */
body :is(#communityHub,#playerProfilePopup)[open]{grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
:is(#communityHub,#playerProfilePopup) .hub-sidebar{border:0;background:linear-gradient(120deg,#7489950e,#334b5a0c)}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand{height:52px;min-height:52px;padding:0 8px;gap:4px}
:is(#communityHub,#playerProfilePopup) .hub-sidebar .hub-tabs button,:is(#communityHub,#playerProfilePopup).hub-compact .hub-sidebar .hub-tabs button{padding:7px 10px;gap:0;border:0!important;box-shadow:none!important;opacity:1!important}
body :is(#communityHub,#playerProfilePopup) .hub-sidebar .hub-tabs button[aria-selected=false]:not(:disabled){background:#2138460d!important;color:#435761!important}
body :is(#communityHub,#playerProfilePopup) .hub-sidebar .hub-tabs button[aria-selected=true]:not(:disabled){background:transparent!important;box-shadow:none!important;color:#263b45!important}
:is(#communityHub,#playerProfilePopup) .hub-header{position:absolute;right:0;top:0;z-index:3;grid-area:auto;min-height:0;background:none;border:0;display:block}
:is(#communityHub,#playerProfilePopup) .hub-status{grid-row:1;grid-column:2;padding-right:120px}
:is(#communityHub,#playerProfilePopup) .hub-content{grid-row:2;grid-column:2;padding:12px 12px 16px 16px}
:is(#communityHub,#playerProfilePopup) .hub-content>:first-child{margin-right:110px}
:is(#communityHub,#playerProfilePopup) .hub-content>.hub-profile-hero:first-child{margin-right:110px}
body :is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button:not(:disabled),body :is(#communityHub,#playerProfilePopup) .hub-sidebar-brand button:not(:disabled){border:0!important;box-shadow:none!important;background:transparent!important;outline-offset:-3px;filter:none!important}
body :is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button[aria-selected=true]:not(:disabled),body :is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button[aria-pressed=true]:not(:disabled){background:transparent!important}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-toggle{width:35px;height:43px;min-height:0;padding:0!important;display:grid;place-items:center;cursor:default}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand [data-action=sidebar]{width:27px;min-width:27px;height:30px;padding:3px!important}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand [data-action=sidebar] svg{width:22px;height:22px}
body :is(#communityHub,#playerProfilePopup).hub-nav-collapsed{grid-template-columns:45px minmax(0,1fr)}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand{height:52px;min-height:52px;padding:0;justify-content:center;gap:0}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed [data-action=sidebar],:is(#communityHub,#playerProfilePopup) .hub-tabs[hidden]{display:none!important}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-brand-toggle{cursor:pointer}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button:not(:disabled){border:0!important;box-shadow:none!important;opacity:1!important;color:#435761!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button[aria-pressed=false]:not(:disabled){background:#2138460d!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button[aria-pressed=true]:not(:disabled){background:transparent!important;color:#263b45!important}
:is(#communityHub,#playerProfilePopup) .hub-subtabs{border:0}
@media(max-height:500px){body :is(#communityHub,#playerProfilePopup)[open]{grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand,:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand{height:43px;min-height:43px}:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-toggle{width:29px;height:35px}:is(#communityHub,#playerProfilePopup) .hub-sidebar .hub-tabs button,:is(#communityHub,#playerProfilePopup).hub-compact .hub-sidebar .hub-tabs button{padding:4px 8px}body :is(#communityHub,#playerProfilePopup).hub-nav-collapsed{grid-template-columns:39px minmax(0,1fr)}:is(#communityHub,#playerProfilePopup) .hub-content{padding:10px 10px 12px 12px}:is(#communityHub,#playerProfilePopup) .hub-content>:first-child,:is(#communityHub,#playerProfilePopup) .hub-content>.hub-profile-hero:first-child{margin-right:98px}}
/* Keep the shared popup press finish off these intentionally bare controls. */
body :is(#communityHub,#playerProfilePopup) .hub-sidebar .hub-sidebar-brand button[data-action]:not(:disabled),body :is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button:is([data-action],[data-tab]):not(:disabled){border:0!important;box-shadow:none!important;background:transparent!important;filter:none!important}

/* Compact icon rail, restrained separators and undistorted profile crests. */
:is(#communityHub,#playerProfilePopup){touch-action:pan-x pan-y}
:is(#communityHub,#playerProfilePopup) .hub-tabs button>svg{display:none}
body :is(#communityHub,#playerProfilePopup) .hub-sidebar .hub-tabs button[aria-selected]:not(:disabled){color:#000!important}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-tabs button>svg{display:block;width:19px;height:19px}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar .hub-tabs button{justify-content:center;padding-inline:0;gap:0}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand{align-items:center;justify-content:center;flex-direction:row}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-toggle{box-sizing:border-box;flex:none}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand .hub-brand-toggle{width:30px;height:38px;min-height:38px;padding:0!important}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-brand-toggle .hub-crest{display:block;width:26px;height:32px;flex:none;margin:0}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools .hub-settings-gear{width:21px;height:21px;stroke:#465964;stroke-width:1.2;filter:drop-shadow(0 1px 0 #f5fbff80)}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools .hub-settings-gear path{fill:#c3d0d68c;stroke-linejoin:round}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools .hub-settings-gear circle{fill:none;stroke-width:1.4}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button:not(:disabled){border:0!important;border-bottom:1px solid #92979b66!important;box-shadow:none!important;color:#000!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button+button:not(:disabled){border-left:1px solid #a3a7ab33!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button[aria-pressed=true]:not(:disabled){background:linear-gradient(#e5e8eb3d,#bfc5ca24)!important;border-bottom-color:#d6dbe0!important;box-shadow:inset 0 -1px #e8ecef80!important}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-badges .profile-badge{width:40px!important;height:40px!important;background-size:contain}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-badges .profile-badge b{font-size:17px}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-name-line .hub-name-edit:not(:disabled),body :is(#communityHub,#playerProfilePopup) .hub-content .hub-name-form button:not(:disabled){background:transparent!important;border:0!important;box-shadow:none!important;color:#415964!important}
:is(#communityHub,#playerProfilePopup) .hub-name-line .hub-name-edit{width:28px;height:28px;padding:5px!important;border-radius:0;opacity:.8}
:is(#communityHub,#playerProfilePopup) .hub-name-form{gap:3px;max-width:100%;margin:2px 0 3px;align-items:center}
:is(#communityHub,#playerProfilePopup) .hub-name-form input{flex:1 1 180px;min-width:50px;width:180px;min-height:30px;padding:4px 2px;font:600 16px 'Barlow Condensed',sans-serif;border:0;border-bottom:1px solid #59738080;border-radius:0;box-shadow:none;background:linear-gradient(transparent,#ffffff20)}
:is(#communityHub,#playerProfilePopup) .hub-name-form button{display:grid;place-items:center;width:27px;height:30px;min-height:30px;padding:3px!important;border-radius:0}
@media(max-height:500px){:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-badges .profile-badge{width:34px!important;height:34px!important}:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-badges .profile-badge b{font-size:15px}:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand .hub-brand-toggle{width:29px;height:35px;min-height:35px}:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-brand-toggle .hub-crest{width:24px;height:29px}}
:is(#communityHub,#playerProfilePopup) .hub-name-form input:focus,:is(#communityHub,#playerProfilePopup) .hub-name-form input:focus-visible{outline:none;border-bottom-color:#3b5a6c;box-shadow:0 1px 0 #3b5a6c;background:linear-gradient(transparent,#ffffff30)}

/* Window-control linework, compact branding and light folding chevrons. */
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools .hub-settings-gear{width:18px;height:18px;stroke:#314651;stroke-width:1.7;fill:none;filter:drop-shadow(0 1px 0 #fff)}
:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools .hub-settings-gear path,:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools .hub-settings-gear circle{fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand,:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand{height:36px;min-height:36px}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-toggle,:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand .hub-brand-toggle{width:28px;height:32px;min-height:32px}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-toggle .hub-crest{width:23px;height:28px;display:block;margin:0}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand [data-action=sidebar] svg{width:19px;height:19px;stroke:#edf2f5;stroke-width:1.5;filter:drop-shadow(0 1px 1px #25374455)}
@media(max-height:500px){:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand,:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand{height:33px;min-height:33px}:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-toggle,:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand .hub-brand-toggle{width:27px;height:30px;min-height:30px}:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-toggle .hub-crest{width:21px;height:25px}}

:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-toggle{position:relative;cursor:pointer}
:is(#communityHub,#playerProfilePopup) .hub-brand-info{position:absolute;right:-4px;top:1px;font:italic 600 11px/1 Georgia,serif;color:#edf3f7;opacity:.75;text-shadow:0 1px 2px #263c4b70;pointer-events:none}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-brand-info{display:none}

/* Quiet shared linework for info, edit, folding and window controls. */
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-info{top:50%;right:-2px;width:9px;height:12px;transform:translateY(-50%);opacity:.85;text-shadow:none;display:block;pointer-events:none}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-info svg{display:block;width:9px;height:12px;fill:none;stroke:#314651;stroke-width:1.5;stroke-linecap:round;filter:drop-shadow(0 1px 0 #ffffff80)}
:is(#communityHub,#playerProfilePopup).hub-nav-collapsed .hub-sidebar-brand .hub-brand-info{display:none}
:is(#communityHub,#playerProfilePopup) .hub-name-edit svg,:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand [data-action=sidebar] svg,:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools svg,:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools .hub-settings-gear{stroke:#314651;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #ffffff80)}
:is(#communityHub,#playerProfilePopup) .hub-stats-table td{white-space:nowrap}
:is(#communityHub,#playerProfilePopup) .hub-stats-table .hub-stats-note{font:400 11px 'Barlow Condensed',sans-serif;color:#52636e;text-align:left;padding-left:22px;white-space:normal}

:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools .hub-settings-gear path,:is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools .hub-settings-gear circle{stroke:inherit;stroke-width:inherit;filter:none}

/* Quiet profile preview, central rank pair and shorter progression track. */
body :is(#communityHub,#playerProfilePopup) .hub-content>.hub-profile-hero:first-child{margin-right:0}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-profile-hero{grid-template-columns:auto minmax(0,.85fr) minmax(0,1.15fr)}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-profile-hero .hub-profile-ranks{grid-column:3;grid-row:1;justify-content:flex-start;justify-self:stretch;gap:14px}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-profile-hero.hub-with-trophy{grid-template-columns:auto minmax(0,.85fr) minmax(0,1.15fr) auto}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-with-trophy>img:not(.hub-portrait){grid-column:4;grid-row:1}
:is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-xp{width:165px;max-width:100%}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-profile-actions [data-action=preview]:not(:disabled){font-size:11px!important;min-height:24px;padding:3px 4px!important;background:transparent!important;border:0!important;border-bottom:1px solid #31465130!important;border-radius:0;box-shadow:none!important;color:#41545f!important;opacity:.8}
:is(#communityHub,#playerProfilePopup) .hub-sidebar-brand .hub-brand-info{right:-5px;opacity:1}

@media(min-width:1000px){body :is(#communityHub,#playerProfilePopup) .hub-content .hub-profile-hero{grid-template-columns:auto minmax(0,240px) minmax(0,1fr)}body :is(#communityHub,#playerProfilePopup) .hub-content .hub-profile-hero.hub-with-trophy{grid-template-columns:auto minmax(0,240px) minmax(0,1fr) auto}}

/* Three window sizes; only the dialog changes, never the table or HUD. */
body :is(#communityHub,#playerProfilePopup)[data-size]{box-sizing:border-box;position:fixed;inset:0;margin:auto;max-width:100vw;max-height:100dvh;transform:none}
body :is(#communityHub,#playerProfilePopup)[data-size=full]{width:100vw;height:100dvh;border-radius:0!important}
body :is(#communityHub,#playerProfilePopup)[data-size=inset]{width:92vw;height:80dvh}
body :is(#communityHub,#playerProfilePopup)[data-size=table]{width:min(calc((100vw - 88px)*3569/3901),calc((100dvh - 4px)*3569/2110));height:min(calc((100vw - 88px)*1778/3901),calc((100dvh - 4px)*1778/2110));aspect-ratio:3569/1778}
@media(max-height:500px){body :is(#communityHub,#playerProfilePopup)[data-size=inset]{height:88dvh}}

/* Compact settings: quiet silver selections, matching sidebar contrast. */
:is(#communityHub,#playerProfilePopup) .hub-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}
:is(#communityHub,#playerProfilePopup) .hub-settings-grid section{min-width:0;border-top:1px solid #ffffff50;padding-top:8px}
:is(#communityHub,#playerProfilePopup) .hub-settings-grid h3{font-size:15px;margin:0 0 5px;font-weight:600}
:is(#communityHub,#playerProfilePopup) .hub-settings-grid .hub-settings-row{gap:8px;padding:5px 0;min-height:28px;font-size:13px}
:is(#communityHub,#playerProfilePopup) .hub-settings-grid small{font-size:11px;line-height:1.35;display:block;color:#42515b}
:is(#communityHub,#playerProfilePopup) .hub-settings-grid select{min-height:28px;padding:3px 7px;font-size:13px}
:is(#communityHub,#playerProfilePopup) .hub-settings-grid .hub-actions{gap:6px;margin:6px 0;flex-wrap:wrap}
:is(#communityHub,#playerProfilePopup) .hub-settings-grid p{font-size:12px;margin:6px 0}
:is(#communityHub,#playerProfilePopup) .hub-settings-account{grid-column:1/-1}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-settings-grid button:not(:disabled){min-height:30px;padding:5px 9px;font-size:12px!important}
body :is(#communityHub,#playerProfilePopup) .hub-settings-grid input[type=checkbox]{appearance:none;-webkit-appearance:none;width:17px;height:17px;min-height:17px;flex:0 0 17px;padding:0;border-radius:4px;border:1px solid #e7ecef;background:#26343f12;display:grid;place-content:center;cursor:pointer}
body :is(#communityHub,#playerProfilePopup) .hub-settings-grid input[type=checkbox]:checked{background:#dce1e544}
body :is(#communityHub,#playerProfilePopup) .hub-settings-grid input[type=checkbox]:checked::after{content:'';width:8px;height:4px;border-left:2px solid #364752;border-bottom:2px solid #364752;transform:translateY(-1px) rotate(-45deg)}
body :is(#communityHub,#playerProfilePopup) .hub-settings-grid input[type=checkbox]:focus-visible{outline:2px solid #687c89;outline-offset:2px}
/* Subtabs match 0.3.108: quiet dividers, clear active surface, fine underline. */
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button[aria-pressed=true]:not(:disabled){background:transparent!important;box-shadow:inset 0 -1px #e8ecef80!important;color:#262626!important;border-color:#d0d0d0!important;border-bottom-color:#d6dbe0!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-subtabs button[aria-pressed=false]:not(:disabled){background:#26343f12!important;color:#262626!important}
body :is(#communityHub,#playerProfilePopup) .hub-header .hub-window-tools button[data-tab=Settings][aria-selected=true]:not(:disabled){background:transparent!important;box-shadow:none!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-settings-grid button[aria-pressed=true]:not(:disabled){background:linear-gradient(135deg,#f9fcfcc7,#dbe6ed8a)!important;outline:none!important}

/* Small static announcement lights: no pulse or animation cost. */
.fcs-news-light{position:absolute;width:10px;height:10px;box-sizing:border-box;border-radius:50%;border:1.5px solid #fff0c5;background:radial-gradient(circle at 35% 30%,#fff7d9,#efba56 50%,#a77029);box-shadow:0 0 0 2px #78501f38,0 0 7px #ffc76bc4,inset 0 1px 2px #fff9;pointer-events:none}
.fcs-news-light[hidden]{display:none!important}
:is(#communityHub,#playerProfilePopup) .hub-brand-toggle .hub-news-light{right:-5px;top:50%;transform:translateY(-50%)}
.menu-brand .menu-news-light{left:32px;top:-2px;display:none!important}
html[data-news-unread=true] .menu-brand .menu-news-light{display:block!important}

/* Offline studio render: one still image, no live model or repeating effect. */
:is(#communityHub,#playerProfilePopup) .hub-cue-studio{position:relative;margin:0 0 18px;padding:30px 12px 34px;border-radius:10px;background:linear-gradient(135deg,#ffffff80,#e9edef38);box-shadow:inset 0 1px 0 #ffffffb0,inset 0 -1px 0 #ffffff70;overflow:hidden}
:is(#communityHub,#playerProfilePopup) .hub-cue-studio::after{content:'';position:absolute;left:5%;right:5%;bottom:16px;height:1px;background:linear-gradient(90deg,transparent,#d0d9db66,transparent)}
:is(#communityHub,#playerProfilePopup) .hub-cue-studio .hub-cue-model{width:100%;height:auto;transform:rotate(-1.25deg);filter:drop-shadow(0 5px 3px #0005)}
.hub-cue-ownership{display:flex;align-items:center;gap:18px;padding:10px 0;margin:8px 0 14px;border-block:1px solid #d5dfe34d;font-size:13px}
.hub-cue-ownership img{width:min(44%,260px);height:auto;filter:drop-shadow(0 2px 1px #263b4933)}
@media(max-height:500px){:is(#communityHub,#playerProfilePopup) .hub-cue-studio{padding:25px 8px 29px;margin-bottom:12px}.hub-cue-ownership{margin-bottom:10px}}

/* Static glass displays. The catalogue never changes shot strength or timing. */
:is(#communityHub,#playerProfilePopup) .hub-cue-panel,:is(#communityHub,#playerProfilePopup) .hub-cue-card{background:linear-gradient(135deg,#ffffff59,#f3f5f62b);border-color:#ffffff90;box-shadow:inset 0 1px #ffffff80,0 2px 9px #29383f0c}
:is(#communityHub,#playerProfilePopup) .hub-cue-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
:is(#communityHub,#playerProfilePopup) .hub-cue-heading h3{margin:2px 0 8px;font-size:19px;font-weight:600}
:is(#communityHub,#playerProfilePopup) .hub-cue-heading>span,:is(#communityHub,#playerProfilePopup) .hub-cue-heading small{font-size:11px;color:#4b5a62;letter-spacing:.06em}
:is(#communityHub,#playerProfilePopup) .hub-cue-calibration{font-size:12px;color:#43545d;line-height:1.45}
:is(#communityHub,#playerProfilePopup) .hub-cue-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 24px;margin:12px 0 16px;max-width:800px}
:is(#communityHub,#playerProfilePopup) .hub-cue-stats>div{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:8px;min-width:0}
:is(#communityHub,#playerProfilePopup) .hub-cue-stats dt{font-size:12px;color:#31434d}
:is(#communityHub,#playerProfilePopup) .hub-cue-stats dd{display:flex;align-items:center;gap:8px;margin:0;min-width:0}
:is(#communityHub,#playerProfilePopup) .hub-cue-points{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;flex:1;min-width:0;height:10px}
:is(#communityHub,#playerProfilePopup) .hub-cue-points i{display:block;border-radius:2px;background:#56687220;box-shadow:inset 0 1px 1px #152e3822,inset 0 -1px #ffffff80}
:is(#communityHub,#playerProfilePopup) .hub-cue-points i.lit{background-image:linear-gradient(180deg,#ffffff55,transparent 65%),linear-gradient(90deg,#2cc9c0 0%,#2f7bf0 28%,#9b2fd8 58%,#e8264f 82%,#ff4a2e 100%);background-size:100% 100%,1200% 100%;background-position:0 0,calc(var(--point)*100%/11) 0;box-shadow:inset 0 1px #ffffff90,inset 0 -1px #20334630}
:is(#communityHub,#playerProfilePopup) .hub-cue-rating{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;min-width:30px;text-align:right;color:#263740}
:is(#communityHub,#playerProfilePopup) .hub-cue-rating{white-space:nowrap;line-height:1.2}
:is(#communityHub,#playerProfilePopup) .hub-cue-rating small{display:inline;font-size:10px;font-weight:400;color:#52616a}
:is(#communityHub,#playerProfilePopup) .hub-cue-shop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
:is(#communityHub,#playerProfilePopup) .hub-cue-card{min-width:0;padding:16px}
:is(#communityHub,#playerProfilePopup) .hub-cue-product{display:block;width:100%;height:auto;object-fit:contain;margin:12px 0 16px;filter:drop-shadow(0 4px 2px #213a4826)}
:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-heading h3{font-size:18px}
:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-stats{grid-template-columns:1fr;gap:8px}
:is(#communityHub,#playerProfilePopup) .hub-cue-purchase{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid #ffffff90;padding-top:10px;min-height:34px}
:is(#communityHub,#playerProfilePopup) .hub-cue-purchase p{flex-basis:100%;font-size:13px;margin:2px 0}
:is(#communityHub,#playerProfilePopup) .hub-cue-price{display:flex;align-items:center;gap:5px;font:600 17px 'Barlow Condensed',sans-serif;color:#2f424a}
:is(#communityHub,#playerProfilePopup) .hub-cue-price img{width:24px;height:24px;object-fit:contain}
:is(#communityHub,#playerProfilePopup) .hub-cue-price small{font:400 11px Barlow,sans-serif}
@media(max-width:950px){:is(#communityHub,#playerProfilePopup) .hub-cue-shop{gap:10px}:is(#communityHub,#playerProfilePopup) .hub-cue-card{padding:12px}:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-heading{gap:6px}:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-heading small{font-size:9px}:is(#communityHub,#playerProfilePopup) .hub-cue-stats{gap:8px 14px}:is(#communityHub,#playerProfilePopup) .hub-cue-stats>div{grid-template-columns:52px minmax(0,1fr);gap:5px}:is(#communityHub,#playerProfilePopup) .hub-cue-points{gap:2px;height:9px}:is(#communityHub,#playerProfilePopup) .hub-cue-rating{min-width:26px;font-size:12px}}
@media(max-width:700px){:is(#communityHub,#playerProfilePopup) .hub-cue-shop{grid-template-columns:1fr}:is(#communityHub,#playerProfilePopup) .hub-cue-stats{grid-template-columns:1fr}}

/* Searchable ranking choices, with the actual league artwork. */
.hub-filter{align-items:flex-start}.hub-picker{flex:1 1 185px;min-width:0;max-width:100%;border-bottom:1px solid #72818c66}.hub-picker summary{cursor:pointer;list-style:none;padding:5px 8px 9px}.hub-picker summary::-webkit-details-marker{display:none}.hub-picker summary>span{display:flex;align-items:center;gap:8px;min-height:30px;font-weight:600}.hub-picker summary small{font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}.hub-picker summary i{margin-left:auto;font-style:normal}.hub-picker[open] summary i{transform:rotate(180deg)}.hub-picker summary:focus-visible{outline:2px solid #526b7c;outline-offset:2px;border-radius:5px}.hub-picker-panel{padding:8px;background:#e5edef99;border-radius:8px}.hub-picker-panel input{width:100%;margin-bottom:8px}.hub-picker-options{display:grid;gap:4px;max-height:190px;overflow:auto;overscroll-behavior:contain}.hub-rank-picker .hub-picker-options{grid-template-columns:repeat(auto-fit,minmax(112px,1fr))}:is(#communityHub,#playerProfilePopup) .hub-picker-options button{display:flex;align-items:center;gap:8px;text-align:left;padding:5px 8px;border:0!important;box-shadow:none!important;border-radius:5px!important;background:#ffffff24!important}:is(#communityHub,#playerProfilePopup) .hub-picker-options button[aria-pressed=true]{background:#ffffff8c!important;outline:1px solid #718592!important}:is(#communityHub,#playerProfilePopup) .hub-picker-options button[hidden]{display:none}.hub-league-crest{width:32px;height:38px;object-fit:contain;flex:none}.hub-career-metrics{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}/* Record filters retain pill geometry and a distinct selected Wallet accent. */
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-career-metrics button[data-action]{min-height:28px;padding:5px 10px;border:0!important;border-radius:999px!important;font-size:12px!important;outline-offset:2px;box-shadow:none!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-career-metrics button[data-action][aria-pressed=false]{background:#53616c20!important;color:#293e4980!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-career-metrics button[data-action][aria-pressed=false]:hover{background:#53616c30!important;color:#293e49b3!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-career-metrics button[data-action][aria-pressed=true]{background:var(--fcs-action)!important;color:var(--fcs-action-ink)!important;box-shadow:var(--fcs-action-shadow)!important;font-weight:600}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-career-metrics button[data-action][aria-pressed=true]:hover{background:var(--fcs-action-hover)!important}.hub-value{font-variant-numeric:tabular-nums}.hub-filter>[data-action=go-me]{align-self:flex-end;margin-bottom:8px}
@media(max-height:500px){.hub-picker-options{max-height:145px}.hub-league-crest{width:26px;height:31px}.hub-picker summary{padding-block:3px}.hub-picker summary small{margin-bottom:1px}}

/* Equipment first; owned collections and undiscovered cues stay distinct. */
:is(#communityHub,#playerProfilePopup) .hub-cue-active{margin:0 0 28px;padding:18px 22px;border:1px solid #f5ffff!important;box-shadow:inset 3px 0 #758d8c,inset 0 1px #ffffffa0,0 3px 12px #29383f16;background:linear-gradient(125deg,#ffffffe0,#eef4f59c)}
:is(#communityHub,#playerProfilePopup) .hub-cue-active .hub-cue-heading h3{font-size:25px;margin-top:5px}
:is(#communityHub,#playerProfilePopup) .hub-cue-active .hub-cue-studio{margin:8px 0 12px;padding:24px 8px;background:transparent;box-shadow:none;border:0}
:is(#communityHub,#playerProfilePopup) .hub-cue-active .hub-cue-stats{max-width:none;margin-bottom:0}
:is(#communityHub,#playerProfilePopup) .hub-cue-state{display:inline-flex;align-items:center;gap:5px;flex:none;letter-spacing:0;white-space:nowrap;font-size:11px}
:is(#communityHub,#playerProfilePopup) .hub-cue-state svg{width:14px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
:is(#communityHub,#playerProfilePopup) .hub-cue-equipped{padding:6px 9px;background:#d1e0df88;border-radius:5px;color:#304b49}
:is(#communityHub,#playerProfilePopup) .hub-cue-theme{margin:14px 0 24px}
:is(#communityHub,#playerProfilePopup) .hub-cue-theme-heading{display:flex;align-items:baseline;gap:12px;margin:0 0 10px}
:is(#communityHub,#playerProfilePopup) .hub-cue-theme-heading h3{margin:0;font-size:22px}
:is(#communityHub,#playerProfilePopup) .hub-cue-theme-heading>small{font-size:11px}
:is(#communityHub,#playerProfilePopup) .hub-cue-owned-section>h2,:is(#communityHub,#playerProfilePopup) .hub-cue-discover h2{font-size:24px;margin:0 0 6px}
:is(#communityHub,#playerProfilePopup) .hub-cue-discover{margin-top:30px;padding:20px 14px 1px;background:#e7edf044;border:1px dashed #5c71797a;border-radius:12px}
:is(#communityHub,#playerProfilePopup) .hub-cue-discover header p{margin:0;font-size:13px;color:#485e68}
:is(#communityHub,#playerProfilePopup) .hub-cue-discover .hub-cue-card{background:linear-gradient(125deg,#ffffff59,#e5ecee38);border-style:dashed}
:is(#communityHub,#playerProfilePopup) .hub-cue-card{display:flex;flex-direction:column}
:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-heading{align-items:flex-start}
:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-product{height:58px;margin:10px 0 12px}
:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-purchase{margin-top:auto}
:is(#communityHub,#playerProfilePopup) .hub-cue-owned-label{font-size:12px;color:#465e64}
:is(#communityHub,#playerProfilePopup) .hub-cue-unrated{margin:4px 0 12px;font-size:11px}
:is(#communityHub,#playerProfilePopup) .hub-cue-target,:is(#communityHub,#playerProfilePopup) [data-cue]:focus-visible{outline:2px solid #657e8d;outline-offset:3px}
@media(max-height:500px){:is(#communityHub,#playerProfilePopup) .hub-cue-active{padding:12px 16px;margin-bottom:22px}:is(#communityHub,#playerProfilePopup) .hub-cue-active .hub-cue-studio{padding:12px 4px;margin:4px 0 8px}:is(#communityHub,#playerProfilePopup) .hub-cue-active .hub-cue-heading h3{font-size:22px}:is(#communityHub,#playerProfilePopup) .hub-cue-discover{padding:15px 10px 1px}}

/* Compact cue cards, with every rating next to its cue. */
:is(:is(#communityHub,#playerProfilePopup),#cueDetailPopup) .hub-cue-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:6px 0 9px;max-width:none}
:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
:is(:is(#communityHub,#playerProfilePopup),#cueDetailPopup) .hub-cue-stats>div{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:0}
:is(:is(#communityHub,#playerProfilePopup),#cueDetailPopup) .hub-cue-stats dt{font-size:10px;color:#41525c;line-height:1.2}
:is(:is(#communityHub,#playerProfilePopup),#cueDetailPopup) .hub-cue-stats dd{display:flex;flex-direction:column-reverse;align-items:stretch;gap:3px;margin:0;min-width:0}
:is(:is(#communityHub,#playerProfilePopup),#cueDetailPopup) .hub-cue-rating{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;text-align:left;color:#263740;white-space:nowrap;line-height:1.2;min-width:0}
:is(:is(#communityHub,#playerProfilePopup),#cueDetailPopup) .hub-cue-rating small{display:inline;font-size:9px;font-weight:400;color:#52616a}
:is(:is(#communityHub,#playerProfilePopup),#cueDetailPopup) .hub-cue-points{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1px;flex:none;height:4px;min-width:0}
:is(:is(#communityHub,#playerProfilePopup),#cueDetailPopup) .hub-cue-points i{display:block;border-radius:1px;background:#56687220;box-shadow:inset 0 1px 1px #152e3822}
:is(:is(#communityHub,#playerProfilePopup),#cueDetailPopup) .hub-cue-points i.lit{background-image:linear-gradient(90deg,#2cc9c0 0%,#2f7bf0 28%,#9b2fd8 58%,#e8264f 82%,#ff4a2e 100%);background-size:1200% 100%;background-position:calc(var(--point)*100%/11) 0}
:is(#communityHub,#playerProfilePopup) .hub-cue-shop{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
:is(#communityHub,#playerProfilePopup) .hub-cue-card{padding:9px 10px}
:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-heading h3{font-size:16px;line-height:1.15;margin:0}
:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-state{font-size:9px;gap:3px}
:is(#communityHub,#playerProfilePopup) .hub-cue-state svg{width:10px;height:12px}
body :is(#communityHub,#playerProfilePopup) button.hub-cue-inspect{display:block;flex:none;width:100%;min-height:0;padding:0!important;margin:3px 0;border:0!important;border-radius:4px;background:transparent!important;box-shadow:none!important;cursor:zoom-in}
body :is(#communityHub,#playerProfilePopup) button.hub-cue-inspect:focus-visible{outline:2px solid #657e8d;outline-offset:2px}
:is(#communityHub,#playerProfilePopup) .hub-cue-card .hub-cue-product,:is(#communityHub,#playerProfilePopup) .hub-profile-cue .hub-cue-product{height:30px;width:100%;margin:0;object-fit:contain}
:is(#communityHub,#playerProfilePopup) .hub-cue-purchase{gap:5px;min-height:28px;padding-top:6px;flex-wrap:wrap}
:is(#communityHub,#playerProfilePopup) .hub-cue-purchase button{min-height:27px;padding:3px 8px!important;font-size:11px!important}
:is(#communityHub,#playerProfilePopup) .hub-cue-price{font-size:14px;gap:4px}
:is(#communityHub,#playerProfilePopup) .hub-cue-price img{width:19px;height:19px}
:is(#communityHub,#playerProfilePopup) .hub-cue-price small{font-size:10px}
:is(#communityHub,#playerProfilePopup) .hub-cue-active{padding:12px 16px;margin-bottom:18px}
:is(#communityHub,#playerProfilePopup) .hub-cue-active .hub-cue-heading h3{font-size:22px;margin:3px 0}
:is(#communityHub,#playerProfilePopup) .hub-cue-active .hub-cue-product{height:54px;margin:0}
:is(#communityHub,#playerProfilePopup) .hub-cue-active .hub-cue-stats{margin:5px 0 0;max-width:650px}
:is(#communityHub,#playerProfilePopup) .hub-cue-theme{margin:12px 0 18px}
:is(#communityHub,#playerProfilePopup) .hub-cue-theme-heading{margin-bottom:7px}
:is(#communityHub,#playerProfilePopup) .hub-cue-theme-heading h3{font-size:19px}
:is(#communityHub,#playerProfilePopup) .hub-cue-discover{margin-top:20px;padding:14px 10px 0}
:is(#communityHub,#playerProfilePopup) .hub-profile-cues{margin:16px 0}
:is(#communityHub,#playerProfilePopup) .hub-profile-cues>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
:is(#communityHub,#playerProfilePopup) .hub-profile-cues h3{margin:0}
:is(#communityHub,#playerProfilePopup) .hub-profile-cues>header button{font-size:11px!important;padding:4px 8px!important;min-height:28px}
:is(#communityHub,#playerProfilePopup) .hub-profile-cue-row{display:flex;gap:9px;overflow-x:auto;padding:3px 2px 9px;scroll-snap-type:x proximity}
:is(#communityHub,#playerProfilePopup) .hub-profile-cue{flex:0 0 216px;min-width:0;padding:8px 10px;border:1px solid #ffffff9c;border-radius:8px;background:#ffffff40;scroll-snap-align:start;box-sizing:border-box}
:is(#communityHub,#playerProfilePopup) .hub-profile-cue:first-child{background:#ffffff90;border-color:#f5ffff;box-shadow:inset 2px 0 #758d8c}
:is(#communityHub,#playerProfilePopup) .hub-profile-cue .hub-cue-heading{gap:5px;line-height:1.2}
:is(#communityHub,#playerProfilePopup) .hub-profile-cue .hub-cue-heading strong{font-size:13px}
:is(#communityHub,#playerProfilePopup) .hub-profile-cue .hub-cue-heading small{font-size:9px;letter-spacing:0}
:is(#communityHub,#playerProfilePopup) .hub-profile-cue .hub-cue-stats{margin:3px 0 0;gap:5px}

/* One native dialog for close-up, confirmation and profile arrangement. */
#cueDetailPopup{box-sizing:border-box;width:min(1000px,94vw);max-width:94vw;max-height:92dvh;margin:auto;padding:16px 20px;border:1px solid #ffffffbb;border-radius:14px;background:linear-gradient(125deg,#edf3f5f5,#c6d1d9f5);color:#263740;box-shadow:0 16px 60px #0006;font-family:Barlow,sans-serif;overflow:auto;overscroll-behavior:contain}
#cueDetailPopup::backdrop{background:#182b3a80;backdrop-filter:blur(3px)}
#cueDetailPopup button{border:1px solid #fff9;border-radius:6px;padding:7px 12px;min-height:32px;background:linear-gradient(135deg,#ffffffa0,#dce5eb80);color:#293e49;font:500 13px Barlow,sans-serif;cursor:pointer}
#cueDetailPopup button:disabled{opacity:.5;cursor:default}
#cueDetailPopup button:focus-visible{outline:2px solid #587585;outline-offset:2px}
#cueDetailPopup .cue-popup-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#cueDetailPopup h2{margin:0;font:600 25px 'Barlow Condensed',sans-serif}
#cueDetailPopup .cue-popup-header button{font-size:24px;line-height:1;padding:2px 9px}
#cueDetailPopup .cue-popup-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-top:6px}
#cueDetailPopup .cue-popup-stage{margin:12px 0 9px;padding:12px 0;overflow-x:auto;background:#ffffff48;border-radius:8px}
#cueDetailPopup .cue-popup-stage img{display:block;max-width:none;height:auto;min-height:45px;object-fit:contain;filter:drop-shadow(0 3px 2px #213a4826)}
#cueDetailPopup .hub-cue-stats{margin:9px 0 12px;gap:16px}
#cueDetailPopup .hub-cue-stats dt{font-size:12px}
#cueDetailPopup .hub-cue-rating{font-size:16px}
#cueDetailPopup .hub-cue-rating small{font-size:11px}
#cueDetailPopup .hub-cue-points{height:5px;gap:2px}
#cueDetailPopup .cue-popup-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:12px}
#cueDetailPopup .cue-popup-actions>button:first-of-type{background:#ffffffc0;border-color:#fff}
#cueDetailPopup .hub-cue-price{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:18px;margin-right:auto}
#cueDetailPopup .hub-cue-price img{width:26px;height:26px;object-fit:contain}
#cueDetailPopup .hub-cue-price small{font-weight:400;font-size:12px}
#cueDetailPopup .cue-confirm-price{margin:8px 0 4px}
#cueDetailPopup .cue-popup-note{font-size:12px;line-height:1.5;margin:7px 0}
#cueDetailPopup .cue-popup-status{margin:8px 0 0;font-size:13px;color:#7c302d}
#cueDetailPopup .cue-popup-status:empty{display:none}
#cueDetailPopup .cue-display-editor{max-height:53dvh;overflow:auto;display:grid;gap:7px;padding:3px}
#cueDetailPopup .cue-display-item{display:grid;grid-template-columns:100px minmax(90px,1fr) auto;align-items:center;gap:6px 12px;background:#ffffff48;border:1px solid #ffffff70;border-radius:8px;padding:8px 10px}
#cueDetailPopup .cue-display-item>img{width:100%;height:24px;object-fit:contain}
#cueDetailPopup .cue-display-item>strong{font-size:13px}
#cueDetailPopup .cue-display-actions{display:flex;align-items:center;gap:5px}
#cueDetailPopup .cue-display-actions small{font-size:11px}
#cueDetailPopup .cue-display-actions button{min-height:28px;padding:4px 8px;font-size:12px}
#cueDetailPopup .cue-display-item .hub-cue-stats{grid-column:1/-1;margin:0;gap:12px}
#cueDetailPopup .cue-display-item .hub-cue-stats dt{font-size:10px}
#cueDetailPopup .cue-display-item .hub-cue-rating{font-size:12px}
@media(min-width:1200px){:is(#communityHub,#playerProfilePopup) .hub-cue-shop{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px){:is(#communityHub,#playerProfilePopup) .hub-cue-shop{grid-template-columns:1fr}#cueDetailPopup{padding:12px}#cueDetailPopup .cue-display-item{grid-template-columns:65px minmax(70px,1fr)}#cueDetailPopup .cue-display-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-height:500px){#cueDetailPopup{padding:10px 16px}#cueDetailPopup h2{font-size:22px}#cueDetailPopup .cue-popup-stage{margin:6px 0;padding:5px 0}#cueDetailPopup .cue-popup-actions{margin-top:7px}#cueDetailPopup .cue-display-editor{max-height:48dvh}}

/* Quiet borderless actions; purchase and wallet actions keep a clear accent. */
body :is(#communityHub,#playerProfilePopup) .hub-content button[data-action]:not(.hub-cue-inspect):not(.hub-name-edit):not(.hub-user):not(.hub-buy-button):not(.hub-subtabs button):not(:where(.hub-career-metrics button)):not(.hub-segmented button):not(.hub-name-form button):not([data-tone]):not(:where(.hub-picker-options button)){min-height:32px;padding:6px 12px;border:0!important;border-radius:8px!important;background:#30495624!important;box-shadow:none!important;color:#293e49!important;font-size:12px!important;outline-offset:2px}
body :is(#communityHub,#playerProfilePopup) .hub-content button[data-action][aria-pressed=true]:not(.hub-buy-button):not(.hub-subtabs button):not(:where(.hub-career-metrics button)):not(.hub-segmented button):not(.hub-name-form button):not([data-tone]):not(:where(.hub-picker-options button)){background:#30495645!important;box-shadow:none!important;outline:none!important;font-weight:600}
body :is(#communityHub,#playerProfilePopup) .hub-content button[data-action]:not(.hub-cue-inspect):not(.hub-name-edit):not(.hub-user):not(.hub-buy-button):not(.hub-subtabs button):not(:where(.hub-career-metrics button)):not(.hub-segmented button):not(.hub-name-form button):not([data-tone]):not(:where(.hub-picker-options button)):hover:not(:disabled){background:#30495638!important}
body :is(#communityHub,#playerProfilePopup) .hub-content button[data-action]:focus-visible{outline:2px solid #536c7b!important;outline-offset:2px}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-cue-purchase button[data-action]{min-height:27px;padding:4px 9px!important;font-size:11px!important}
body :is(#communityHub,#playerProfilePopup) .hub-content button.hub-buy-button[data-action]:is(:enabled,:disabled),body :is(#communityHub,#playerProfilePopup) .hub-content .hub-wallet-actions button[data-action],body #cueDetailPopup .cue-popup-actions button.hub-buy-button[data-action]:is(:enabled,:disabled){min-height:30px;border:0!important;border-radius:11px!important;padding:6px 13px!important;background:var(--fcs-action)!important;box-shadow:var(--fcs-action-shadow)!important;color:var(--fcs-action-ink)!important;font-weight:600;font-size:12px!important;letter-spacing:.015em}
body :is(#communityHub,#playerProfilePopup) .hub-content button.hub-buy-button[data-action]:is(:enabled,:disabled):hover,body :is(#communityHub,#playerProfilePopup) .hub-content .hub-wallet-actions button[data-action]:hover,body #cueDetailPopup .cue-popup-actions button.hub-buy-button[data-action]:is(:enabled,:disabled):hover{background:var(--fcs-action-hover)!important}
body :is(#communityHub,#playerProfilePopup) .hub-content button.hub-buy-button.hub-buy-unaffordable[data-action]:is(:enabled,:disabled),body #cueDetailPopup .cue-popup-actions button.hub-buy-button.hub-buy-unaffordable[data-action]:is(:enabled,:disabled){background:#65747a40!important;box-shadow:none!important;color:#4c5b63!important;cursor:pointer}
body :is(#communityHub,#playerProfilePopup) .hub-content button.hub-buy-button.hub-buy-unaffordable[data-action]:is(:enabled,:disabled):hover,body #cueDetailPopup .cue-popup-actions button.hub-buy-button.hub-buy-unaffordable[data-action]:is(:enabled,:disabled):hover{background:#65747a60!important}
:is(#communityHub,#playerProfilePopup) [data-picker=visibility]{width:min(340px,100%);margin:14px 0 20px}
#cueDetailPopup.cue-funds-popup{width:min(420px,92vw);padding:18px 20px}
#cueDetailPopup.cue-funds-popup .cue-popup-note{font-size:14px;margin:15px 0;line-height:1.5}
#cueDetailPopup.cue-funds-popup .cue-popup-actions{justify-content:stretch}
#cueDetailPopup.cue-funds-popup .cue-popup-actions button{flex:1;white-space:nowrap}

body #cueDetailPopup{overflow:auto!important}

/* Dense player rows: round portrait, name, level and undistorted rank art. */
#communityHub #hubBoard .hub-row{min-height:38px;padding:3px 6px;gap:8px;margin:0;border-radius:0;box-sizing:border-box}
#communityHub #hubBoard .hub-row.hub-leader{padding:3px 6px;min-height:38px;border-radius:5px;background:#e3d8a32c}
body #communityHub .hub-row button.hub-user{display:flex;align-items:center;gap:8px;min-width:0;min-height:30px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#communityHub .hub-row .hub-user-photo,#communityHub .hub-leader .hub-user-photo{flex:0 0 28px;width:28px;height:28px;border-radius:50%;object-fit:cover}
#communityHub .hub-row .hub-user-name{flex:1;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px;font-weight:500}
#communityHub .hub-row .hub-user-level{flex:none;white-space:nowrap;font-size:11px;font-variant-numeric:tabular-nums;overflow:visible}
#communityHub .hub-row .hub-inline-badges{display:flex;align-items:center;justify-content:center;flex:0 0 64px;min-width:64px;height:30px;overflow:visible}
#communityHub .hub-row .hub-inline-badges .profile-badge{width:30px!important;height:30px!important;aspect-ratio:1;background-size:contain!important;overflow:visible;flex:none}
#communityHub .hub-row .profile-badge b{font-size:12px;transform:translateY(-2px)}
#communityHub .hub-row .hub-place{display:flex;align-items:center;justify-content:space-between;gap:3px;flex:0 0 42px;width:42px;font-size:12px}
#communityHub .hub-row .hub-value{font-size:12px;font-weight:600}
#communityHub .hub-row .hub-value:empty{display:none}
:is(#communityHub,#playerProfilePopup) .profile-badge{background-size:contain!important}
#communityHub .hub-league-crest{object-fit:contain;aspect-ratio:1;width:30px;height:30px}

/* Public profile window: no navigation, independent scrolling and size. */
body #playerProfilePopup[open]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
body #playerProfilePopup>.hub-header{display:block;position:absolute;top:0;right:0;grid-area:auto;min-height:0;padding:0;background:none;border:0}
body #playerProfilePopup>.hub-status{grid-column:1;grid-row:1;padding-right:76px}
body #playerProfilePopup>.hub-content{grid-column:1;grid-row:2;padding:12px 18px 18px;overflow:auto;overscroll-behavior:contain}
body #playerProfilePopup .hub-header .hub-window-tools{display:flex;margin-left:auto}
body #playerProfilePopup .hub-header .hub-window-tools button{height:36px;min-height:36px;width:36px;padding:8px!important}
body #playerProfilePopup .hub-content>:first-child{margin-right:64px}
body #playerProfilePopup .hub-content>.hub-profile-hero{margin-top:0;padding-right:0}
body #playerProfilePopup .hub-content .hub-profile-hero .hub-profile-ranks{gap:10px}
body #playerProfilePopup .hub-content .hub-profile-hero .profile-badge{width:38px!important;height:38px!important}
body #playerProfilePopup .hub-content .hub-profile-actions{margin:6px 0 0}
body #playerProfilePopup textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0}
@media(max-width:700px){body #playerProfilePopup .hub-content .hub-profile-hero,body #playerProfilePopup .hub-content .hub-profile-hero.hub-with-trophy{grid-template-columns:auto minmax(0,1fr) auto}body #playerProfilePopup .hub-content .hub-profile-hero .hub-profile-ranks{grid-column:1/-1;grid-row:2;justify-content:flex-start;flex-wrap:wrap}body #playerProfilePopup .hub-content .hub-with-trophy>img:not(.hub-portrait){grid-column:3}body #playerProfilePopup .hub-rank-pair strong{font-size:17px}}

/* Recessed cue trays; card ratings stay graphical and compact. */
body :is(#communityHub,#playerProfilePopup) .hub-content button.hub-cue-inspect[data-action]:is(:enabled,:disabled){box-sizing:border-box;padding:2px 6px!important;border:0!important;border-radius:9px;background:linear-gradient(180deg,#243c4a30,#49616c15)!important;box-shadow:inset 0 2px 4px #19354244,inset 0 -1px #ffffff9c!important;cursor:pointer}
:is(#communityHub,#playerProfilePopup) .hub-cue-stats dd{margin-top:3px}
:is(#communityHub,#playerProfilePopup) .hub-career-metrics{--hub-action-radius:999px}

/* Cue details fit in one viewport. Only the separate collection editor scrolls. */
body #cueDetailPopup:not([data-mode=display]){width:min(1000px,94vw);max-height:calc(100dvh - 20px);padding:12px 18px;overflow:hidden!important}
#cueDetailPopup .cue-popup-header h2{min-width:0;font-size:24px;line-height:1.15}
#cueDetailPopup .cue-popup-body{min-width:0}
#cueDetailPopup .cue-popup-meta{margin:0;font-size:12px;line-height:1.4}
#cueDetailPopup .cue-popup-stage{box-sizing:border-box;display:flex;align-items:center;height:clamp(48px,15dvh,120px);margin:9px 0;padding:6px 12px;overflow:hidden;background:linear-gradient(180deg,#243c4a30,#49616c15);box-shadow:inset 0 3px 6px #19354244,inset 0 -1px #ffffff9c;border-radius:12px}
#cueDetailPopup .cue-popup-stage img{width:100%;max-width:100%;height:100%;min-height:0;object-fit:contain}
#cueDetailPopup .hub-cue-stats{margin:7px 0 9px}
#cueDetailPopup .cue-popup-actions{margin-top:9px}
#cueDetailPopup .cue-popup-actions:empty{display:none}
#cueDetailPopup .cue-popup-note{overflow-wrap:anywhere}
body #cueDetailPopup.cue-funds-popup:not([data-mode=display]){width:min(420px,92vw);padding:14px 18px}
#cueDetailPopup.cue-funds-popup .cue-popup-note{margin:10px 0;font-size:13px;line-height:1.45}
#cueDetailPopup.cue-funds-popup .cue-popup-actions{gap:8px}
#cueDetailPopup.cue-funds-popup .cue-popup-actions button{min-width:0}
@media(max-height:400px){body #cueDetailPopup:not([data-mode=display]){padding:8px 14px}#cueDetailPopup .cue-popup-header h2{font-size:22px}#cueDetailPopup .cue-popup-stage{height:clamp(38px,14dvh,56px);padding:4px 10px;margin:6px 0}#cueDetailPopup .hub-cue-stats{margin:5px 0 6px}#cueDetailPopup .hub-cue-rating{font-size:14px}#cueDetailPopup .cue-popup-note{margin:4px 0}#cueDetailPopup .cue-popup-actions{margin-top:6px}#cueDetailPopup .cue-confirm-price{margin:4px 0}}
/* Keep the decorative rim inside the dialog, so it cannot create overflow. */
body #cueDetailPopup::after{inset:0;padding:var(--fcs-rim-window)}

/* Small podium awards preserve the dense row height. */
#communityHub .hub-row .hub-podium-cup{display:block;width:19px;height:24px;flex:none;filter:drop-shadow(0 1px 1px #263c4926)}
#communityHub .hub-row .hub-rank-pending{width:30px;text-align:center;font-size:12px}
/* Match the main hub's floating corner controls; reserve only title space. */
#cueDetailPopup .cue-popup-header{padding-right:60px;min-height:28px}

/* Compact balances belong to the tab hero and scroll with its content. */
#communityHub .hub-balance-summary{display:flex;align-items:center;gap:12px;height:24px;min-width:0}
#communityHub .hub-balance-item{display:flex;align-items:center;gap:4px;min-width:0}
#communityHub .hub-balance-item img{width:22px;height:19px;object-fit:contain;flex:none;filter:drop-shadow(0 1px 1px #233c4526)}
#communityHub .hub-balance-item strong{font:600 13px/1 'Barlow Condensed',sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
#communityHub .hub-shop-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;min-width:0}
#communityHub .hub-shop-hero h2{margin:0}
body #communityHub .hub-content .hub-profile-hero .hub-profile-ranks{flex-direction:column;align-items:flex-start;gap:5px}
:is(#communityHub,#playerProfilePopup) .hub-rank-values{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
#communityHub .hub-profile-actions:empty{display:none}
/* One typographic collection for every owned title, with independent order. */
#communityHub .hub-title-collection{margin:12px 0 22px}
#communityHub .hub-title-collection>p{margin:5px 0 10px;font-size:12px;max-width:700px}
#communityHub .hub-title-section{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 8px}
#communityHub .hub-title-section :is(h3,h4),#communityHub .hub-title-section .hub-actions{margin:0}
#communityHub .hub-owned-titles{list-style:none;padding:0;margin:8px 0 16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:6px 10px}
#communityHub .hub-owned-title{display:flex;align-items:stretch;flex-direction:column;min-width:0;border-radius:7px;background:#3049560d;box-shadow:inset 2px 0 #30495626;overflow:hidden}
#communityHub .hub-owned-title[data-active=true]{background:#30495620;box-shadow:inset 2px 0 #385f63}
body #communityHub .hub-content button.hub-title-choice:is(:enabled,:disabled){display:block;width:100%;min-width:0;text-align:left;padding:9px 12px!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;color:#263d4a!important;white-space:normal}
#communityHub .hub-title-choice strong{display:block;font:600 16px/1.2 'Barlow Condensed',sans-serif;letter-spacing:.025em;overflow-wrap:anywhere}
#communityHub .hub-title-choice small{display:block;font:400 10px/1.2 Barlow,sans-serif;opacity:.7;margin-top:3px}
#communityHub .hub-title-order{display:flex;justify-content:flex-end;gap:6px;padding:0 7px 6px}
body #communityHub .hub-content .hub-title-order button:is(:enabled,:disabled){min-height:24px;padding:3px 7px!important;font-size:10px!important;border:0!important;border-radius:5px;box-shadow:none!important;background:#30495612!important}
#communityHub .hub-title-order button:disabled{opacity:.35}
@media(max-width:700px){#communityHub .hub-balance-summary{gap:8px}#communityHub .hub-balance-item img{width:19px;height:17px}#communityHub .hub-balance-item strong{font-size:12px}:is(#communityHub,#playerProfilePopup) .hub-rank-values{gap:9px}}

/* Friends sit inside the row, with a soft inset around each round portrait. */
#communityHub .hub-row.hub-friend-row{padding:7px 11px;gap:10px;box-sizing:border-box}
body #communityHub .hub-content .hub-friend-row button.hub-user[data-action]:is(:enabled,:disabled){padding:0 4px!important;background:transparent!important;border:0!important;box-shadow:none!important}
#communityHub .hub-friend-row .hub-user-photo{box-sizing:border-box;border:1px solid #eff7f5b3;box-shadow:0 1px 3px #233c4526;flex-basis:30px;width:30px;height:30px}
#communityHub .hub-league-crest.profile-badge{display:inline-grid;place-items:center;flex:none;background-size:contain!important}
#communityHub .hub-league-crest.profile-badge b{font-size:12px;transform:translateY(-2px)}
/* Confirmation uses the shared single chrome edge and an integrated corner X. */
body :is(#hubActionConfirmation,#profileAwardPopup){box-sizing:border-box;width:min(400px,92vw);max-height:calc(100dvh - 20px);padding:16px 18px;margin:auto;overflow:auto!important;font-family:Barlow,sans-serif}
:is(#hubActionConfirmation,#profileAwardPopup) h2{margin:0 22px 10px 0;font:600 23px/1.15 'Barlow Condensed',sans-serif}
:is(#hubActionConfirmation,#profileAwardPopup) p{margin:0 0 14px;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
:is(#hubActionConfirmation,#profileAwardPopup) footer{display:flex;justify-content:flex-end;gap:8px}
:is(#hubActionConfirmation,#profileAwardPopup) footer button{min-height:32px;padding:6px 12px;font:600 12px Barlow,sans-serif;border-radius:10px}
body dialog:is(#hubActionConfirmation,#profileAwardPopup).fbs-popup button.hub-confirm-close[type=button]:is(:enabled,:disabled){position:absolute;top:0;right:0;display:grid;place-items:center;width:34px;height:34px;padding:7px!important;background:transparent!important;border:0!important;box-shadow:none!important;outline-offset:-3px;color:#314651!important}
:is(#hubActionConfirmation,#profileAwardPopup) .hub-confirm-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;filter:drop-shadow(0 1px 0 #ffffff80)}

/* Popover options float above standings and cannot add a layout row. */
#communityHub .hub-picker{position:relative}
#communityHub .hub-picker-panel{position:fixed;inset:auto;box-sizing:border-box;margin:0;padding:8px;border:1px solid #d9e2e5;border-radius:9px;background:linear-gradient(140deg,#d9e2e4,#b6c4c8);box-shadow:0 8px 24px #172f4040;z-index:30;color:#263740;font:13px Barlow,sans-serif;overflow:hidden;touch-action:pan-y}
#communityHub .hub-picker-panel::backdrop{background:transparent}
#communityHub .hub-picker-options{overscroll-behavior:contain;touch-action:pan-y}
#communityHub .hub-picker:not([open]) .hub-picker-panel{display:none}
/* Selected settings have a dark face, centered text and a visible inset edge. */
#communityHub .hub-segmented{display:inline-flex;align-items:stretch;gap:3px;padding:3px;border-radius:10px;background:#30495620;max-width:100%;box-sizing:border-box}
#communityHub .graphics-options{display:flex;margin:8px 0;flex-wrap:wrap}
body #communityHub .hub-content .hub-settings-grid .hub-segmented button:is(:enabled,:disabled){display:inline-flex;align-items:center;justify-content:center;flex:1;box-sizing:border-box;min-height:30px;padding:6px 10px!important;line-height:1.2!important;border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;color:#40535e!important;white-space:nowrap}
body #communityHub .hub-content .hub-settings-grid .hub-segmented button[aria-pressed=true]:is(:enabled,:disabled){background:var(--fcs-action)!important;color:var(--fcs-action-ink)!important;box-shadow:var(--fcs-action-shadow)!important;font-weight:600}
body #communityHub .hub-content .hub-settings-grid .hub-segmented button[aria-pressed=false]:hover{background:#ffffff30!important}
#cueDetailPopup .cue-popup-stage{touch-action:none}
/* A fine, continuous edge instead of the heavy alternating chrome band. */
body :is(#hubActionConfirmation,#profileAwardPopup){border-radius:16px!important}
body :is(#hubActionConfirmation,#profileAwardPopup)::after{inset:0;padding:var(--fcs-rim-window);border-radius:inherit;background:var(--fcs-window-chrome) 0 0 / 100% 100% no-repeat}

/* Shared inset identities in rankings and friends, without a separate button slab. */
body #communityHub .hub-row button.hub-user[data-action]:is(:enabled,:disabled){padding:2px 5px!important;background:transparent!important;border:0!important;box-shadow:none!important}
#communityHub .hub-row .hub-user-photo{box-sizing:border-box;border:1px solid #eff7f5b3;box-shadow:0 1px 3px #233c4526}
#communityHub .hub-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;min-width:0}
#communityHub .hub-shop-toolbar .hub-subtabs{margin:0;flex:none}
#communityHub .hub-shop-toolbar .hub-balance-summary{margin-left:auto;flex:none}
#communityHub .hub-trophy-state{font-size:11px;opacity:.7}
body #communityHub .hub-content .hub-name-form button:is(:enabled,:disabled){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 28px;width:28px;height:30px;min-height:30px;padding:4px!important;line-height:0!important;background:transparent!important;border:0!important;border-radius:5px!important;box-shadow:none!important;color:#415964!important}
#communityHub .hub-name-form button svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
body #cueDetailPopup.cue-funds-popup{border-radius:16px!important}
body #cueDetailPopup.cue-funds-popup::after{inset:0;padding:var(--fcs-rim-window);border-radius:inherit;background:var(--fcs-window-chrome) 0 0 / 100% 100% no-repeat}

body #communityHub .hub-content .hub-settings-grid .hub-segmented button[aria-pressed=true]:hover{background:var(--fcs-action-hover)!important}

/* Wallet is a Shop subpage: balances/actions first, reward, then history. */
#communityHub .hub-wallet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#communityHub .hub-wallet-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:14px 16px}
#communityHub .hub-wallet-amount{gap:8px;min-width:0}
#communityHub .hub-wallet-amount>div{min-width:0}
#communityHub .hub-wallet-amount small{font:500 11px/1.3 Barlow,sans-serif;margin-bottom:3px}
#communityHub .hub-wallet-amount strong{display:block;font:600 clamp(20px,2.5vw,29px)/1 'Barlow Condensed',sans-serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#communityHub .hub-wallet-amount img{width:36px;height:31px}
#communityHub .hub-wallet-card button{flex:none;white-space:nowrap}
#communityHub .hub-wallet-reward{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 18px;padding:12px 2px;border-bottom:1px solid #ffffff65}
#communityHub .hub-wallet-reward h3{margin:0 0 3px}
#communityHub .hub-wallet-reward p{margin:0;font-size:12px}
#communityHub .hub-wallet-reward button{white-space:nowrap;min-width:133px}
#communityHub .hub-wallet-history{min-width:0}
#communityHub .hub-wallet-history h3{margin:0 0 8px}
#communityHub #hubLedger{overflow-x:auto}
#communityHub .hub-ledger{font-size:12px}
#communityHub .hub-ledger th{font-size:11px;font-weight:600;color:#526370}
#communityHub .hub-ledger td,#communityHub .hub-ledger th{padding:8px 10px}
#communityHub .hub-ledger td:last-child,#communityHub .hub-ledger th:last-child{text-align:right;white-space:nowrap}
#communityHub .hub-ledger td:nth-child(2){overflow-wrap:anywhere}
@media(max-width:720px){#communityHub .hub-wallet-card{align-items:flex-start;flex-direction:column;gap:10px;padding:12px}#communityHub .hub-wallet-card button{width:100%}}

/* Own profile: aligned rank pairs above a compact, separate balance row. */
body #communityHub .hub-content .hub-profile-hero.hub-profile-own{grid-template-columns:auto minmax(0,1fr) minmax(140px,max-content);gap:12px;align-items:center}
body #communityHub .hub-content .hub-profile-own .hub-profile-ranks{display:flex;flex-direction:column;align-items:stretch;justify-self:end;gap:7px;margin:0;max-width:260px}
body #communityHub .hub-profile-own .hub-rank-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px}
body #communityHub .hub-profile-own .hub-rank-values:has(>.hub-rank-pair:only-child){grid-template-columns:1fr}
body #communityHub .hub-profile-own .hub-rank-pair{gap:6px}
body #communityHub .hub-profile-own .hub-rank-pair strong{font-size:18px}
body #communityHub .hub-profile-own .hub-rank-pair small{font-size:9px;letter-spacing:.08em}
body #communityHub .hub-profile-own .hub-badges .profile-badge{width:30px!important;height:36px!important}
body #communityHub .hub-profile-own .hub-balance-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-top:1px solid #ffffff75;padding:7px 0 0;margin:0;align-self:stretch}
body #communityHub .hub-profile-own .hub-balance-item{justify-content:flex-start;gap:4px;min-width:0}
body #communityHub .hub-profile-own .hub-balance-item img{width:21px;height:17px}
body #communityHub .hub-profile-own .hub-balance-item strong{font-size:12px}
body #communityHub .hub-profile-own.hub-with-trophy>img:not(.hub-portrait){position:absolute;left:52px;top:55px;width:27px;height:34px;filter:drop-shadow(0 2px 2px #253a4840)}
@media(max-width:720px){body #communityHub .hub-content .hub-profile-hero.hub-profile-own{grid-template-columns:54px minmax(0,1fr) minmax(132px,max-content);gap:9px}body #communityHub .hub-profile-own .hub-portrait{width:54px;height:54px}body #communityHub .hub-profile-own .hub-rank-pair strong{font-size:15px}body #communityHub .hub-profile-own .hub-rank-values{gap:8px}body #communityHub .hub-profile-own .hub-hero-copy h2{font-size:19px}body #communityHub .hub-profile-own .hub-badges .profile-badge{width:25px!important;height:30px!important}body #communityHub .hub-profile-own.hub-with-trophy>img:not(.hub-portrait){left:36px;top:50px;width:23px;height:29px}}

body #walletShopPopup{box-sizing:border-box;width:min(400px,92vw);padding:18px 20px;max-height:calc(100dvh - 20px);border-radius:16px!important;font:14px/1.45 Barlow,sans-serif}
body #walletShopPopup::after{padding:var(--fcs-rim-window)}
#walletShopPopup .wallet-shop-heading{display:flex;align-items:center;gap:10px;padding-right:20px}
#walletShopPopup .wallet-shop-heading img{width:34px;height:30px;object-fit:contain}
#walletShopPopup h2{font:600 24px/1.15 'Barlow Condensed',sans-serif;margin:0}
#walletShopPopup p{margin:12px 0 8px}
#walletShopPopup small{font-size:12px}
body dialog#walletShopPopup.fbs-popup button.hub-confirm-close{position:absolute;top:0;right:0;display:grid;place-items:center;width:34px;height:34px;padding:7px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#314651!important;outline-offset:-3px}
#walletShopPopup .hub-confirm-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}

/* Meaningful actions share the Wallet finish; secondary actions remain quiet. */
body :is(.fbs-popup,.online-card) button[data-tone],
body :is(#communityHub,#playerProfilePopup) .hub-content button[data-tone],
body :is(#cueDetailPopup,#hubActionConfirmation) button[data-tone],
body #rematchBtn[data-tone] {
  border:0!important;border-radius:8px!important;
  background:var(--fcs-action)!important;color:var(--fcs-action-ink)!important;
  box-shadow:var(--fcs-action-shadow)!important;text-shadow:none!important;
}
body :is(.fbs-popup,.online-card) button[data-tone]:hover:not(:disabled),
body :is(#communityHub,#playerProfilePopup) .hub-content button[data-tone]:hover:not(:disabled),
body :is(#cueDetailPopup,#hubActionConfirmation) button[data-tone]:hover:not(:disabled),
body #rematchBtn[data-tone]:hover:not(:disabled) {background:var(--fcs-action-hover)!important}
body :is(.fbs-popup,.online-card) button[data-tone=danger],
body :is(#communityHub,#playerProfilePopup) .hub-content button[data-tone=danger],
body dialog#hubActionConfirmation.fbs-popup button[data-confirm][data-tone=danger]:is(:enabled,:disabled) {
  background:var(--fcs-danger)!important;color:#fff7f7!important;
}
body :is(.fbs-popup,.online-card) button[data-tone=danger]:hover:not(:disabled),
body :is(#communityHub,#playerProfilePopup) .hub-content button[data-tone=danger]:hover:not(:disabled),
body dialog#hubActionConfirmation.fbs-popup button[data-confirm][data-tone=danger]:hover:not(:disabled) {background:var(--fcs-danger-hover)!important}
body :is(.fbs-popup,.online-card) button[data-tone]:disabled {opacity:.45;cursor:default}
body :is(.fbs-popup,.online-card) button[data-tone]:focus-visible {outline:2px solid #28464f;outline-offset:2px}

/* Tone changes colour, never the geometry of neighbouring actions. */
body #gameMenu :is(.mobile-bar,.online-menu-actions) button,
body :is(#onlineConcedeDialog,#concedeDialog,#leaveGame,#frameDialog) button,
body #hubActionConfirmation footer button {box-sizing:border-box;min-height:32px;border-radius:8px!important;padding:6px 12px!important;font:600 12px/1.2 Barlow,sans-serif!important}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-actions button[data-action]:is(:enabled,:disabled) {box-sizing:border-box;min-height:32px;padding:6px 12px!important;border-radius:8px!important;font:600 12px/1.2 Barlow,sans-serif!important}

/* Keep the right-hand summary below the floating window controls, within the hero. */
body #communityHub .hub-content .hub-profile-own .hub-profile-ranks{box-sizing:border-box;padding-top:32px}

/* Cue window: lighter shared glass, matching floating resize/close controls. */
body #cueDetailPopup[data-size=full][open],body #cueDetailPopup[data-size=inset][open]{position:fixed;inset:0;box-sizing:border-box;max-width:100vw;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden!important}
body #cueDetailPopup[data-size=full]{width:100vw;height:100dvh;border-radius:0!important}
body #cueDetailPopup[data-size=inset]{width:92vw;height:80dvh}
body #cueDetailPopup[data-size=full] .cue-popup-body,body #cueDetailPopup[data-size=inset] .cue-popup-body{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
#cueDetailPopup[data-size=full] .cue-popup-stage,#cueDetailPopup[data-size=inset] .cue-popup-stage{height:clamp(48px,24dvh,190px)}
@media(max-height:500px){body #cueDetailPopup[data-size=inset]{height:88dvh}}
/* Filled cue, friends and ranking silhouettes match the non-popup main menu. */
#communityHub .hub-tabs .hub-menu-glyph,#communityHub .hub-tabs .hub-menu-glyph :is(path,circle){fill:currentColor;stroke:none}

/* Cue window uses the same three viewport equivalents as the main hub. */
body #cueDetailPopup[data-size=compact][open]{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(calc((100vw - 88px)*3569/3901),calc((100dvh - 4px)*3569/2110));height:min(calc((100vw - 88px)*1778/3901),calc((100dvh - 4px)*1778/2110));display:flex;flex-direction:column;overflow:hidden!important}
body #cueDetailPopup[data-size=compact] .cue-popup-body{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}

/* All Cue widths size vertically to their content, with a viewport scroll cap. */
body #cueDetailPopup[data-size][open]{height:fit-content;min-height:0;max-height:calc(100dvh - 24px);margin:auto;aspect-ratio:auto}
body #cueDetailPopup[data-size] .cue-popup-body{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
body #cueDetailPopup[data-size] .cue-popup-header,body #cueDetailPopup[data-size] .cue-popup-status{flex-shrink:0}

.hub-avatar-anchor{position:relative;display:inline-block;flex:none;width:max-content;height:max-content;line-height:0}.avatar-medal{position:absolute;z-index:2;bottom:15%;transform:translate(-50%,50%);left:15%;width:30px;height:34px;background:center/contain no-repeat;display:grid;place-items:center;color:white;font:700 11px/1 'Barlow Condensed';text-shadow:0 1px 2px #000}.avatar-medal.elo{left:85%;padding-bottom:5px}.hub-avatar-anchor.small .avatar-medal{width:17px;height:20px;font-size:7px}.hub-avatar-anchor.small{margin-bottom:8px}

.challenge-picker{width:min(760px,92vw);max-height:90dvh;overflow:auto;padding:18px}.challenge-picker header{display:flex;align-items:center;justify-content:space-between}.challenge-picker nav{display:flex;gap:10px}.challenge-venues{display:flex;gap:12px;overflow:auto;padding:16px 2px}.challenge-venues button{flex:0 0 145px;padding:0;overflow:hidden;border-radius:12px}.challenge-venues img{display:block;width:145px;height:85px;object-fit:cover}.challenge-venues strong{display:block;padding:8px}.challenge-picker [aria-pressed=true]{outline:2px solid #438d89;outline-offset:-2px}.challenge-friends{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.hub-avatar-upload{display:inline-flex;gap:10px;align-items:center;margin-top:14px}

.hub-profile-editing{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 8px;font-size:12px}.hub-profile-editing small{color:#425560}.hub-avatar-upload{position:relative;margin:0;padding:7px 10px;border:1px solid #6f879666;border-radius:8px;cursor:pointer;background:#ffffff28;font-weight:600}.hub-avatar-upload input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.hub-avatar-upload:focus-within{outline:2px solid #528c89}.hub-name-form{flex-wrap:wrap}.hub-name-hint{flex-basis:100%;font-size:11px}.hub-profile-hero>.hub-avatar-anchor{margin-bottom:16px;align-self:center}.avatar-medal{box-sizing:border-box;pointer-events:none}.hub-name-edit:disabled{opacity:.35;cursor:default}
body dialog.challenge-picker{box-sizing:border-box;width:min(760px,94vw);max-height:calc(100dvh - 24px);overflow:auto!important;padding:16px 18px;font-family:'Barlow Condensed',Arial,sans-serif;font-size:15px;scrollbar-width:thin}
.challenge-picker header{margin:0 0 12px;gap:12px}.challenge-picker header h2{font:700 25px/1.1 'Barlow Condensed',sans-serif;margin:2px 0 0}.challenge-picker header small{font-size:10px;letter-spacing:.13em;color:#46616b}.challenge-picker header [data-close]{width:30px;height:30px;padding:6px;display:grid;place-items:center}.challenge-picker header svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.challenge-picker button,.challenge-picker select{font:600 14px/1.2 'Barlow Condensed',sans-serif;cursor:pointer}.challenge-picker nav{gap:8px}.challenge-picker nav button,.challenge-picker footer button{min-height:30px;padding:6px 13px;border-radius:8px}.challenge-picker nav [aria-pressed=true]{box-shadow:inset 0 -2px #337c77!important;outline:0}.challenge-venues{gap:10px;padding:12px 2px 8px;scrollbar-width:thin;overscroll-behavior:contain}.challenge-venues button{flex-basis:134px;border-radius:9px}.challenge-venues img{width:134px;height:68px}.challenge-venues strong{font-size:16px;padding:6px 4px 1px}.challenge-venues small{display:block;padding:0 4px 6px;font-size:11px;color:#36505a}.challenge-options{display:flex;gap:16px;align-items:center;padding-top:6px}.challenge-options label{display:flex;gap:8px;align-items:center}.challenge-options select{border:1px solid #7e939c55;background:#e9f0f340;border-radius:6px;padding:4px 8px;color:#263c44}.challenge-fee{margin-left:auto;font-size:13px}.challenge-friends{gap:6px;margin:10px 0 0}.challenge-friends label{display:flex;align-items:center;gap:5px;font-size:13px;padding:5px 9px;border:1px solid #7d979c4d;border-radius:7px;background:#e7f1f22e}.challenge-friends input{accent-color:#367c72}.challenge-picker footer{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:12px}.challenge-picker footer p{font-size:12px;margin:0;line-height:1.3;color:#3e5962}.challenge-picker footer button{flex:none}
@media(max-height:500px){body dialog.challenge-picker{padding:12px 16px}.challenge-picker header{margin-bottom:8px}.challenge-picker header h2{font-size:23px}.challenge-venues{padding-top:10px;padding-bottom:6px}.challenge-venues img{height:54px}.challenge-picker footer{margin-top:8px}.challenge-friends{margin-top:8px}.challenge-friends label{padding:4px 8px}}

/* Readable portrait crests; table rows use a separate level/rank pair. */
body :is(#communityHub,#playerProfilePopup) .hub-content .avatar-medal{color:#fff!important;width:44px;height:48px;font-size:16px;text-shadow:0 1px 2px #000,0 0 3px #0009}
body :is(#communityHub,#playerProfilePopup) .hub-content .avatar-medal.elo{padding-bottom:7px}
body :is(#communityHub,#playerProfilePopup) .profile-badge b{color:#fff!important;text-shadow:0 1px 2px #000,0 0 3px #0009}
#communityHub .hub-row .hub-inline-badges{justify-content:flex-start;gap:3px;flex:0 0 67px;min-width:67px;height:34px}
#communityHub .hub-row .hub-inline-badges .profile-badge{width:32px!important;height:34px!important}
#communityHub .hub-row .hub-inline-badges .profile-badge b{font-size:13px}
#communityHub .hub-row .hub-inline-badges .profile-badge[data-kind=elo] b{transform:translateY(-3px)}
#communityHub .hub-row .hub-rank-pending{display:grid;place-items:center;width:32px;font-size:15px;opacity:.65}
#communityHub .hub-visibility{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 8px}
#communityHub .hub-visibility>small{font-size:11px;letter-spacing:.07em;text-transform:uppercase}
#communityHub .hub-visibility .hub-career-metrics{margin:0;gap:6px}
body :is(#communityHub,#playerProfilePopup) .hub-avatar-anchor>.hub-avatar-upload{position:absolute;right:-4px;top:-4px;z-index:3;display:grid;place-items:center;width:28px;height:28px;box-sizing:border-box;margin:0;padding:6px;border:1px solid #e9f2f4cc;border-radius:50%;background:linear-gradient(145deg,#e6eff1d9,#9aafb7bc);box-shadow:0 2px 6px #1b344c35;line-height:0}
.hub-avatar-upload svg{width:16px;height:16px;fill:none;stroke:#304954;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hub-avatar-upload:hover{filter:brightness(1.12)}
.hub-avatar-upload input{height:100%;margin:0;min-width:0}
.hub-avatar-upload:has(input:disabled){opacity:.5;pointer-events:none}

body :is(#communityHub,#playerProfilePopup) .hub-profile-hero .avatar-medal{left:0}.hub-profile-hero .hub-avatar-anchor{margin-inline:12px}

body dialog#friendChallengePopup.challenge-picker nav button[data-mode]{border:0!important;border-radius:999px!important;min-height:28px;padding:5px 12px;outline:0!important;box-shadow:none!important;font:600 13px Barlow,sans-serif}
body dialog#friendChallengePopup.challenge-picker nav button[data-mode][aria-pressed=false]{background:#53616c20!important;color:#293e4980!important}
body dialog#friendChallengePopup.challenge-picker nav button[data-mode][aria-pressed=true]{background:var(--fcs-action)!important;color:var(--fcs-action-ink)!important;box-shadow:var(--fcs-action-shadow)!important}
body dialog.challenge-picker .challenge-venues button[data-city]{position:relative;isolation:isolate;flex-basis:142px;height:126px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:10px 5px;border:2px solid #b3c4c97a!important;border-radius:12px!important;background:#17242a!important;color:#fff!important;overflow:hidden;box-shadow:inset 0 1px #ffffff70!important}
body dialog.challenge-picker .challenge-venues button[data-city][aria-pressed=true]{border-color:#e9fff7!important;box-shadow:0 0 0 2px #3d887e,inset 0 1px #fff9!important;outline:0}
.challenge-photo{position:absolute;inset:0;z-index:-1}.challenge-photo>img{width:100%!important;height:100%!important;object-fit:cover}.challenge-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,15,20,.40),rgba(10,15,20,.03) 32%,rgba(10,15,20,.35) 49%,rgba(10,15,20,.8) 100%)}
body dialog.challenge-picker .challenge-venues button strong{color:#fff!important;font-size:18px;text-shadow:0 2px 4px #000;padding:0 0 4px}body dialog.challenge-picker .challenge-venues button small{display:flex;gap:5px;align-items:center;justify-content:center;color:#e4edf0!important;font:600 12px Barlow,sans-serif;padding:0}.challenge-venues img.challenge-chip{display:inline-block;width:25px;height:17px;object-fit:contain}
@media(max-height:500px){body dialog.challenge-picker .challenge-venues button[data-city]{height:105px}}

/* Seamless ranking menus use exactly the selected/inactive tab fills. */
body #communityHub .hub-picker-panel{padding:0;border:0;border-radius:0;background:linear-gradient(140deg,#d9e2e4,#b6c4c8)}
body #communityHub .hub-picker-panel input{margin:6px;width:calc(100% - 12px)}
body #communityHub .hub-picker-options{gap:0;grid-template-columns:1fr;scrollbar-width:thin;scrollbar-color:#7b92908a transparent}
body #communityHub .hub-content .hub-picker-options button[data-action]:not(:disabled){border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;min-height:34px;margin:0;padding:7px 10px;background:#26343f12!important;color:#262626!important}
body #communityHub .hub-content .hub-picker-options button[data-action][aria-pressed=true]:not(:disabled){background:transparent!important;font-weight:700}
body #communityHub .hub-content .hub-picker-options button:focus-visible{outline:2px solid #51777b!important;outline-offset:-2px!important}
.hub-player-id{display:inline-flex;gap:5px;margin-left:15px;letter-spacing:.06em;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:.7}.hub-player-id b{font-weight:600;user-select:all}
.hub-friends-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.hub-friends-heading h2{margin:0!important}
body #communityHub .hub-invite-friend{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:7px 11px;font:600 12px Barlow,sans-serif;min-height:32px}
.hub-invite-friend svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.hub-invite-friend small{font-size:10px!important;opacity:.8;border-left:1px solid currentColor;padding-left:7px}
.hub-player-search{display:flex;align-items:center;gap:8px;margin:10px 0 4px;padding:0 0 0 9px;border:1px solid #62777c4d;border-radius:9px;background:#ffffff30}.hub-player-search>svg{width:16px;height:16px;fill:none;stroke:#47626c;stroke-width:1.8;flex:none}.hub-player-search input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;margin:0;padding:7px 0;font:13px Barlow,sans-serif;color:#263740}.hub-player-search button{padding:7px 12px;font-size:12px;border-radius:0 8px 8px 0!important}.hub-search-id{font-variant-numeric:tabular-nums;opacity:.65;white-space:nowrap}#hubPlayerResults{border-bottom:1px solid #ffffff80;padding-bottom:8px;margin-bottom:10px}#hubPlayerResults p{margin:10px 0}.hub-referral-reward{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #73898d40}.hub-referral-reward>img{width:46px;height:46px;object-fit:contain}.hub-referral-reward>div{flex:1;min-width:0}.hub-referral-reward h3{margin:0 0 3px!important}.hub-referral-reward strong{font:700 18px 'Barlow Condensed',sans-serif}.hub-referral-reward p{font-size:12px!important;line-height:1.35;margin:4px 0}.hub-referral-reward small{font-size:10px!important;opacity:.75}
@media(max-width:600px){.hub-player-id{margin-left:8px;letter-spacing:0}.hub-referral-reward{flex-wrap:wrap}.hub-referral-reward>.hub-invite-friend{margin-left:60px}.hub-friends-heading .hub-invite-friend small{display:none}}
/* The close/size controls sit directly in the same chrome rim as the hub. */
body dialog.fbs-popup .popup-rim-controls{position:absolute;top:0;right:10px;display:flex;gap:0;z-index:3}
body dialog.fbs-popup .popup-rim-controls button{display:grid;place-items:center;box-sizing:border-box;width:35px;height:34px;min-height:34px;margin:0;padding:7px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;filter:none!important;outline-offset:-3px}
body dialog.fbs-popup .popup-rim-controls svg{width:18px;height:18px;fill:none;stroke:#314651;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #fff)}
body dialog.fbs-popup .popup-rim-controls button:focus-visible{outline:2px solid #51777b!important}
body dialog.challenge-picker{width:min(790px,calc((100vw - 88px)*3569/3901),calc((100dvh - 4px)*3569/2110));max-width:none;max-height:calc(100dvh - 36px);scrollbar-color:#7b92908a transparent}
body dialog.challenge-picker[data-size=inset]{width:calc(100vw - 40px);max-height:calc(100dvh - 40px)}
body dialog.challenge-picker[data-size=full]{width:100vw;max-height:100dvh;border-radius:0!important}
.challenge-picker header{padding-right:72px;padding-top:8px}
body dialog.challenge-picker .challenge-venues{scrollbar-width:thin;scrollbar-color:#7b92908a transparent}
body dialog.challenge-picker .challenge-venues button[data-city]{padding:8px 0;height:132px;flex-basis:142px}
body dialog.challenge-picker .challenge-venues .challenge-prize{align-self:stretch;display:flex;align-items:center;justify-content:center;gap:5px;background:#fffffff0;color:#222!important;min-height:25px;margin:1px 0 5px;font:700 15px 'Barlow Condensed',sans-serif;text-shadow:none}
body dialog.challenge-picker .challenge-venues .challenge-prize small{color:#344449!important;font-size:9px;letter-spacing:.06em}
body dialog.challenge-picker .challenge-venues .challenge-entry{font-size:10px}
body dialog.challenge-picker .challenge-venues .challenge-entry img{width:20px;height:14px}
@media(max-height:500px){body dialog.challenge-picker .challenge-venues button[data-city]{height:116px}.hub-referral-reward{padding:12px 0;gap:10px}.hub-referral-reward>img{width:36px;height:36px}}

body dialog.challenge-picker{overflow:hidden!important}body dialog.challenge-picker[open]{display:flex;flex-direction:column}.challenge-picker header,.challenge-picker footer{flex:none}.challenge-body{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#7b92908a transparent;overscroll-behavior:contain}
@media(max-height:500px){body dialog.challenge-picker{padding:10px 16px}.challenge-picker header{padding-top:4px;margin-bottom:6px}.challenge-picker .challenge-venues{padding-top:8px}.challenge-picker footer{margin-top:6px}body dialog.challenge-picker .challenge-venues button[data-city]{height:110px}}

/* Shared quiet editing affordances and the wallet reward row rhythm. */
body :is(#communityHub,#playerProfilePopup) .hub-avatar-anchor>.hub-avatar-upload,body :is(#communityHub,#playerProfilePopup) .hub-content .hub-name-line .hub-name-edit:is(:enabled,:disabled){width:25px;height:25px;min-height:25px;padding:5px!important;border:1px solid #edf5f488!important;border-radius:50%!important;background:linear-gradient(145deg,#ecf4f480,#b0c5c94d)!important;box-shadow:inset 0 1px #ffffff4d!important;color:#35505b!important;opacity:.85}
body :is(#communityHub,#playerProfilePopup) .hub-content .hub-name-line .hub-name-edit:disabled{opacity:.35}.hub-avatar-upload svg,.hub-name-edit svg{width:14px;height:14px}
body #cueDetailPopup[data-size=full]{border-radius:22px!important}
/* Avoid adding a second bright glass layer over the already frosted hub. */
body #communityHub .hub-picker-panel{background:transparent;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
body #communityHub .hub-picker-panel input,body #communityHub .hub-player-search{border:0!important;border-radius:0!important;background:#26343f12!important;box-shadow:none!important}
body #communityHub .hub-player-search button{border-radius:0!important}
#communityHub .hub-wallet-reward.hub-referral-reward{flex-wrap:nowrap;padding:12px 2px;gap:12px;margin:14px 0 18px;border-bottom:1px solid #ffffff65}
#communityHub .hub-referral-reward small{display:block;font-size:10px!important;line-height:1.4;margin-top:3px;color:#405a65;opacity:1}
#communityHub .hub-referral-reward button{margin-left:0;flex:none}
body dialog.challenge-picker .challenge-venues .challenge-prize{margin-bottom:0}

body :is(#communityHub,#playerProfilePopup) .hub-content .avatar-medal.level[data-digits="3"]{font-size:14px}body :is(#communityHub,#playerProfilePopup) .hub-content .avatar-medal.level[data-digits="4"]{font-size:12px}

body :is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-avatar-anchor button.avatar-medal{width:36px;height:40px;font-size:13px}
body :is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-avatar-anchor button.avatar-medal.level[data-digits="3"]{font-size:12px}body :is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-avatar-anchor button.avatar-medal.level[data-digits="4"]{font-size:10px}
body :is(#communityHub,#playerProfilePopup) .hub-rank-pair .profile-progress-value{display:block;min-height:0;margin:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;text-align:left;cursor:pointer}
body :is(#communityHub,#playerProfilePopup) .profile-progress-value:before,body :is(#communityHub,#playerProfilePopup) .profile-progress-value:after{display:none!important}
@media(max-width:720px){body #communityHub .hub-content .hub-profile-hero.hub-profile-own{grid-template-columns:84px minmax(0,1fr) minmax(132px,max-content)}}

/* Preserve the original strong text; the button is only an invisible hit target. */
body :is(#communityHub,#playerProfilePopup) .hub-rank-pair strong.profile-progress-value{position:relative;display:inline;cursor:pointer}
body :is(#communityHub,#playerProfilePopup) .hub-rank-pair .profile-progress-hit{position:absolute!important;inset:-4px;min-height:0;min-width:0;margin:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0;opacity:0;cursor:pointer}
body :is(#communityHub,#playerProfilePopup) .profile-progress-hit:focus-visible{opacity:1;outline:1px solid #527f80;outline-offset:2px}
.hub-invite-inline{display:inline-flex;align-items:center;gap:9px}.hub-invite-inline>small{font:400 11px Barlow,sans-serif;color:#405a65;white-space:nowrap}
body #communityHub :is(.hub-invite-friend,.hub-referral-reward button[data-action="invite-friend"]){min-height:26px;height:26px;min-width:0;padding:4px 9px!important;font:600 11px/18px Barlow,sans-serif;white-space:nowrap}

/* Rank leagues retain seamless tiles in a responsive column layout. */
body #communityHub .hub-rank-picker .hub-picker-options{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
/* Shared crest face proportions and compact friend controls. */
body :is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-avatar-anchor button.avatar-medal{font:700 18px/1 'Barlow Condensed',sans-serif!important}
body :is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-avatar-anchor button.avatar-medal.level[data-digits="3"]{font-size:16px!important}
body :is(#communityHub,#playerProfilePopup) .hub-profile-hero .hub-avatar-anchor button.avatar-medal.level[data-digits="4"]{font-size:14px!important}
body #communityHub .hub-row .hub-inline-badges .profile-badge b{position:absolute;inset:50% 0 auto;text-align:center;line-height:1;transform:translateY(calc(-50% - 1px));margin:0;padding:0}
body #communityHub .hub-row .hub-inline-badges .profile-badge[data-kind=elo] b{transform:translateY(calc(-50% - 2px))}
body #communityHub .hub-content .hub-friend-row .hub-actions button[data-action]{min-height:26px;height:26px;padding:4px 9px!important;font:600 11px/18px Barlow,sans-serif!important}
body #communityHub .hub-row.hub-friend-row{min-height:36px;padding:2px 6px;gap:8px}
body #communityHub .hub-player-search input,body #communityHub .hub-player-search input:is(:focus,:active,:focus-visible){border-radius:0!important;appearance:none;-webkit-appearance:none}
/* Fine tile rim; popup windows retain their shared 2px rim. */
body :is(#communityHub,#playerProfilePopup) :is(.hub-wallet-card,.hub-cue-card,.hub-profile-cue,.hub-cabinet,.hub-replay-empty,.hub-community-grid>.hub-panel,.hub-community-bottom>.hub-panel){position:relative;border:0;isolation:isolate}
body :is(#communityHub,#playerProfilePopup) :is(.hub-wallet-card,.hub-cue-card,.hub-profile-cue,.hub-cabinet,.hub-replay-empty,.hub-community-grid>.hub-panel,.hub-community-bottom>.hub-panel)::after{content:'';position:absolute;inset:0;padding:1.5px;border-radius:inherit;background:var(--fcs-window-chrome);pointer-events:none;z-index:2;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude}

body :is(#communityHub,#playerProfilePopup) .hub-cue-discover .hub-cue-card{border:1px dashed #ffffff90}
body :is(#communityHub,#playerProfilePopup) .hub-cue-discover .hub-cue-card::after{content:none}

.hub-profile-gender {margin-top:2px;color:#485f6a;font-size:12px;font-weight:600}
#communityHub .hub-profile-settings .hub-country-hint {margin:0 0 5px}
#communityHub .hub-profile-settings .hub-country-name {text-align:right;overflow-wrap:anywhere}
#communityHub .hub-profile-settings select {max-width:55%;min-width:0}
