:root { --accent: #ff6a1a; --cyan: #2ee6ff; --bg: #07090d; --txt: #eef3f8; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; color: var(--txt);
  font-family: 'Segoe UI', 'Rajdhani', system-ui, sans-serif; user-select: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

#loading { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; background: #05070a; }
.spinner { width: 46px; height: 46px; border: 3px solid #1d2733; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
#vignette { position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(200,0,0,.65) 100%); }
#crosshair { position: absolute; left: 50%; top: 50%; --g: 8px; transition: opacity .15s; }
#crosshair i { position: absolute; background: #fff; box-shadow: 0 0 2px #000; }
#crosshair .t, #crosshair .b { width: 2px; height: 9px; left: -1px; }
#crosshair .l, #crosshair .r { width: 9px; height: 2px; top: -1px; }
#crosshair .t { bottom: var(--g); } #crosshair .b { top: var(--g); }
#crosshair .l { right: var(--g); } #crosshair .r { left: var(--g); }
#crosshair b { position: absolute; width: 2px; height: 2px; left: -1px; top: -1px; background: var(--accent); }
#hitmarker { position: absolute; left: 50%; top: 50%; opacity: 0; }
#hitmarker i { position: absolute; width: 12px; height: 2px; background: #fff; }
#hitmarker i:nth-child(1) { transform: translate(-16px, -10px) rotate(45deg); }
#hitmarker i:nth-child(2) { transform: translate(4px, -10px) rotate(-45deg); }
#hitmarker i:nth-child(3) { transform: translate(-16px, 8px) rotate(-45deg); }
#hitmarker i:nth-child(4) { transform: translate(4px, 8px) rotate(45deg); }
#hitmarker.head i { background: #ff3b2f; width: 15px; }
#hitmarker.kill i { background: #ff3b2f; width: 18px; height: 3px; }

#killfeed { position: absolute; right: 22px; top: 210px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
#killfeed div { background: rgba(8,10,14,.7); padding: 5px 11px; border-radius: 5px; font-size: 14px; animation: kf .25s ease-out; border-left: 3px solid var(--accent); }
#killfeed .me { background: rgba(255,106,26,.28); }
#killfeed .hs { color: #ff4d3d; margin: 0 6px; }
@keyframes kf { from { transform: translateX(30px); opacity: 0; } }

#topbar { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); text-align: center; }
#leader { font-size: 15px; background: rgba(8,10,14,.6); padding: 6px 18px; border-radius: 20px; }
#goal { font-size: 11px; color: #9aa7b6; margin-top: 5px; letter-spacing: 2px; }
#minimap { position: absolute; right: 20px; top: 18px; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(8,12,18,.55); border: 2px solid rgba(255,255,255,.15); box-shadow: 0 0 20px rgba(0,0,0,.5); }

#bottomleft { position: absolute; left: 32px; bottom: 30px; width: 300px; }
.hplabel { font-size: 12px; letter-spacing: 3px; color: #a7b4c2; }
#hpnum { font-size: 52px; line-height: 1; font-weight: 900; font-style: italic; }
#hpbar { position: relative; height: 8px; margin-top: 6px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; transform: skewX(-20deg); }
#hpfill, #hpghost { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; }
#hpghost { background: #fff; opacity: .5; transition: width .6s .2s; }
#hpfill { background: linear-gradient(90deg, #2ee6ff, #7dffb2); z-index: 1; transition: width .1s; box-shadow: 0 0 12px #2ee6ff; }
#hpfill.low { background: linear-gradient(90deg, #ff2d2d, #ff7a3d); box-shadow: 0 0 12px #ff2d2d; }

#bottomright { position: absolute; right: 36px; bottom: 30px; text-align: right; }
#weaponname { font-size: 12px; letter-spacing: 3px; color: #a7b4c2; }
#ammo { font-size: 64px; line-height: 1; font-weight: 900; font-style: italic; }
#ammo small { font-size: 22px; color: #8795a5; margin-left: 6px; }
#ammo.low #mag { color: #ff4d3d; }
#reloadhint { font-size: 13px; color: var(--accent); letter-spacing: 2px; opacity: 0; }
#reloadhint.show { opacity: 1; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

#popup { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); text-align: center; font-size: 20px; }
#popup div { animation: pop 1.6s ease-out forwards; }
#popup .big { font-size: 28px; color: var(--accent); font-style: italic; font-weight: 900; }
@keyframes pop { 0% { transform: scale(1.6); opacity: 0; } 12% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
#streak { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-size: 40px; font-weight: 900; font-style: italic; color: #ffcf3a; text-shadow: 0 0 30px rgba(255,180,0,.7); }
#streak div { animation: pop 2.4s ease-out forwards; }

#chat { position: absolute; left: 24px; bottom: 150px; width: 380px; }
#chatlog div { font-size: 14px; padding: 2px 0; transition: opacity 1s; }
#chatlog div.old { opacity: 0; }
#chatlog .sys { color: #9aa7b6; font-style: italic; }
#chatinput { display: none; width: 100%; margin-top: 6px; padding: 8px 10px; font-size: 14px; color: #fff; background: rgba(0,0,0,.65); border: 1px solid var(--accent); border-radius: 6px; outline: none; pointer-events: auto; font-family: inherit; }
#chat.open #chatinput { display: block; } #chat.open #chatlog div.old { opacity: 1; }

#dead { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse, rgba(60,0,0,.2), rgba(30,0,0,.6)); }
#dead h2 { font-size: 56px; font-style: italic; font-weight: 900; color: #ff3b2f; letter-spacing: 4px; text-shadow: 0 0 30px rgba(255,0,0,.6); }
#dead p { font-size: 18px; margin-top: 8px; }
#scoreboard, #matchend { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 560px; padding: 24px 30px; background: rgba(8,11,16,.9); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
#scoreboard h2 { letter-spacing: 4px; margin-bottom: 12px; font-style: italic; }
#scoreboard table { width: 100%; border-collapse: collapse; font-size: 16px; }
#scoreboard th { text-align: left; font-size: 11px; letter-spacing: 2px; color: #8a96a6; padding: 6px; border-bottom: 1px solid #222d3a; }
#scoreboard td { padding: 8px 6px; border-bottom: 1px solid #141c26; }
#scoreboard tr.me td { background: rgba(255,106,26,.15); }
#scoreboard .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
#matchend { text-align: center; }
#matchend h1 { font-size: 46px; font-style: italic; color: #ffcf3a; }
#fps { position: absolute; left: 8px; top: 6px; font-size: 11px; color: #7c8794; font-weight: 400; }

#dmgdirs { position: absolute; left: 50%; top: 50%; }
#dmgdirs div { position: absolute; width: 140px; height: 140px; left: -70px; top: -70px; animation: dmgfade 1.2s forwards; }
#dmgdirs div::before { content: ''; position: absolute; left: 50%; top: -110px; width: 80px; height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(255,30,30,.95), transparent 70%); border-radius: 50%; }
@keyframes dmgfade { to { opacity: 0; } }
#clickhint { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); padding: 8px 16px; font-size: 14px; background: rgba(8,10,14,.75); border: 1px solid var(--accent); border-radius: 6px; animation: blink 1.6s infinite; }

#dropui { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); padding: 8px 18px; font-size: 18px; font-weight: 800; letter-spacing: 2px; color: #2ee6ff; background: rgba(8,10,14,.6); border-radius: 8px; }
