/* Top-right bar: wallet | rank + name + mini banner | sign out */
.sidebar .quick-search{margin-left:auto}
.moon-topbar{display:flex;align-items:center;gap:14px;flex:none;margin-left:6px}
.moon-topbar[hidden]{display:none!important}
.tb-wallet{display:flex;align-items:center;gap:2px;height:40px;padding:0 6px;background:#111;border:1px solid #303030;border-radius:3px}
.tb-currency{display:flex;align-items:center;gap:7px;padding:0 12px;height:100%;color:#e8e8e8;font-size:12px;letter-spacing:.06em}
.tb-currency+.tb-currency{border-left:1px solid #2a2a2a}
.tb-currency strong{font-weight:800;font-variant-numeric:tabular-nums}
.tb-currency-icon{width:16px;height:16px;object-fit:contain;filter:grayscale(1) brightness(1.5)}
.tb-currency-fallback{display:inline-grid;place-items:center;width:16px;height:16px;border:1px solid #777;border-radius:50%;font-size:9px;font-style:normal;color:#ddd}
.tb-profile{display:flex;align-items:stretch;height:44px;background:#111;border:1px solid #303030;border-radius:3px;position:relative;overflow:visible}
.tb-profile:hover,.tb-profile:focus-visible{z-index:90}
.tb-profile[data-tooltip]:is(:hover,:focus-visible)::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 7px);right:0;min-width:max-content;padding:8px 11px;background:#090909;border:1px solid #555;color:#fff;box-shadow:0 6px 20px #000b;font:700 10px var(--vf-body);letter-spacing:.08em;text-transform:uppercase;pointer-events:none}
.tb-wallet-refresh{display:grid!important;place-items:center;flex:none;width:29px;height:29px;margin:0 3px 0 1px;padding:0!important;background:transparent!important;color:#aaa!important;border:0!important;border-left:1px solid #333!important;border-radius:0!important}
.tb-wallet-refresh:hover:not(:disabled){color:#fff!important;background:#222!important}
button.tb-wallet-refresh:not(.ghost):not(.mode-option):not(.moon-drawer-game):not(.lobby-start):not(.quick-recent-item){background:#090909!important;color:#e8e8e8!important;border:1px solid #444!important;border-radius:2px!important}
button.tb-wallet-refresh:not(.ghost):not(.mode-option):not(.moon-drawer-game):not(.lobby-start):not(.quick-recent-item):hover:not(:disabled){background:#202020!important;color:#fff!important;border-color:#777!important}
.tb-wallet-refresh:disabled{opacity:.6;cursor:progress}
.tb-wallet-refresh svg{width:16px;height:16px}
.tb-wallet-refresh.is-busy svg{animation:m-spin .8s linear infinite}
.tb-rank{display:grid;place-items:center;width:44px;background:#181818}
.tb-rank-icon{width:28px;height:28px;object-fit:contain}
.tb-name{display:flex;flex-direction:column;justify-content:center;padding:0 12px;min-width:70px;max-width:150px;line-height:1.15}
.tb-name strong{color:#fff;font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-name small{color:#9a9a9a;font-size:11px;letter-spacing:.08em}
.tb-banner{width:54px;background:#1b1b1b center/cover no-repeat;border-left:1px solid #303030;filter:grayscale(.35)}
.sidebar #live-disconnect.tb-signout{display:grid;place-items:center;width:40px;height:40px;padding:0;margin:0;font-size:0;background:#171717!important;color:#d8d8d8!important;border:1px solid #303030!important;border-radius:3px}
.sidebar #live-disconnect.tb-signout:hover{background:#2a2a2a!important;color:#fff!important}
.tb-signout svg{width:19px;height:19px}
@media(max-width:1500px){.tb-currency{padding:0 9px}.tb-banner{display:none}}
@media(max-width:1280px){.quick-search{width:170px}.tb-name{max-width:100px}}
@media(max-width:1100px){.quick-search{display:none}.tb-wallet{display:none}}
@media(max-width:700px){.tb-profile .tb-name{display:none}}

/* Rank badges on the career profile */
.stat strong.has-rank-icon{display:flex;align-items:center;gap:12px}
.stat-rank-icon{width:42px;height:42px;object-fit:contain;flex:none}
.stat-note{display:block;margin-top:7px;color:#a6a6a6;font-size:12px;letter-spacing:.08em;text-transform:uppercase;min-height:1em}
.stat-note:empty{display:none}

/* VALORANT closed */
.offline-banner{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:14px;padding:11px 20px;background:#101010;border:1px solid #4a4a4a;border-radius:3px;white-space:nowrap;max-width:92%}
.offline-banner[hidden]{display:none!important}
.offline-banner strong{color:#fff;font-size:12px;letter-spacing:.18em}
.offline-banner span{color:#a6a6a6;font-size:12px;white-space:normal}
.offline-banner::before{content:'';width:8px;height:8px;border-radius:50%;background:#777;flex:none}
.lobby-stage.is-offline>:not(.offline-banner){opacity:.32;filter:grayscale(1);pointer-events:none;user-select:none}
#main-nav a[hidden]{display:none!important}

/* Enemy slots that Riot hides during agent select */
.live-player.is-hidden-player{opacity:.55}
.live-player.is-hidden-player .live-player-name strong{font-size:22px;letter-spacing:.1em;color:#bbb}

/* Lobby: no "Your lobby" heading or session line (status lives in the banner and top bar) */
#lobby .live-heading,#lobby .live-toolbar{display:none!important}

/* Icons */
.moon-icon{display:inline-grid;place-items:center;width:18px;height:18px;flex:none}
.moon-icon svg,.moon-icon-img{width:100%;height:100%;object-fit:contain}
.moon-icon-img{filter:brightness(0) invert(.85)}
#main-nav a.active .moon-icon-img,#main-nav a:hover .moon-icon-img{filter:brightness(0) invert(1)}
.slot-leader .moon-icon{width:100%;height:100%}

/* Smooth page / profile switching */
.tab-page{transition:opacity .22s ease}
#career{transition:opacity .25s ease}
#career.is-switching{opacity:.35;pointer-events:none}

/* No filler text: page intros, status lines and empty-state hints */
.tab-page>.page-intro,#live-empty,#career-empty{display:none!important}
.status:not(.error){display:none!important}

/* Career: nicer profile header, stat cards and loading skeletons */
#career{display:flex;flex-direction:column;gap:22px}
#career .status.error{margin:0}
#career .profile{margin:0;border:1px solid #2c2c2c!important;border-radius:6px;overflow:hidden;box-shadow:0 24px 60px #0008}
#career .profile-head{min-height:290px;padding:44px 52px;align-items:flex-end;border:0!important;border-bottom:1px solid #2c2c2c!important}
#career .profile-head::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0000 35%,#080808e6 100%)}
#career .profile-head .identity{border:0!important;border-left:3px solid #fff!important;background:none!important;padding:4px 0 4px 20px;max-width:70%}
#career .profile-head .identity h2{font-size:clamp(34px,4.6vw,64px);line-height:1;letter-spacing:.015em;margin:8px 0 10px;text-shadow:0 4px 30px #000c}
#career .profile-head .identity .muted{color:#d0d0d0;letter-spacing:.06em}
#career .profile-rank-icon{width:112px;height:112px;margin-left:auto;align-self:center;filter:drop-shadow(0 8px 24px #000c)}
#career .stat-grid{gap:1px;background:#262626!important}
#career .stat{padding:24px 26px;background:#0e0e0e;transition:background .25s ease}
#career .stat:hover{background:#151515}
#career .stat span{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#8d8d8d}
#career .stat strong{font-size:26px;font-weight:800}
#career .panel{border-radius:6px;border-color:#2a2a2a}
#career .career-insights .panel{padding:24px}
.match-skeleton,.stat-skeleton{border:1px solid #232323;border-radius:6px;background:linear-gradient(100deg,#111 30%,#1a1a1a 50%,#111 70%) 0 0/200% 100%;animation:m-shimmer 1.4s linear infinite}
.match-skeleton{height:92px;margin-bottom:12px}
.stat-skeleton{height:200px;margin-bottom:12px}
@media(max-width:700px){#career .profile-head{padding:26px 20px;min-height:230px}#career .profile-rank-icon{width:72px;height:72px}}

/* ---------- Search box: dark field with a proper magnifier button (the generic light button style no longer leaks in) ---------- */
.sidebar .quick-search{height:40px}
.sidebar .quick-search input{height:40px;padding:0 48px 0 16px;background:#111;border:1px solid #303030;border-radius:3px;color:#f2f2f2;font:700 12px var(--vf-body);letter-spacing:.12em;transition:border-color .2s,box-shadow .2s,background-color .2s}
.sidebar .quick-search input:hover{border-color:#4a4a4a}
.sidebar .quick-search input:focus{background:#161616;border-color:#bdbdbd;box-shadow:0 0 0 3px #ffffff18;outline:none}
.sidebar .quick-search input::placeholder{color:#8a8a8a;letter-spacing:.14em}
#quick-search-form button[type="submit"]{position:absolute;right:0;top:0;bottom:0;width:42px;height:auto;padding:0;margin:0;display:grid;place-items:center;background:transparent!important;color:#a6a6a6!important;border:0!important;border-left:1px solid #262626!important;border-radius:0 3px 3px 0;font-size:0;transform:none}
#quick-search-form button[type="submit"] svg{width:17px;height:17px}
#quick-search-form button[type="submit"]:hover{background:#242424!important;color:#fff!important;transform:none}
#quick-search-form button[type="submit"]:active{transform:none;background:#2e2e2e!important}
#quick-search-form button[type="submit"]:focus-visible{outline:2px solid #fff;outline-offset:-3px}

/* ---------- START: neutral when it cannot be used (offline, not the party leader) ---------- */
.lobby-start:disabled{background:#2a2a2a!important;color:#8c8c8c!important;opacity:1;cursor:not-allowed}
