:root { --acc: #35f0ff; --acc2: #ff4fd8; --red: #ff4d5a; --blue: #4da3ff; --bg: #0b0e17; --panel: rgba(14,18,30,0.92); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: #e8ecf5; font-family: system-ui, 'Segoe UI', Roboto, sans-serif; user-select: none; -webkit-user-select: none; }
canvas#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 30%, rgba(40,20,90,0.85), rgba(5,7,14,0.96)); z-index: 20; }
#pause, #endscreen { background: rgba(5,7,14,0.78); z-index: 30; }
.card { background: var(--panel); border: 1px solid rgba(120,150,255,0.25); border-radius: 16px; padding: 28px 32px; width: min(420px, 92vw); box-shadow: 0 20px 80px rgba(0,0,0,0.6), 0 0 40px rgba(53,240,255,0.08); max-height: 94vh; overflow: auto; }
.card.wide { width: min(940px, 96vw); }
h1 { margin: 0; font-size: 46px; letter-spacing: 2px; line-height: 1.02; font-weight: 900; text-align: center; font-style: italic; }
h1 span { color: var(--acc); text-shadow: 0 0 24px rgba(53,240,255,0.7); }
h2 { margin: 0 0 10px; } h3 { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: #9fb0d8; }
.tag { text-align: center; color: #8e9bbb; margin: 4px 0 18px; font-size: 14px; }
label { display: block; font-size: 12px; color: #9fb0d8; margin: 10px 0 4px; text-transform: uppercase; letter-spacing: 1px; }
input[type=text], input:not([type]), select { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid #2c3550; background: #10162a; color: #fff; font-size: 16px; outline: none; user-select: text; -webkit-user-select: text; }
input:focus, select:focus { border-color: var(--acc); }
button { padding: 11px 16px; border-radius: 9px; border: 1px solid #34406a; background: #1a2240; color: #e8ecf5; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .08s, background .15s; }
button:hover { background: #26325e; } button:active { transform: scale(0.97); }
button.primary { background: linear-gradient(135deg, #14b8d6, #6a5cff); border: 0; color: #fff; width: 100%; margin-top: 14px; }
button.primary:hover { filter: brightness(1.12); }
button.danger { background: #5a1f2c; border-color: #8a2d41; }
button.t1 { background: #5c1f27; border-color: #ff4d5a; } button.t2 { background: #1f3a5c; border-color: #4da3ff; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 10px; } .row input { flex: 1; text-transform: uppercase; letter-spacing: 4px; text-align: center; font-weight: 700; }
.row.end { justify-content: flex-end; margin-top: 18px; } .row.end .primary { width: auto; margin: 0; }
.or { text-align: center; color: #6e7a9b; font-size: 12px; margin: 16px 0 0; text-transform: uppercase; letter-spacing: 2px; }
#menuErr { color: #ff7b8a; min-height: 20px; margin-top: 10px; text-align: center; font-size: 14px; }
details { margin-top: 12px; color: #9fb0d8; } summary { cursor: pointer; font-size: 13px; }
.keys { border-collapse: collapse; font-size: 13px; margin-top: 8px; width: 100%; } .keys td { padding: 4px 6px; border-bottom: 1px solid #1e2742; } .keys td:first-child { color: var(--acc); white-space: nowrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } @media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px 12px; align-items: center; } .form label { margin: 0; }
.form input[type=range] { width: 100%; } .form input[type=checkbox] { width: 20px; height: 20px; }
small { color: #7f8cae; font-weight: 400; text-transform: none; letter-spacing: 0; }
.pl { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; background: #10162a; margin-bottom: 4px; font-size: 14px; } .pl i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .pl b { margin-left: auto; font-size: 11px; color: #ffd24d; }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.85); }
#topbar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
#center { text-align: center; background: rgba(8,10,20,0.55); padding: 4px 18px; border-radius: 10px; min-width: 150px; }
#modeName { font-size: 11px; letter-spacing: 2px; color: #9fb0d8; text-transform: uppercase; } #timer { font-size: 28px; font-variant-numeric: tabular-nums; } #limitTxt { font-size: 11px; color: #9fb0d8; }
.sc { font-size: 34px; min-width: 64px; text-align: center; padding: 4px 12px; border-radius: 10px; background: rgba(8,10,20,0.55); font-variant-numeric: tabular-nums; } .sc.t1 { color: var(--red); } .sc.t2 { color: var(--blue); } .sc:empty { display: none; } .sc small { display: block; font-size: 10px; letter-spacing: 1px; color: #9fb0d8; }
#info { position: absolute; top: 8px; left: 10px; font-size: 12px; color: #b8c4e8; opacity: 0.85; }
#toasts { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); text-align: center; width: 60%; } .toast { font-size: 17px; margin: 3px 0; animation: fadeout 5s forwards; } .toast.red { color: var(--red); } .toast.blue { color: var(--blue); } .toast.streak { color: #ffd24d; } .toast.info { color: #b8c4e8; font-size: 14px; }
@keyframes fadeout { 0%,75% { opacity: 1; } 100% { opacity: 0; } }
#killfeed { position: absolute; top: 44px; right: 14px; text-align: right; } .kf { background: rgba(8,10,20,0.6); border-radius: 6px; padding: 3px 9px; margin-bottom: 4px; font-size: 14px; animation: fadeout 6s forwards; } .kf.me { outline: 2px solid var(--acc); } .kf em { font-style: normal; color: #ffd24d; margin: 0 6px; font-size: 12px; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#crosshair i { position: absolute; background: #fff; box-shadow: 0 0 2px #000; opacity: 0.9; } #crosshair i:nth-child(1) { left: -1px; top: -16px; width: 2px; height: 9px; } #crosshair i:nth-child(2) { left: -1px; top: 7px; width: 2px; height: 9px; } #crosshair i:nth-child(3) { left: -16px; top: -1px; width: 9px; height: 2px; } #crosshair i:nth-child(4) { left: 7px; top: -1px; width: 9px; height: 2px; }
#crosshair b { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 2px #000; }
#crosshair.enemy i, #crosshair.enemy b { background: #ff3b4e; }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; opacity: 0; }
#hitmarker::before, #hitmarker::after { content: ''; position: absolute; left: 14px; top: -2px; width: 3px; height: 34px; background: #fff; box-shadow: 0 0 3px #000; transform: rotate(45deg); } #hitmarker::after { transform: rotate(-45deg); }
#hitmarker.on { animation: hm .22s ease-out; } #hitmarker.head::before, #hitmarker.head::after { background: #ffd24d; } #hitmarker.kill::before, #hitmarker.kill::after { background: #ff3b4e; height: 40px; top: -5px; }
@keyframes hm { 0% { opacity: 1; transform: scale(1.35); } 100% { opacity: 0; transform: scale(0.9); } }
#banner { position: absolute; top: 22%; width: 100%; text-align: center; font-size: 44px; font-weight: 900; font-style: italic; letter-spacing: 2px; opacity: 0; } #banner.on { animation: ban 2.2s ease-out forwards; } #banner.red { color: var(--red); } #banner.blue { color: var(--blue); } #banner.go { color: var(--acc); }
@keyframes ban { 0% { opacity: 0; transform: scale(1.6); } 10% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
#countdown { position: absolute; top: 30%; width: 100%; text-align: center; font-size: 120px; font-weight: 900; color: #fff; text-shadow: 0 0 30px var(--acc); }
#vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(255,0,30,0.65)); opacity: 0; transition: opacity .25s; } #vignette.on { opacity: 1; transition: none; }
#dmgdirs { position: absolute; left: 50%; top: 50%; }
.dd { position: absolute; width: 0; height: 0; left: 0; top: 0; animation: fadeout 1.2s forwards; } .dd::after { content: ''; position: absolute; left: -22px; top: -150px; width: 44px; height: 70px; background: linear-gradient(to bottom, rgba(255,40,60,0.9), transparent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
#floaters { position: absolute; inset: 0; } .fl { position: absolute; font-size: 22px; color: #fff; animation: rise .8s ease-out forwards; transform: translate(-50%, -50%); } .fl.head { color: #ffd24d; font-size: 28px; } .fl.kill { color: #ff3b4e; font-size: 30px; }
@keyframes rise { 0% { opacity: 1; margin-top: 0; } 100% { opacity: 0; margin-top: -60px; } }
#bl { position: absolute; left: 18px; bottom: 18px; width: 300px; }
.bar { position: relative; height: 26px; background: rgba(8,10,20,0.6); border-radius: 7px; overflow: hidden; margin-top: 6px; border: 1px solid rgba(255,255,255,0.15); } .bar div { height: 100%; width: 100%; transition: width .12s; } #hpFill { background: linear-gradient(90deg, #12c26a, #6af09b); } #armorFill { background: linear-gradient(90deg, #1da0d6, #7de0ff); } #armorBar { height: 14px; } .bar span { position: absolute; right: 8px; top: 0; line-height: 24px; font-size: 16px; } #armorBar span { line-height: 12px; font-size: 11px; }
#effects { display: flex; gap: 6px; flex-wrap: wrap; } .fx { padding: 3px 9px; border-radius: 6px; font-size: 12px; background: rgba(8,10,20,0.65); border: 1px solid currentColor; }
#bc { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: 220px; text-align: center; }
#dashBar { position: relative; height: 12px; background: rgba(8,10,20,0.6); border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); } #dashFill { height: 100%; background: var(--acc); width: 100%; } #dashBar span { position: absolute; inset: 0; font-size: 9px; line-height: 12px; letter-spacing: 2px; } #speedTxt { font-size: 12px; margin-top: 4px; color: #b8c4e8; }
#br { position: absolute; right: 16px; bottom: 16px; } #weapons { display: flex; gap: 5px; }
.ws { width: 54px; padding: 5px 4px; text-align: center; border-radius: 8px; background: rgba(8,10,20,0.6); border: 2px solid transparent; opacity: 0.4; font-size: 11px; } .ws.has { opacity: 0.95; } .ws.cur { border-color: var(--acc); background: rgba(20,60,80,0.75); opacity: 1; transform: translateY(-6px); } .ws b { display: block; font-size: 10px; color: #9fb0d8; } .ws strong { display: block; font-size: 17px; }
#chatlog { position: absolute; left: 18px; bottom: 120px; width: 380px; font-size: 14px; } .cm { margin-top: 3px; background: rgba(8,10,20,0.5); padding: 2px 8px; border-radius: 5px; animation: fadeout 9s forwards; } .cm b { margin-right: 6px; }
#chatbox { position: absolute; left: 18px; bottom: 86px; width: 380px; pointer-events: auto; font-size: 15px; padding: 8px 10px; }
#deathscreen { position: absolute; bottom: 24%; width: 100%; text-align: center; } #deathTitle { font-size: 42px; color: #ff4d5a; font-weight: 900; } #deathBy { font-size: 20px; margin-top: 4px; } #respawnTxt { font-size: 16px; color: #b8c4e8; margin-top: 8px; }
#board { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); width: min(720px, 94vw); background: rgba(8,10,20,0.88); border-radius: 12px; padding: 16px 20px; border: 1px solid rgba(120,150,255,0.25); }
#board table, #endTable table { width: 100%; border-collapse: collapse; } #board th, #endTable th { text-align: left; font-size: 11px; color: #8e9bbb; text-transform: uppercase; letter-spacing: 1px; padding: 4px 8px; } #board td, #endTable td { padding: 6px 8px; border-top: 1px solid #1e2742; font-size: 15px; } td.n { text-align: center; } tr.me td { background: rgba(53,240,255,0.1); } .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
#clickhint { position: absolute; top: 56%; width: 100%; text-align: center; font-size: 22px; background: none; }
#endTitle { text-align: center; font-size: 36px; margin-bottom: 14px; }
#hud::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,0.38)); }
#crosshair.ads i { opacity: 0; } #crosshair.ads b { width: 3px; height: 3px; left: -1.5px; top: -1.5px; }
h1 span { display: block; }
.card { overflow-x: hidden; }
.ws:not(.cur) { display: none; } .ws.cur { width: 120px; transform: none; font-size: 13px; padding: 8px 6px; } .ws.cur b { display: none; } .ws.cur strong { font-size: 26px; }
#scope { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0, transparent 30vmin, #000 30.4vmin); pointer-events: none; }
#scope::before, #scope::after { content: ''; position: absolute; background: rgba(0,0,0,0.85); } #scope::before { left: 50%; top: calc(50% - 30vmin); width: 2px; height: 60vmin; margin-left: -1px; } #scope::after { top: 50%; left: calc(50% - 30vmin); height: 2px; width: 60vmin; margin-top: -1px; }
#crosshair.scoped { display: none; }
#crosshair.ads b { display: none; }
.row.between { justify-content: space-between; } .row.between select { flex: 1; font-size: 13px; padding: 7px 8px; } .lang button { padding: 6px 10px; font-size: 12px; margin-left: 4px; opacity: 0.6; } .lang button.on { opacity: 1; border-color: var(--acc); }
.tag.small { font-size: 12px; margin: 6px 0 0; min-height: 16px; }
#prompt { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); background: rgba(8,10,20,0.72); border: 1px solid var(--acc); border-radius: 8px; padding: 6px 16px; font-size: 18px; }
#reconnect { position: absolute; top: 40%; left: 50%; transform: translateX(-50%); background: rgba(120,20,30,0.85); border-radius: 10px; padding: 14px 28px; font-size: 22px; pointer-events: none; }
