/* mouse aim assist toast */
#assist-toast { position: fixed; left: 50%; top: 31%; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(27, 16, 51, 0.88); border: 3px solid #c6ff3a;
  color: #fff; font-weight: 900; font-size: 17px; letter-spacing: .02em; pointer-events: none; white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0,0,0,.35); opacity: 0; transform: translate(-50%, -8px) scale(.9); transition: opacity .18s, transform .22s cubic-bezier(.3,1.6,.5,1); }
#assist-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
#assist-toast.off { border-color: #9a8fb3; }
#assist-toast .at-ico { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #c6ff3a; box-sizing: border-box; }
#assist-toast.off .at-ico { border-color: #9a8fb3; }
#assist-toast .at-ico i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #c6ff3a; }
#assist-toast.off .at-ico i { background: #9a8fb3; }
#assist-toast.off .at-ico b { position: absolute; left: -4px; right: -4px; top: 50%; height: 3px; margin-top: -1.5px; background: #ff5a7a; transform: rotate(-45deg); border-radius: 2px; }
#assist-toast .at-key { min-width: 22px; height: 22px; padding: 0 4px; box-sizing: border-box; border-radius: 6px; background: #fff; color: #1b1033;
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 #9a8fb3; }

/* team mode HUD: blue score, the three pools, orange score */
body.poolmode #hud-top .kills-row { display: none !important; }
#poolhud { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; }
#poolhud .ph-score { position: relative; min-width: 46px; height: 26px; padding: 0 8px; box-sizing: border-box; border-radius: 9px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.85); background: rgba(27,16,51,.55); }
#poolhud .ph-score b { position: relative; z-index: 1; color: #fff; font-size: 18px; font-weight: 900; text-shadow: 0 2px 0 #1b1033, 0 0 3px #1b1033; }
#poolhud .ph-score i { position: absolute; left: 0; bottom: 0; top: 0; width: 0; opacity: .9; transition: width .2s; }
#poolhud .ph-b i { background: #29b8ff; }
#poolhud .ph-o i { background: #ff7a3c; left: auto; right: 0; }
#poolhud .ph-b { border-color: #29b8ff; }
#poolhud .ph-o { border-color: #ff7a3c; }
#poolhud .ph-pools { display: inline-flex; gap: 5px; }
#poolhud .ph-pool { --c: #fff; --p: 0; --o: rgba(255,255,255,.75); position: relative; width: 28px; height: 28px; border-radius: 50%; box-sizing: border-box;
  border: 3px solid var(--o); background: conic-gradient(var(--c) calc(var(--p) * 360deg), rgba(255,255,255,.16) 0); display: inline-flex; align-items: center; justify-content: center; }
#poolhud .ph-pool em { font-style: normal; font-weight: 900; font-size: 14px; color: #fff; text-shadow: 0 1px 0 #1b1033, 0 0 3px #1b1033, 0 0 2px #1b1033; }
#poolhud .ph-pool.own { box-shadow: 0 0 8px var(--o); }
#poolhud .ph-pool.fight { animation: phFight .5s ease-in-out infinite alternate; }
#poolhud .ph-pool.me::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -4px; border: 4px solid transparent; border-top-color: #c6ff3a; transform: rotate(180deg); }
@keyframes phFight { from { transform: scale(1); } to { transform: scale(1.15); } }
#popups .pool-b { color: #8fdcff !important; }
#popups .pool-o { color: #ffb089 !important; }
#endbanner.eb-team-win #eb-sub, #endbanner.eb-team-lose #eb-sub { letter-spacing: .04em; }

/* loadout header: the mode chip is a switch */
#loadout .lo-mode.xm-chip { cursor: pointer; user-select: none; min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; transition: transform .12s; }
#loadout .lo-mode.xm-chip:hover { filter: brightness(1.08); transform: scale(1.04); }
#loadout .lo-mode.xm-chip:active { transform: scale(.94); }
#loadout .lo-mode.xm-chip.pool { background: linear-gradient(90deg, #29b8ff 0 50%, #ff7a3c 50% 100%) !important; color: #fff !important;
  text-shadow: 0 2px 0 #1b1033, 0 0 3px #1b1033; }

/* settings screen rows */
#custom .xm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
#custom .xm-lab { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 17px; color: #1b1033; flex: 0 0 auto; }
#custom .xm-lab::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff4fa3; }
#custom .xm-mode .xm-lab { flex-basis: 100%; }
#custom .xm-seg { display: flex; gap: 10px; flex: 1 1 100%; }
#custom .xm-btn { flex: 1 1 0; min-height: 46px; border-radius: 999px; border: 3px solid #1b1033; background: #fff; color: #1b1033;
  font: inherit; font-weight: 900; font-size: 17px; cursor: pointer; box-shadow: 0 4px 0 #1b1033; transition: transform .1s, background .15s; }
#custom .xm-btn:hover { transform: translateY(-1px); }
#custom .xm-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1b1033; }
#custom .xm-btn.on { background: #1b1033; color: #c6ff3a; }
#custom .xm-btn.on[data-mode="pool"] { background: linear-gradient(90deg, #1f8fd0, #1b1033 50%, #d0602c); }
#custom .xm-desc { flex: 1 1 100%; font-size: 13px; font-weight: 700; color: #5b4f75; }
#custom .xm-switch { position: relative; width: 86px; height: 40px; border-radius: 999px; border: 3px solid #1b1033; background: #e6e0f0; cursor: pointer;
  box-shadow: 0 3px 0 #1b1033; padding: 0; font: inherit; font-weight: 900; font-size: 15px; color: #1b1033; margin-left: auto; transition: background .15s; }
#custom .xm-switch i { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #1b1033; box-sizing: border-box; transition: left .18s cubic-bezier(.3,1.5,.5,1); }
#custom .xm-switch span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
#custom .xm-switch.on { background: #c6ff3a; }
#custom .xm-switch.on i { left: 49px; }
#custom .xm-switch.on span { right: auto; left: 12px; }
#custom .xm-key { min-width: 26px; height: 26px; border-radius: 7px; background: #1b1033; color: #fff; font-weight: 900; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; }
#custom .xm-note { display: none; font-size: 13px; font-weight: 800; color: #1b1033; background: #ffe45c; border-radius: 10px; padding: 6px 10px; text-align: center; }
#custom.xm-pool .xm-note { display: block; }
#custom.xm-pool .cm-body > .cm-col + .cm-col > .cm-step:nth-child(2),
#custom.xm-pool .cm-body > .cm-col + .cm-col > .cm-step:nth-child(4) { opacity: .35; filter: grayscale(1); pointer-events: none; }
@media (max-height: 460px) {
  #custom .xm-lab { font-size: 14px; }
  #custom .xm-btn { min-height: 44px; font-size: 14px; }
  #custom .xm-desc { display: none; }
  #custom .xm-switch { height: 44px; }
  #custom .xm-switch i { top: 5px; }
  #custom .xm-note { font-size: 12px; padding: 4px 8px; }
  #assist-toast { font-size: 14px; top: 26%; }
}
