:root { --t:#f0b445; --ct:#62a8ff; --acc:#ff8a1f; --ink:#f3f5f8; --panel:rgba(9,13,19,.72); --line:rgba(255,255,255,.14); }
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-user-select: none; }
html, body { height: 100%; overflow: hidden; background: #000; color: var(--ink); font-family: 'Rajdhani','Barlow Condensed','Segoe UI',Arial,sans-serif; font-weight: 600; letter-spacing: .4px; }
canvas { display: block; }
.hidden { display: none !important; }
b.T, .T { color: var(--t); } b.CT, .CT { color: var(--ct); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; letter-spacing: 1px; }
kbd { background: rgba(255,255,255,.14); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; font: inherit; font-size: .9em; white-space: nowrap; }
input[type=text] { font: inherit; user-select: text; -webkit-user-select: text; }

/* ---------- Menü ---------- */
.screen { position: fixed; inset: 0; z-index: 20; }
#menu { display: flex; justify-content: space-between; align-items: center; padding: 0 6vw; background: linear-gradient(90deg, rgba(5,8,12,.88) 0%, rgba(5,8,12,.55) 45%, rgba(5,8,12,.15) 100%); }
.menu-left { width: min(520px, 90vw); }
.logo { font-family: 'Barlow Condensed',Impact,sans-serif; font-weight: 800; font-size: clamp(60px, 9vw, 120px); line-height: .9; letter-spacing: 3px; text-shadow: 0 6px 30px rgba(0,0,0,.7); }
.logo b { color: var(--acc); font-weight: 800; }
.tag { opacity: .7; letter-spacing: 3px; font-size: 14px; margin: 6px 0 28px 4px; }
nav { display: flex; flex-direction: column; gap: 8px; }
nav button { text-align: left; background: rgba(255,255,255,.07); border-left: 4px solid transparent; padding: 12px 20px; display: flex; flex-direction: column; transition: .12s; backdrop-filter: blur(4px); }
nav button span { font-family: 'Barlow Condensed',sans-serif; font-weight: 700; font-size: 28px; letter-spacing: 2px; }
nav button small { opacity: .6; font-size: 14px; letter-spacing: .5px; }
nav button:hover { background: rgba(255,138,31,.2); border-left-color: var(--acc); transform: translateX(6px); }
#menuStatus { margin-top: 14px; min-height: 22px; color: #ffb38a; font-size: 16px; }
.menu-right { width: min(340px, 90vw); display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; backdrop-filter: blur(6px); }
.panel.small { font-size: 12px; opacity: .6; }
.panel h3 { font-family: 'Barlow Condensed',sans-serif; font-size: 15px; letter-spacing: 2px; opacity: .7; margin-bottom: 8px; }
#name { width: 100%; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 4px; color: #fff; font-size: 22px; padding: 8px 12px; outline: none; }
#name:focus { border-color: var(--acc); }
.rules { list-style: none; font-size: 16px; line-height: 1.35; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Dialoge ---------- */
.dialog { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 5; backdrop-filter: blur(3px); }
.dlg-box { background: rgba(11,15,22,.96); border: 1px solid var(--line); border-top: 3px solid var(--acc); border-radius: 6px; padding: 24px 28px; width: min(480px, 92vw); max-height: 92vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.dlg-box.wide { width: min(640px, 94vw); }
.dlg-box h2 { font-family: 'Barlow Condensed',sans-serif; font-size: 34px; letter-spacing: 3px; margin-bottom: 4px; }
.dlg-box label { font-size: 16px; opacity: .8; display: flex; justify-content: space-between; margin-top: 6px; }
.dlg-box label b { color: var(--acc); }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.cta { background: var(--acc); color: #1a0e00; padding: 11px 26px; font-family: 'Barlow Condensed',sans-serif; font-weight: 800; font-size: 22px; border-radius: 3px; letter-spacing: 2px; transition: .1s; }
.cta:hover { filter: brightness(1.15); transform: translateY(-1px); }
.ghost { background: rgba(255,255,255,.1); padding: 11px 22px; font-family: 'Barlow Condensed',sans-serif; font-weight: 700; font-size: 20px; border-radius: 3px; letter-spacing: 2px; }
.ghost:hover { background: rgba(255,255,255,.2); }
.ghost.danger:hover { background: #a52a2a; }
.seg { display: flex; gap: 4px; margin-top: 4px; }
.seg button { flex: 1; background: rgba(255,255,255,.08); padding: 9px 4px; font-size: 14px; font-weight: 700; border-bottom: 3px solid transparent; }
.seg button.on { background: rgba(255,138,31,.25); border-bottom-color: var(--acc); }
input[type=range] { width: 100%; accent-color: var(--acc); margin: 6px 0 2px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--acc); }
input[type=color] { width: 54px; height: 30px; background: none; border: 1px solid var(--line); }
.row { display: flex; flex-direction: column; margin: 4px 0; }
.row:has(input[type=checkbox]), .row:has(input[type=color]) { flex-direction: row; justify-content: space-between; align-items: center; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tabs button { background: rgba(255,255,255,.07); padding: 8px 16px; font-weight: 700; flex: 1; border-bottom: 3px solid transparent; }
.tabs button.on { border-bottom-color: var(--acc); background: rgba(255,138,31,.2); }
.cross-prev { height: 130px; background: repeating-conic-gradient(#3a4452 0 25%, #2d3541 0 50%) 0 0/20px 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; position: relative; }
#crossPrev { position: relative; width: 60px; height: 60px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; font-size: 17px; }
.keys div { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; text-shadow: 0 2px 4px rgba(0,0,0,.8); }
#cross { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#cross i, #cross u, #crossPrev i, #crossPrev u { position: absolute; background: var(--cc, #3dff7a); display: block; text-decoration: none; }
#cross.outline i, #cross.outline u, #crossPrev.outline i, #crossPrev.outline u { box-shadow: 0 0 0 1px rgba(0,0,0,.85); }
#hitm { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%,-50%) rotate(45deg); opacity: 0; }
#hitm::before, #hitm::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 3px #000; }
#hitm::before { left: 16px; top: 0; width: 2px; height: 34px; } #hitm::after { top: 16px; left: 0; height: 2px; width: 34px; }
#hitm.show { opacity: 1; } #hitm.head::before, #hitm.head::after, #hitm.kill::before, #hitm.kill::after { background: #ff3b3b; }
#scope { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0, transparent 31vh, #000 31.3vh); }
#scope::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.9); }
#scope::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(0,0,0,.9); }
#hurtvig { position: absolute; inset: 0; box-shadow: inset 0 0 180px 50px rgba(255,0,0,.75); opacity: 0; transition: opacity .5s; }
#hurtvig.show { opacity: 1; transition: none; }
#flashov { position: absolute; inset: 0; background: #fff; opacity: 0; }

#radar { position: absolute; left: 14px; top: 14px; width: 180px; height: 180px; border-radius: 6px; background: rgba(8,12,18,.55); border: 1px solid var(--line); }
#topbar { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; gap: 3px; font-family: 'Barlow Condensed',sans-serif; }
#topbar .side { display: flex; align-items: center; gap: 10px; background: rgba(9,13,19,.78); padding: 4px 18px; min-width: 170px; }
#topbar .side.ct { border-bottom: 3px solid var(--ct); justify-content: flex-start; } #topbar .side.t { border-bottom: 3px solid var(--t); justify-content: flex-end; }
#topbar .lab { font-weight: 700; font-size: 20px; opacity: .75; } .ct .lab { color: var(--ct); } .t .lab { color: var(--t); }
#topbar .sc { font-size: 38px; font-weight: 800; min-width: 28px; text-align: center; }
#topbar .alive { display: flex; gap: 3px; } #topbar .alive i { width: 9px; height: 22px; background: currentColor; opacity: .95; border-radius: 1px; } #topbar .alive i.dead { opacity: .18; }
#topbar .ct .alive { color: var(--ct); } #topbar .t .alive { color: var(--t); }
.clock { background: rgba(9,13,19,.88); padding: 2px 20px; text-align: center; min-width: 110px; }
#timer { font-size: 36px; font-weight: 800; line-height: 1.05; } #timer.warn { color: #ff5a4a; }
#roundNo { font-size: 12px; opacity: .6; letter-spacing: 2px; }
#bombinfo { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); background: rgba(160,20,20,.85); padding: 3px 16px; font-size: 22px; font-weight: 700; border-radius: 3px; }
#bombinfo.blink { animation: blink .5s infinite; } @keyframes blink { 50% { background: rgba(255,60,40,.95); } }
#msgs { position: absolute; top: 104px; left: 50%; transform: translateX(-50%); text-align: center; font-size: 22px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
#msgs div { background: rgba(9,13,19,.7); padding: 3px 18px; border-radius: 3px; animation: fadeUp 3.2s forwards; }
@keyframes fadeUp { 0%,75% { opacity: 1; } 100% { opacity: 0; } }
#feed { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: 19px; }
#feed div { background: rgba(9,13,19,.72); padding: 4px 12px; border-radius: 3px; display: flex; gap: 8px; align-items: center; }
#feed div.self { outline: 2px solid #ff4a3a; } #feed .hs { color: #ff6b5a; }
#netinfo { position: absolute; left: 14px; top: 198px; font-size: 13px; opacity: .65; }
#money { position: absolute; left: 14px; bottom: 140px; font-family: 'Barlow Condensed',sans-serif; font-size: 34px; font-weight: 700; color: #8fe08a; display: flex; align-items: baseline; gap: 2px; }
#money small { margin-left: 12px; font-size: 14px; opacity: .6; color: #fff; }
#vitals { position: absolute; left: 22px; bottom: 22px; display: flex; gap: 22px; align-items: flex-end; font-family: 'Barlow Condensed',sans-serif; }
.vit { display: flex; align-items: baseline; gap: 8px; } .vit .ico { font-size: 28px; opacity: .85; } .vit b { font-size: 70px; font-weight: 700; line-height: .9; min-width: 90px; }
#hp.low { color: #ff5a4a; } #helm { font-style: normal; font-size: 18px; opacity: .8; }
#kit { background: #1b6d36; padding: 1px 8px; font-size: 16px; border-radius: 3px; align-self: center; }
#weapons { position: absolute; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#wlist { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
#wlist div { background: rgba(9,13,19,.6); padding: 2px 12px; font-size: 17px; opacity: .65; min-width: 180px; text-align: right; border-right: 3px solid transparent; }
#wlist div.on { opacity: 1; background: rgba(255,138,31,.28); border-right-color: var(--acc); }
#wlist div i { opacity: .55; font-style: normal; margin-right: 10px; }
#ammoBox { text-align: right; font-family: 'Barlow Condensed',sans-serif; } #wname { font-size: 18px; opacity: .8; letter-spacing: 2px; }
.ammo { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; } .ammo b { font-size: 70px; font-weight: 700; line-height: .9; } .ammo span { font-size: 30px; opacity: .6; }
#ammo.low { color: #ff5a4a; }
#prompt { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); font-size: 22px; background: rgba(9,13,19,.7); padding: 4px 16px; border-radius: 3px; display: none; }
#progress { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); width: 300px; text-align: center; font-size: 20px; }
#progress .bar { height: 10px; background: rgba(0,0,0,.6); border: 1px solid var(--line); margin-top: 4px; } #progFill { display: block; height: 100%; width: 0; background: var(--acc); }
#roundmsg { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); text-align: center; font-family: 'Barlow Condensed',sans-serif; font-size: 52px; font-weight: 800; letter-spacing: 3px; white-space: nowrap; }
#deadinfo { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); text-align: center; } #deadTitle { font-family: 'Barlow Condensed',sans-serif; font-size: 40px; font-weight: 800; letter-spacing: 3px; color: #ff6b5a; } #deadSub { font-size: 20px; opacity: .85; }

/* ---------- Kaufmenü ---------- */
#buy { position: fixed; inset: 0; z-index: 12; background: rgba(5,8,12,.82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; }
.buy-head { display: flex; align-items: baseline; gap: 36px; font-family: 'Barlow Condensed',sans-serif; } .buy-head h2 { font-size: 40px; letter-spacing: 4px; } .buy-money { font-size: 40px; color: #8fe08a; font-weight: 700; } .buy-time { font-size: 22px; opacity: .75; }
.buy-cols { display: grid; grid-template-columns: repeat(5, minmax(150px, 210px)); gap: 10px; }
.buy-col { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.buy-col h4 { font-family: 'Barlow Condensed',sans-serif; letter-spacing: 2px; font-size: 18px; opacity: .85; padding: 2px 4px 6px; border-bottom: 1px solid var(--line); }
.buy-item { pointer-events: auto; background: rgba(255,255,255,.07); padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 17px; cursor: pointer; border-left: 3px solid transparent; transition: .08s; }
.buy-item:hover { background: rgba(255,138,31,.25); border-left-color: var(--acc); }
.buy-item .k { opacity: .5; margin-right: 8px; } .buy-item .pr { color: #8fe08a; } .buy-item.dis { opacity: .35; cursor: not-allowed; } .buy-item.own { border-left-color: #4db6ff; background: rgba(77,182,255,.15); }
.buy-foot { opacity: .7; font-size: 16px; }
#buyTime.over { color: #ff6b5a; }

/* ---------- Scoreboard ---------- */
#board { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 8; width: min(900px, 94vw); background: rgba(8,11,16,.9); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; pointer-events: none; }
#board .bt { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; font-family: 'Barlow Condensed',sans-serif; font-size: 34px; font-weight: 800; } #board .bt .vs { opacity: .5; font-size: 20px; }
#board table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 18px; } #board th { text-align: right; font-weight: 600; opacity: .5; font-size: 14px; padding: 2px 8px; border-bottom: 1px solid var(--line); } #board th:first-child, #board td:first-child { text-align: left; }
#board td { padding: 4px 8px; text-align: right; } #board tr.me td { background: rgba(255,255,255,.1); } #board tr.dead td { opacity: .45; }
#board .money { color: #8fe08a; }

#pause, #over { background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 30; backdrop-filter: blur(3px); }
#pause .dlg-box button { width: 100%; }
#over { z-index: 14; pointer-events: none; } #over .dlg-box { text-align: center; } #overSub { font-size: 20px; opacity: .8; }
@media (max-width: 900px) { .menu-right { display: none; } .buy-cols { grid-template-columns: repeat(2, 1fr); } #radar { width: 120px; height: 120px; } }
