/* Insight site shell, on every page: the sidebar (an icon rail that opens on hover or stays pinned),
   the account slot in it, and on phones a top bar with a full-screen menu. Built by site.js.
   Its own variables, so it looks the same over any page's styles. */
.side, .mbar, .msheet {
  --s-bg: #0b0c10; --s-line: rgba(255,255,255,.07); --s-line2: rgba(255,255,255,.12);
  --s-text: #f3f4f6; --s-muted: #a0a5b1; --s-faint: #6b7180; --s-acc: #ff5a00; --s-acc2: #ff7a33; --s-gold: #f3c95a;
  font-family: Geist, system-ui, -apple-system, sans-serif;
}
:root { --rail: 72px; --side: 288px; }
.side .ic, .mbar .ic, .msheet .ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.side a, .mbar a, .msheet a { color: inherit; text-decoration: none; }

body.has-side main { margin-left: var(--rail); transition: margin-left .28s cubic-bezier(.2,0,0,1); }
body.has-side.pinned main { margin-left: var(--side); }

.side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: var(--rail); display: flex; flex-direction: column; padding: 14px 12px; border-right: 1px solid var(--s-line); background: rgba(11,12,16,.78); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); overflow: hidden; color: var(--s-text); transition: width .28s cubic-bezier(.2,0,0,1), background .28s, box-shadow .28s; }
.side:hover, .side.pinned, .side:focus-within { width: var(--side); background: rgba(14,15,20,.88); }
.side:hover:not(.pinned) { box-shadow: 30px 0 80px -20px rgba(0,0,0,.8); }
.side .head { display: flex; align-items: center; gap: 10px; height: 44px; margin-bottom: 8px; padding-left: 2px; white-space: nowrap; }
.side .head img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.side .head b { font-size: 15px; letter-spacing: -.01em; }
.side .head b span { color: var(--s-acc); }
.side .tools { margin-left: auto; display: flex; gap: 6px; }
.side .tools button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--s-line2); border-radius: 8px; background: rgba(255,255,255,.04); color: var(--s-muted); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.side .tools button:hover { color: var(--s-text); }
.side .tools button.on { color: var(--s-acc); border-color: rgba(255,90,0,.4); }
.side .tools .ic { width: 15px; height: 15px; }
.side .fade { opacity: 0; transition: opacity .18s; }
.side:hover .fade, .side.pinned .fade, .side:focus-within .fade { opacity: 1; transition-delay: .06s; }
.side:not(:hover):not(.pinned):not(:focus-within) .tools { display: none; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.side .group { margin: 14px 0 4px 10px; color: var(--s-faint); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; height: 14px; }
.side .it { position: relative; display: flex; align-items: center; gap: 14px; min-height: 42px; padding: 0 11px; border-radius: 11px; color: var(--s-muted); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.side a.it:hover { background: rgba(255,255,255,.05); color: var(--s-text); }
.side a.it.on { background: rgba(255,90,0,.12); color: var(--s-text); box-shadow: inset 0 0 0 1px rgba(255,90,0,.28); }
.side a.it.on .ic { color: var(--s-acc2); }
.side a.it.gold { color: #f6dc97; }
.side a.it.gold .ic { color: var(--s-gold); }
.side a.it.gold.on { background: rgba(243,201,90,.12); box-shadow: inset 0 0 0 1px rgba(243,201,90,.3); }
.side .badge { margin-left: auto; padding: 1px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.side .badge.new { background: rgba(255,90,0,.16); color: var(--s-acc2); border: 1px solid rgba(255,90,0,.3); }
.side .badge.soon { background: rgba(255,255,255,.06); color: var(--s-muted); }
.side a.it .dot { position: absolute; left: 30px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--s-acc); box-shadow: 0 0 0 2px var(--s-bg); transition: opacity .15s; }
.side:hover a.it .dot, .side.pinned a.it .dot { opacity: 0; }
.side .it.soon { cursor: default; opacity: .75; }
.msheet .it.soon { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 8px; border-bottom: 1px solid var(--s-line); color: var(--s-muted); font-size: 17px; font-weight: 600; }

/* Account slot: the signed-in player (avatar, nickname, level) or the FACEIT sign-in */
.side .bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--s-line); }
.acct { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px; border-radius: 12px; white-space: nowrap; overflow: hidden; transition: background .15s; }
.acct.on { background: rgba(255,90,0,.12); box-shadow: inset 0 0 0 1px rgba(255,90,0,.28); }
.acct:hover { background: rgba(255,255,255,.05); }
.acct .av { position: relative; width: 40px; height: 40px; flex: none; border-radius: 10px; background: #1d2029 center / cover; display: grid; place-items: center; color: var(--s-muted); font-weight: 800; }
.acct .av img.lv { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; }
.acct .who b { display: block; font-size: 14px; }
.acct .who small { display: block; color: var(--s-muted); font-size: 12px; }
.acct.vip .who small { color: var(--s-gold); }
.signin { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 12px; background: var(--s-acc); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; transition: background .15s, transform .15s; }
.signin:hover { background: var(--s-acc2); }
.signin:active { transform: translateY(1px); }
.signin .fi { width: 20px; height: 20px; flex: none; }
.side .install { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 12px; background: #f3f4f6; color: #111; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; transition: background .15s; }
.side .install:hover { background: #fff; }
.chrome { width: 20px; height: 20px; flex: none; border-radius: 50%; background: conic-gradient(#ea4335 0 33%, #fbbc04 0 66%, #34a853 0); box-shadow: inset 0 0 0 5px #4285f4, inset 0 0 0 6px #fff; }
.side:not(:hover):not(.pinned):not(:focus-within) :is(.install, .signin) span { display: none; }
.side:not(:hover):not(.pinned):not(:focus-within) :is(.install, .signin) { gap: 0; padding: 0; }

/* Phones: a top bar and a full-screen menu instead of the rail */
.mbar, .msheet { display: none; }
@media (max-width: 980px) {
  :root { --rail: 0px; }
  .side { display: none; }
  body.has-side main, body.has-side.pinned main { margin-left: 0; }
  .mbar { position: fixed; z-index: 60; inset: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 12px 0 16px; background: rgba(11,12,16,.82); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--s-line); color: var(--s-text); }
  .mbar .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; margin-right: auto; min-height: 44px; }
  .mbar .logo img { width: 32px; height: 32px; border-radius: 9px; }
  .mbar .crown { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--s-gold); }
  .mbar .me { display: grid; place-items: center; width: 44px; height: 44px; }
  .mbar .me .av { width: 32px; height: 32px; border-radius: 9px; background: #1d2029 center / cover; }
  .mbar .me.out { width: auto; padding: 0 14px; height: 38px; border-radius: 10px; background: var(--s-acc); color: #fff; font-size: 14px; font-weight: 800; }
  .mbar .menu { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--s-text); cursor: pointer; }
  .msheet { position: fixed; z-index: 59; inset: 60px 0 0; display: block; overflow-y: auto; padding: 12px 16px 32px; background: rgba(11,12,16,.97); color: var(--s-text); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s cubic-bezier(.2,0,0,1), visibility 0s .25s; }
  body.menu-open .msheet { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s cubic-bezier(.2,0,0,1); }
  body.menu-open { overflow: hidden; }
  .msheet a.it { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 8px; border-bottom: 1px solid var(--s-line); color: var(--s-text); font-size: 17px; font-weight: 600; }
  .msheet a.it .ic { color: var(--s-muted); }
  .msheet a.it.gold .ic { color: var(--s-gold); }
  .msheet .badge { margin-left: auto; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.06); color: var(--s-muted); }
  .msheet .acts { display: grid; gap: 10px; margin-top: 20px; }
  .msheet .acts .install { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 12px; background: #f3f4f6; color: #111; font-weight: 800; }
  .msheet .acts .signin { height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .side, .msheet, body.has-side main { transition: none !important; } }
