:root {
  --bg: #120d24; --panel: rgba(24, 17, 48, 0.86); --line: rgba(255, 255, 255, 0.12);
  --txt: #f4efff; --muted: #a99cc9; --accent: #ff4f6d; --accent2: #2ed3ff; --gold: #ffd95a;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); overflow: hidden; user-select: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.row { display: flex; gap: 10px; align-items: center; }
input, select { font: inherit; color: var(--txt); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); padding: 10px 12px; outline: none; }
input:focus, select:focus { border-color: var(--accent2); }
select option { background: #241a44; }

.btn { font: inherit; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; color: var(--txt);
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); padding: 11px 18px; cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background .15s, transform .1s; }
.btn:hover { background: rgba(255, 255, 255, 0.16); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: #ff6a84; }
.btn.danger { background: #8a2840; }
.btn.small { padding: 7px 12px; font-size: 11px; }
.btn.big { padding: 16px; font-size: 16px; width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }

.screen { position: fixed; inset: 0; display: flex; overflow-y: auto; padding: 16px 0; }
.screen > :not(.menu-bg):not(canvas):not(#hud):not(#end) { margin: auto; }
#screen-game { padding: 0; overflow: hidden; }
.menu-bg { position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 20% 15%, #ff8fb1 0%, transparent 45%), radial-gradient(ellipse at 85% 30%, #6fe3cf 0%, transparent 40%),
  radial-gradient(ellipse at 60% 100%, #8a5cff 0%, transparent 55%), linear-gradient(160deg, #2a1a52, #120d24 70%); }
.menu-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 46px 46px; opacity: .15; }
.menu-bg.dark { filter: brightness(.55); }

.menu-card { width: min(520px, 92vw); background: var(--panel); border: 1px solid var(--line); padding: 34px; backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); display: flex; flex-direction: column; gap: 14px; }
.logo { font-size: 50px; line-height: .9; font-weight: 900; letter-spacing: 4px; }
.logo span { display: block; background: linear-gradient(90deg, #ffd95a, #ff4f6d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo b { display: block; color: #fff; text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 #8a5cff; }
.tag { margin: 0; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.row.join input { flex: 1; text-transform: uppercase; letter-spacing: 6px; font-weight: 700; text-align: center; }
.row .btn { flex: 1; }
.note { background: rgba(46, 211, 255, .15); border-left: 3px solid var(--accent2); padding: 10px; font-size: 14px; }
.err { background: rgba(255, 79, 109, .18); border-left: 3px solid var(--accent); padding: 10px; font-size: 14px; }
.controls { font-size: 12px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 12px; }
.controls b { color: var(--txt); margin-right: 6px; }

/* lobby */
.lobby { width: min(980px, 95vw); background: var(--panel); border: 1px solid var(--line); padding: 26px; display: grid; gap: 18px; }
.lobby header { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.code { font-size: 44px; font-weight: 900; letter-spacing: 10px; color: var(--gold); }
.invite { flex: 1; max-width: 520px; }
.invite input { flex: 1; font-size: 13px; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.vs { align-self: center; font-size: 30px; font-weight: 900; color: var(--muted); }
.team { background: rgba(0, 0, 0, .2); padding: 14px; border-top: 3px solid; display: flex; flex-direction: column; gap: 8px; }
.team.t0 { border-color: var(--accent); } .team.t1 { border-color: var(--accent2); }
.team h3 { margin: 0 0 4px; letter-spacing: 2px; } .team h3 small { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 6px; }
.slotp { padding: 9px 12px; background: rgba(255, 255, 255, .06); font-weight: 600; }
.slotp.me { background: rgba(255, 217, 90, .18); outline: 1px solid var(--gold); }
.slotp.bot { color: var(--muted); font-weight: 400; font-style: italic; }
.slotp i, .selp i { color: var(--muted); font-size: 11px; }
.settings { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; }
.settings label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.settings b { color: var(--txt); font-size: 15px; letter-spacing: 0; text-transform: none; padding: 9px 0; }
.lobby-chat { display: flex; flex-direction: column; gap: 6px; }
#lobby-chat-log { height: 80px; overflow-y: auto; font-size: 13px; background: rgba(0,0,0,.2); padding: 8px; }
.lobby footer { display: flex; justify-content: space-between; align-items: center; }
.small-note { margin: 0; font-size: 11px; }

/* seleção */
.select { width: 96vw; height: 92vh; display: flex; flex-direction: column; gap: 14px; }
.sel-top { display: flex; align-items: center; gap: 24px; }
.sel-top h1 { margin: 0; letter-spacing: 4px; font-size: 30px; }
#sel-side { font-weight: 700; letter-spacing: 1px; }
.sel-timer { margin-left: auto; font-size: 42px; font-weight: 900; color: var(--gold); }
.sel-main { flex: 1; display: grid; grid-template-columns: 260px 1fr 380px; gap: 18px; min-height: 0; }
#sel-team { display: flex; flex-direction: column; gap: 8px; }
.selp { display: flex; gap: 12px; align-items: center; background: var(--panel); padding: 10px; border-left: 4px solid var(--c); opacity: .75; }
.selp.locked { opacity: 1; background: color-mix(in srgb, var(--c) 22%, #1b1336); }
.selp .cg { font-size: 26px; width: 34px; text-align: center; color: var(--c); }
.selp small { display: block; color: var(--muted); }
.sel-center { position: relative; background: radial-gradient(circle at 50% 60%, rgba(255,255,255,.08), transparent 60%); min-height: 0; }
#preview { width: 100%; height: 100%; display: block; }
#champ-info { position: absolute; left: 16px; bottom: 16px; right: 16px; background: var(--panel); padding: 16px; border: 1px solid var(--line); }
#champ-info h2 { margin: 0; font-size: 28px; letter-spacing: 2px; }
#champ-info .role { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; }
#champ-info p { margin: 8px 0; font-size: 14px; }
.abl { display: flex; flex-direction: column; margin-top: 6px; font-size: 13px; }
.abl span { color: var(--muted); }
.sel-right { display: flex; flex-direction: column; gap: 14px; }
#champ-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ccard { font: inherit; color: var(--txt); background: var(--panel); border: 2px solid transparent; padding: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: transform .1s; }
.ccard:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--c); }
.ccard .cg { font-size: 40px; color: var(--c); text-shadow: 0 0 18px var(--c); }
.ccard .cn { font-weight: 800; letter-spacing: 1px; }
.ccard .cr { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.ccard.picked { border-color: var(--c); background: color-mix(in srgb, var(--c) 25%, #1b1336); }
.ccard.taken { opacity: .3; cursor: not-allowed; }

/* jogo */
#screen-game { background: #000; }
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
#hud { position: absolute; inset: 0; pointer-events: none; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
#hud .ov { position: absolute; inset: 0; opacity: 0; transition: opacity .15s; }
#smokeov { background: radial-gradient(circle, #5a3f96, #2a1a52); transition: opacity .08s !important; }
#flash { background: #fff; transition: opacity .05s !important; }
#vignette { background: radial-gradient(circle, transparent 45%, rgba(255, 30, 60, .7)); transition: opacity .25s !important; }
#scope { position: absolute; inset: 0; background: radial-gradient(circle, transparent 0, transparent 34vh, #000 34.2vh); }
#scope .scope-ring { position: absolute; left: 50%; top: 50%; width: 68vh; height: 68vh; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #7affe0; box-shadow: inset 0 0 40px rgba(122,255,224,.25); }
#scope { --err: 0; }
/* em movimento só a mira ciano desfoca (anel e linhas), o cenário fica nítido */
#scope .scope-h, #scope .scope-v, #scope .scope-ring { filter: blur(calc(var(--err) * 5px)); opacity: calc(1 - var(--err) * 0.3); }
#scope .scope-h { height: calc(1px + var(--err) * 3px); } #scope .scope-v { width: calc(1px + var(--err) * 3px); }
#scope::after { display: none; content: ""; position: absolute; left: 50%; top: calc(50% + 24vh); transform: translateX(-50%); font-size: 13px; letter-spacing: 4px; color: #ff4f6d; opacity: calc((var(--err) - 0.25) * 2); }
#scope .scope-h { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #7affe0; }
#scope .scope-v { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #7affe0; }
/* luneta: lente levemente esverdeada com vinheta e reflexo, postes grossos vindo das bordas, marcas de distância e ponto central */
#scope .scope-lens { position: absolute; left: 50%; top: 50%; width: 68vh; height: 68vh; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255,255,255,.07) 0, transparent 22%), radial-gradient(circle, rgba(122,255,224,.04) 0, rgba(122,255,224,.05) 55%, rgba(0,20,18,.55) 92%, rgba(0,0,0,.9) 100%); }
#scope .scope-h, #scope .scope-v { background: rgba(10,25,22,.9); }
#scope .scope-post { position: absolute; background: #050a09; }
#scope .sp-l, #scope .sp-r { top: 50%; height: calc(4px + var(--err) * 3px); transform: translateY(-50%); width: 22vh; }
#scope .sp-l { left: calc(50% - 34vh); } #scope .sp-r { right: calc(50% - 34vh); }
#scope .sp-b { left: 50%; width: calc(4px + var(--err) * 3px); transform: translateX(-50%); height: 22vh; top: calc(50% + 12vh); }
#scope .scope-ticks { position: absolute; left: 50%; top: 50%; width: 22vh; height: 22vh; transform: translate(-50%, -50%);
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(2.75vh - 1px), rgba(10,25,22,.9) calc(2.75vh - 1px), rgba(10,25,22,.9) 2.75vh) center / 100% 7px no-repeat,
              repeating-linear-gradient(0deg, transparent 0, transparent calc(2.75vh - 1px), rgba(10,25,22,.9) calc(2.75vh - 1px), rgba(10,25,22,.9) 2.75vh) center / 7px 100% no-repeat; }
#scope .scope-dot { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; transform: translate(-50%, -50%); border-radius: 50%; background: #ff4f6d; box-shadow: 0 0 4px #ff4f6d; }
#scope .scope-post, #scope .scope-ticks, #scope .scope-dot { filter: blur(calc(var(--err) * 4px)); }

#cross { --gap: 6px; position: absolute; left: 50%; top: 50%; }
#cross i { position: absolute; background: #7dfcff; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
#cross .c-t, #cross .c-b { width: 2px; height: 7px; left: -1px; }
#cross .c-l, #cross .c-r { height: 2px; width: 7px; top: -1px; }
#cross .c-t { top: calc(-1 * var(--gap) - 7px); } #cross .c-b { top: var(--gap); }
#cross .c-l { left: calc(-1 * var(--gap) - 7px); } #cross .c-r { left: var(--gap); }
#cross .c-d { width: 2px; height: 2px; left: -1px; top: -1px; }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%) rotate(45deg); opacity: 0; }
#hitmarker.show { opacity: 1; }
#hitmarker::before, #hitmarker::after { content: ""; position: absolute; background: #fff; }
#hitmarker::before { left: 10px; top: 0; width: 2px; height: 22px; } #hitmarker::after { top: 10px; left: 0; height: 2px; width: 22px; }
#hitmarker.head::before, #hitmarker.head::after { background: #ffd95a; }
#hitmarker.kill::before, #hitmarker.kill::after { background: #ff4f6d; }
#dmg { position: absolute; left: 50%; top: 50%; }
.dmg-ind { position: absolute; width: 90px; height: 14px; border-radius: 50% 50% 0 0; border-top: 6px solid #ff3c5a; }

#mm { position: absolute; left: 14px; top: 14px; border: 1px solid var(--line); }
#top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
#top .sc { font-size: 34px; width: 52px; text-align: center; }
.tbox { background: var(--panel); padding: 6px 18px; text-align: center; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 12px 100%); min-width: 150px; }
#timer { font-size: 28px; } #timer.red { color: var(--accent); }
#timer-sub { font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.alive { display: flex; gap: 4px; }
.alive .ic { width: 26px; height: 26px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 35%, #120d24); border-bottom: 3px solid var(--c); font-size: 15px; color: #fff; }
.alive .ic.dead { opacity: .25; filter: grayscale(1); }
#feed { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.kf { background: rgba(10, 6, 24, .7); padding: 5px 10px; font-size: 13px; }
.kf.mine { outline: 1px solid var(--gold); }
.kf-w { color: var(--muted); margin: 0 6px; }
#banner { position: absolute; top: 22%; left: 0; right: 0; text-align: center; opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s; }
#banner.show { opacity: 1; transform: scale(1); }
.b-main { font-size: 54px; font-weight: 900; letter-spacing: 8px; text-shadow: 0 0 30px currentColor, 0 4px 8px rgba(0,0,0,.6); }
.b-sub { font-size: 16px; letter-spacing: 3px; text-transform: uppercase; }
#toasts { position: absolute; top: 60%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast { background: rgba(10, 6, 24, .75); padding: 8px 16px; font-size: 14px; animation: pop .25s; }
.toast.small { color: var(--gold); background: none; font-size: 18px; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
#hint { position: absolute; bottom: 150px; left: 0; right: 0; text-align: center; font-size: 15px; color: var(--gold); letter-spacing: 1px; }
#progress { position: absolute; top: 58%; left: 50%; transform: translateX(-50%); width: 300px; text-align: center; }
#progress-label { font-size: 12px; letter-spacing: 3px; }
.pbar { height: 8px; background: rgba(0,0,0,.5); margin-top: 4px; } #progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }
#suppress, #buff { position: absolute; bottom: 190px; left: 50%; transform: translateX(-50%); padding: 6px 14px; letter-spacing: 3px; font-size: 13px; }
#suppress { background: rgba(79, 163, 255, .35); } #buff { background: rgba(255, 90, 60, .35); bottom: 220px; }

#bl { position: absolute; left: 20px; bottom: 18px; }
#champ { font-size: 14px; letter-spacing: 2px; margin-bottom: 4px; }
.hpbox { display: flex; align-items: baseline; gap: 12px; background: var(--panel); padding: 6px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
#hp { font-size: 46px; } #hp.low { color: var(--accent); }
#sh { font-size: 20px; color: var(--accent2); }
#money { margin-top: 6px; font-size: 20px; color: var(--gold); }
#abil { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.abi { position: relative; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.abi-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--c); background: var(--panel);
  border: 2px solid color-mix(in srgb, var(--c) 70%, transparent); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.abi-icon svg { width: 34px; height: 34px; filter: drop-shadow(0 0 6px var(--c)); }
.abi-key { position: absolute; top: -9px; left: -6px; z-index: 1; font-size: 12px; background: #fff; color: #120d24; width: 20px; height: 20px; display: grid; place-items: center; text-shadow: none; }
.abi-n { font-size: 11px; color: var(--c); letter-spacing: 2px; line-height: 1; }
.abi.off .abi-icon { filter: grayscale(.8); opacity: .45; } .abi.off .abi-n { opacity: .6; }
#hud.spectating #bl, #hud.spectating #br { opacity: .85; } #hud.spectating #slots { display: none; }
#br { position: absolute; right: 20px; bottom: 18px; text-align: right; }
#slots { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; margin-bottom: 6px; }
.slot { font-size: 12px; padding: 3px 10px; background: rgba(10,6,24,.5); color: var(--muted); }
.slot.on { color: #fff; background: rgba(255, 79, 109, .35); } .slot.empty { opacity: .4; }
#wname { font-size: 14px; letter-spacing: 2px; color: var(--muted); }
.ammobox { background: var(--panel); padding: 4px 16px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); }
#ammo { font-size: 46px; } #ammo.low { color: var(--accent); } #reserve { font-size: 20px; color: var(--muted); margin-left: 6px; }
#chat { position: absolute; left: 14px; bottom: 170px; width: 340px; pointer-events: auto; }
#chat-log { font-size: 13px; font-weight: 500; display: flex; flex-direction: column; gap: 2px; }
#chat-log div { transition: opacity 1s; } #chat-log .fade { opacity: 0; }
#chat-input { width: 100%; margin-top: 4px; }
#tags { position: absolute; inset: 0; }
.ntag { position: absolute; left: 0; top: 0; font-size: 12px; color: #bff3ff; white-space: nowrap; text-align: center; transform-origin: 50% 100%; }
.ntag i { display: block; height: 3px; background: #2ed3ff; margin: 2px auto 0; max-width: 60px; }
.ntag.enemy { color: var(--accent); font-size: 18px; }
#hud.dead #abil, #hud.dead #br, #hud.dead .hpbox { opacity: .35; }

#buy, #scores, #menu { position: absolute; inset: 0; pointer-events: auto; background: rgba(10, 6, 24, .72); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.buy-head { width: min(1250px, 96vw); display: flex; align-items: baseline; gap: 20px; }
.buy-head h2 { margin: 0; letter-spacing: 6px; font-size: 32px; }
#buy-money { color: var(--gold); font-size: 28px; }
.buy-hint { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
.buy-grid { width: min(1250px, 96vw); display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 14px; margin-top: 14px; }
/* loja em grade: armas em cartões com a silhueta grande; habilidades e o time na fileira de baixo */
.buy-head, .buy-weap, .buy-bottom { width: min(1100px, 96vw); }
.buy-weap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.buy-bottom { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
#buy-abil { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#buy-abil .buy-item { margin-bottom: 0; height: 100%; }
.buy-item.wcard { position: relative; grid-template-columns: 1fr auto; grid-template-rows: 74px auto auto; padding: 10px 12px; min-height: 128px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0) 55%), var(--panel); }
.buy-item.wcard .bi-art { grid-column: span 2; width: 100%; height: 66px; align-self: center; color: #e8e4ff; opacity: .92; filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)); transition: transform .12s, color .12s; }
.buy-item.wcard .bi-art.sh { color: #6ad8ff; }
.buy-item.wcard:hover .bi-art { transform: scale(1.06); color: #fff; }
.buy-item.wcard .bi-name { align-self: end; }
.buy-item.wcard.owned::before { content: "VOCÊ TEM"; position: absolute; top: 6px; right: 8px; font-size: 10px; letter-spacing: 2px; color: #4dffb8; font-weight: 800; }
.buy-item.wcard.poor .bi-price { color: #ff6b81; }
.buy-col h3 { letter-spacing: 3px; font-size: 13px; color: var(--muted); margin: 6px 0; }
.buy-item { font: inherit; width: 100%; text-align: left; color: var(--txt); background: var(--panel); border: 1px solid var(--line); padding: 12px; margin-bottom: 8px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px; }
.buy-item:hover { border-color: var(--accent2); }
.bi-name { font-weight: 800; font-size: 16px; } .bi-price { color: var(--gold); } .bi-stat { grid-column: span 2; font-size: 11px; color: var(--muted); font-weight: 500; }
.buy-item.owned { border-color: #4dffb8; background: rgba(77, 255, 184, .12); }
.buy-item.owned .bi-price::after { content: " ✓"; color: #4dffb8; }
.buy-item.poor { opacity: .4; }
.tm-row { font-size: 13px; padding: 3px 0; font-weight: 500; } .tm-row b { color: var(--gold); float: right; } .tm-row i { color: var(--muted); font-size: 11px; }
#scores { justify-content: flex-start; padding-top: 8vh; }
#scores h3 { width: min(800px, 94vw); margin: 16px 0 6px; letter-spacing: 3px; }
#scores table, .end-box table { width: min(800px, 94vw); border-collapse: collapse; font-size: 14px; }
#scores th, #scores td, .end-box th, .end-box td { padding: 5px 10px; text-align: left; }
#scores th, .end-box th { color: var(--muted); font-size: 11px; letter-spacing: 2px; }
#scores tr:nth-child(even) td, .end-box tr:nth-child(even) td { background: rgba(255, 255, 255, .04); }
#scores tr.dead td { opacity: .45; } #scores tr.me td, .end-box tr.me td { background: rgba(255, 217, 90, .15); }
#scores i { color: var(--muted); font-size: 11px; }
.menu-box { background: var(--panel); padding: 26px; width: min(520px, 92vw); display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.menu-box h2 { margin: 0; letter-spacing: 3px; }
.menu-box label { display: flex; align-items: center; gap: 12px; font-size: 14px; } .menu-box input[type=range] { flex: 1; padding: 0; }
.menu-keys { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.6; }
#lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(10,6,24,.45); pointer-events: auto; cursor: pointer; font-size: 26px; letter-spacing: 6px; gap: 10px; }
#lock small { font-size: 12px; letter-spacing: 2px; color: var(--muted); }
#end { position: absolute; inset: 0; background: rgba(10, 6, 24, .85); display: flex; align-items: center; justify-content: center; z-index: 5; }
.end-box { text-align: center; max-height: 96vh; overflow-y: auto; padding: 0 10px; } .end-box h1 { font-size: clamp(40px, 9vh, 72px); letter-spacing: 12px; margin: 0; text-shadow: 0 0 40px currentColor; }
.end-score { font-size: 40px; font-weight: 900; margin-bottom: 14px; } .end-box h3 { text-align: left; margin: 14px 0 4px; letter-spacing: 3px; }
.mvp { background: var(--gold); color: #120d24; padding: 1px 6px; font-size: 11px; }

.buy-item.abil { grid-template-columns: auto 1fr auto; column-gap: 10px; border-left: 3px solid var(--c); }
.buy-item.abil .bi-ic { grid-row: span 3; position: relative; width: 46px; height: 46px; display: grid; place-items: center; color: var(--c); background: rgba(0,0,0,.25); }
.buy-item.abil .bi-ic svg { width: 30px; height: 30px; }
.buy-item.abil .bi-ic b { position: absolute; top: -6px; left: -6px; background: #fff; color: #120d24; font-size: 11px; width: 17px; height: 17px; display: grid; place-items: center; }
.buy-item.abil .bi-stat { grid-column: 2 / span 2; }
.bi-pips { grid-column: 2 / span 2; color: var(--c); font-size: 13px; letter-spacing: 2px; } .bi-pips i { color: var(--muted); font-style: normal; letter-spacing: 0; font-size: 11px; margin-left: 4px; }
.abl { flex-direction: row !important; gap: 10px; align-items: center; } .abl > div { display: flex; flex-direction: column; }
.abl-ic svg { width: 30px; height: 30px; display: block; }

.abi.used .abi-icon { animation: abused .6s ease-out; }
@keyframes abused { 0% { transform: scale(1.25); box-shadow: 0 0 0 0 var(--c); background: color-mix(in srgb, var(--c) 70%, #120d24); } 100% { transform: scale(1); } }
#hud.spectating #abil { opacity: .9; }

.net-status { font-size: 12px; color: var(--muted); } .net-status.open { color: #4dffb8; } .net-status.closed { color: var(--accent); }

#hitmarker.wb::after { box-shadow: 0 0 6px #ffb02e; }
#hitmarker.wb { filter: drop-shadow(0 0 4px #ffb02e); }
#hitmarker.wb::before { background: #ffb02e; }

.ver { font-size: 11px; color: var(--gold); border: 1px solid var(--line); padding: 1px 6px; margin-left: 6px; }

.kf { display: flex; align-items: center; gap: 4px; }
.kf-ic { width: 18px; height: 18px; flex: none; }
.kf-ic.head { color: #ffd95a; filter: drop-shadow(0 0 3px rgba(255, 217, 90, .7)); }
.kf-ic.fl { color: #fff6c8; filter: drop-shadow(0 0 4px rgba(255, 246, 200, .95)); }
.kf-ic.sm { color: #b79cff; filter: drop-shadow(0 0 3px rgba(150, 110, 255, .8)); }
.kf-ic.wb { color: #ffb02e; filter: drop-shadow(0 0 3px rgba(255, 176, 46, .7)); }

.menu-gpu { font-size: 12px; color: var(--muted); line-height: 1.5; font-weight: 500; }
.menu-gpu.bad { color: #ffcf5a; }
#fps { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); margin-top: 80px; font: 700 12px/1 monospace; color: #7dffa8; background: rgba(0,0,0,.45); padding: 3px 7px; border-radius: 4px; pointer-events: none; }
#fps.mid { color: #ffd35a; } #fps.low { color: #ff6b6b; } #fps.hidden { display: none; }

#lock .fs-tip { display: block; margin-top: 6px; opacity: .7; font-size: 11px; }

#burn { opacity: 0; transition: opacity .15s !important; background: radial-gradient(ellipse at 50% 55%, transparent 52%, rgba(255,120,20,.35) 72%, rgba(255,60,0,.75)); }
#burn.on { opacity: 1; animation: burnflick .18s infinite alternate; }
@keyframes burnflick { from { filter: brightness(1); } to { filter: brightness(1.35) saturate(1.2); } }
#burn .burn-tag { position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%); font: 800 15px/1 inherit; letter-spacing: 2px; color: #ffd07a; text-shadow: 0 0 8px #ff5a00, 0 2px 0 #000; }

#hp.healing { color: #7dffa8; text-shadow: 0 0 12px rgba(255,150,40,.9), 0 0 4px #7dffa8; }

.slotp.empty { opacity: .35; font-style: italic; }
.botctl { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.botctl b { color: var(--text, #fff); min-width: 14px; text-align: center; }
.btn.tiny { padding: 2px 10px; font-size: 15px; line-height: 1.2; min-width: 0; }

#pickup { position: absolute; left: 50%; top: calc(50% + 62px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  padding: 9px 18px 9px 10px; background: rgba(12, 8, 30, .82); border: 2px solid #ffd95a; border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 217, 90, .45); pointer-events: none; animation: pkpulse 1s ease-in-out infinite alternate; }
#pickup.hidden { display: none; }
#pickup kbd { font: 900 22px/1 inherit; color: #1b1030; background: #ffd95a; border-radius: 6px; padding: 6px 11px; box-shadow: 0 3px 0 #b8902a; }
#pickup span { font-size: 17px; font-weight: 600; color: #fff; display: block; line-height: 1.2; white-space: nowrap; }
#pickup b { color: #ffd95a; }
#pickup small { display: block; font-size: 12px; color: #ffcf9a; font-weight: 500; }
@keyframes pkpulse { from { box-shadow: 0 0 10px rgba(255, 217, 90, .3); } to { box-shadow: 0 0 22px rgba(255, 217, 90, .7); } }

.slot.spk b { color: #ff3c6e; } .slot.spk.on { border-color: #ff3c6e; }

#recap { position: absolute; right: 16px; top: 50%; transform: translateY(-62%); width: 280px; background: rgba(12, 8, 30, .86); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 10px 10px 6px; pointer-events: none; display: flex; flex-direction: column; gap: 6px; }
#recap.hidden { display: none; }
#recap h4 { margin: 0 2px 4px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
#recap h4 b { color: #ffd95a; font-size: 14px; letter-spacing: 0; }
.rc-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.04); position: relative; }
.rc-row.zero { opacity: .55; }
.rc-row.killer { background: rgba(255, 79, 109, .18); box-shadow: inset 0 0 0 1px rgba(255,79,109,.55); }
.rc-face { width: 44px; height: 44px; border-radius: 8px; border: 2px solid; overflow: hidden; flex: none; background: radial-gradient(circle at 50% 35%, #4a3a7a, #1a1230); display: grid; place-items: center; font-size: 22px; }
.rc-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-info { flex: 1; min-width: 0; }
.rc-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-name i { font-style: normal; font-size: 10px; color: #ff6b85; margin-left: 4px; letter-spacing: 1px; text-transform: uppercase; }
.rc-champ { font-size: 11px; font-weight: 600; }
.rc-dmg { text-align: right; }
.rc-dmg b { display: block; font-size: 20px; line-height: 1; color: #fff; }
.rc-dmg small { font-size: 10px; color: var(--muted); }
.rc-kill { position: absolute; left: 2px; top: 2px; font-size: 12px; font-weight: 900; color: #ffd95a; text-shadow: 0 0 4px #000; }

.kf-face { width: 26px; height: 26px; border-radius: 5px; border: 2px solid; overflow: hidden; flex: none; display: inline-grid; place-items: center; background: radial-gradient(circle at 50% 35%, #4a3a7a, #1a1230); }
.kf-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-face.sm { width: 18px; height: 18px; border-width: 1.5px; border-radius: 4px; opacity: .9; }
.kf-face b { font-size: 13px; }
.kf-fw { position: relative; display: inline-flex; flex: none; }
.kf-mk { position: absolute; right: -7px; bottom: -6px; min-width: 15px; height: 14px; padding: 0 3px; border-radius: 4px; font: 800 10px/14px var(--font, sans-serif); letter-spacing: -.5px; text-align: center;
  color: #1a1230; background: #ffd95a; border: 1.5px solid #1a1230; }
.kf-mk.mk3 { background: #ffb02e; } .kf-mk.mk4 { background: #ff7a3c; color: #fff; } .kf-mk.mk5 { background: #ff3c6a; color: #fff; }
.kf-as { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; }
.kf-as i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 1px; }

/* recap: dano causado (verde) e recebido (vermelho) */
#recap b.out { color: #7dff9a; } #recap b.in { color: #ff6b7a; }
#recap h4 b { margin: 0 2px; }
#recap .rc-dmg + .rc-dmg { margin-left: 8px; }
#recap .rc-empty { opacity: .7; font-size: 12px; padding: 6px 2px; }
#recap { width: 320px; }
#recap .rc-dmg b { font-size: 16px; }
#recap .rc-dmg + .rc-dmg { margin-left: 2px; }
#recap .rc-sum { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: -2px 2px 8px; }
#recap .rc-sum b { font-size: 15px; margin-right: 3px; }
#recap .rc-info { flex: 1; min-width: 0; }
#recap .rc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#recap .rc-champ i { color: #ff6b7a; font-style: normal; font-weight: 700; }
/* placar (Tab): tudo centralizado no meio da tela — títulos, cabeçalhos e células */
#scores { justify-content: center; padding-top: 0; }
#scores h3 { text-align: center; }
#scores th, #scores td { text-align: center; }
#scores table { table-layout: fixed; }
#scores th:nth-child(1), #scores td:nth-child(1) { width: 26%; }
#scores th:nth-child(2), #scores td:nth-child(2) { width: 34%; }
#scores th:nth-child(n+3), #scores td:nth-child(n+3) { width: 10%; }

/* ---- feedback de acerto mais forte ---- */
#hitmarker.show { animation: hmPop .18s ease-out; }
#hitmarker.head { width: 28px; height: 28px; } #hitmarker.head::before { left: 13px; height: 28px; width: 3px; } #hitmarker.head::after { top: 13px; width: 28px; height: 3px; }
#hitmarker.kill { width: 34px; height: 34px; animation: hmPop .3s ease-out; } #hitmarker.kill::before { left: 15.5px; height: 34px; width: 3px; } #hitmarker.kill::after { top: 15.5px; width: 34px; height: 3px; }
#hitmarker.kill::before, #hitmarker.kill::after { box-shadow: 0 0 8px rgba(255, 79, 109, .9); }
#hitmarker.head::before, #hitmarker.head::after { box-shadow: 0 0 6px rgba(255, 217, 90, .9); }
@keyframes hmPop { 0% { transform: translate(-50%, -50%) rotate(45deg) scale(1.7); } 100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); } }
#hitring { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #ffd95a; opacity: 0; pointer-events: none; }
#hitring.go { animation: ringGo .35s ease-out; } #hitring.kill { border-color: #ff4f6d; }
@keyframes ringGo { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(3.2); opacity: 0; } }
#flashfb { position: absolute; left: calc(50% + 34px); top: calc(50% - 34px); display: flex; align-items: center; gap: 3px; color: #fff6c8; opacity: 0; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 246, 200, .9)); }
#flashfb svg { width: 30px; height: 30px; } #flashfb b { font-size: 16px; }
#flashfb.go { animation: fbGo 1.1s ease-out; }
@keyframes fbGo { 0% { opacity: 0; transform: scale(1.8); } 12% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* barra de cima: retratos dos agentes no lugar dos símbolos */
.alive .ic { width: 34px; height: 34px; overflow: hidden; padding: 0; border-radius: 4px 4px 0 0; }
.alive .ic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ícone de abates (centro de baixo): evolui do 1º ao 5º abate da rodada */
#killbanner { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; opacity: 0; color: var(--kc, #fff); }
#killbanner.go { animation: kbIn .35s cubic-bezier(.2, 1.6, .4, 1) forwards; }
#killbanner.out { opacity: 0; transition: opacity .5s; }
#killbanner .kb-ic { width: 64px; height: 64px; filter: drop-shadow(0 0 8px var(--kc)) drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
#killbanner.n4 .kb-ic, #killbanner.n5 .kb-ic { width: 76px; height: 76px; }
#killbanner.n5 .kb-ic { animation: kbSpin 3s linear; }
#killbanner .kb-ic svg { width: 100%; height: 100%; overflow: visible; }
#killbanner .kb-pips { display: flex; gap: 5px; }
#killbanner .kb-pips i { width: 9px; height: 9px; transform: rotate(45deg); background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); }
#killbanner .kb-pips i.on { background: var(--kc); border-color: var(--kc); box-shadow: 0 0 6px var(--kc); }
#killbanner .kb-lbl { font-weight: 900; letter-spacing: 4px; font-size: 13px; text-shadow: 0 0 8px var(--kc), 0 2px 0 #000; }
#killbanner.n5 .kb-lbl { font-size: 22px; letter-spacing: 8px; }
@keyframes kbIn { 0% { opacity: 0; transform: translateX(-50%) scale(1.9); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes kbSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* marcadores de acerto/abate sem brilho (só a cor) */
#hitmarker.head::before, #hitmarker.head::after, #hitmarker.kill::before, #hitmarker.kill::after, #hitmarker.wb::after { box-shadow: none; }
#hitmarker.wb { filter: none; }
#killbanner.n5 .kb-ic { animation: none; } /* ACE sem girar */

/* ícone da arma no kill feed */
.kf-w { display: inline-flex; align-items: center; color: #e9e4ff; }
.kf-wi { width: 46px; height: 15px; display: block; filter: drop-shadow(0 1px 0 rgba(0,0,0,.6)); }

/* minimapa redondo, maior e girando com o personagem */
#mm { border: none; border-radius: 50%; width: min(250px, 22vw); height: min(250px, 22vw); }

/* revelado pela flecha rastreadora: bordas amarelas piscando 3 vezes */
#scanned { opacity: 0; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(255, 217, 60, .35) 78%, rgba(255, 200, 0, .7)); }
#scanned.go { animation: scanBlink 1.1s ease-out; }
@keyframes scanBlink { 0%, 30%, 60% { opacity: 1; } 15%, 45%, 75% { opacity: .15; } 100% { opacity: 0; } }
