*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;height:100%;overflow:hidden;background:#11151c;color:#eef2f7;font:15px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;user-select:none;-webkit-user-select:none;touch-action:none}
#c{position:fixed;inset:0;width:100%;height:100%;display:block}
.hidden{display:none!important}
button{font:inherit;color:inherit;cursor:pointer}

/* menü */
#menu{position:fixed;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 30%,rgba(30,45,70,.75),rgba(8,10,14,.92));z-index:20;overflow:auto;padding:16px}
.card{width:min(440px,100%);background:#161c26ee;border:1px solid #2a3446;border-radius:14px;padding:24px;box-shadow:0 20px 60px #0008}
h1{font-size:44px;letter-spacing:.12em;font-weight:900;text-align:center;background:linear-gradient(90deg,#5aa0ff,#ffd257 50%,#ff5a5a);-webkit-background-clip:text;background-clip:text;color:transparent}
.sub{text-align:center;color:#9aa8bd;margin:4px 0 18px;font-size:13px}
label{display:flex;align-items:center;gap:10px;margin:12px 0;color:#b9c4d4}
label input[type=text],#name{flex:1;background:#0d1118;border:1px solid #2e3a4e;border-radius:8px;padding:10px 12px;color:#fff;font:inherit}
input[type=range]{flex:1;accent-color:#ffd257}
output{width:3em;text-align:right;color:#ffd257}
.row{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}
.row button{flex:1;background:#0d1118;border:1px solid #2e3a4e;border-radius:8px;padding:9px 6px;min-width:70px}
.row button.on{border-color:#ffd257;background:#2a2615;color:#ffd257}
.row button.blue.on{border-color:#5aa0ff;background:#13233d;color:#8dbcff}
.row button.red.on{border-color:#ff5a5a;background:#3a1515;color:#ff9a9a}
.play{width:100%;margin-top:14px;padding:14px;border:0;border-radius:10px;background:linear-gradient(90deg,#ffb547,#ffd257);color:#1a1300;font-weight:900;font-size:20px;letter-spacing:.15em}
.play:active{transform:scale(.98)}
#status{min-height:1.4em;text-align:center;margin-top:10px;color:#ffb3b3;font-size:13px}
details{margin-top:10px;color:#9aa8bd;font-size:13px}
summary{cursor:pointer;color:#cfd8e6}
details p{margin-top:6px}

/* hud */
#hud{position:fixed;inset:0;pointer-events:none;z-index:5;text-shadow:0 1px 2px #000a}
#radar{position:absolute;left:12px;top:12px;width:180px;height:126px;border-radius:8px;background:#0008;border:1px solid #fff2}
#top{position:absolute;top:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px}
.tm{display:flex;flex-direction:column;align-items:center;min-width:72px;padding:4px 10px;border-radius:8px;background:#0009}
.tm b{font-size:26px;line-height:1}
.tm small{font-size:11px;color:#cfd8e6}
.t0 b{color:#6aaeff}.t1 b{color:#ff6b6b}
#timer{font-size:22px;font-weight:800;padding:6px 14px;background:#0009;border-radius:8px;font-variant-numeric:tabular-nums;min-width:84px;text-align:center}
#timer.warn{color:#ff6b6b}
#killfeed{position:absolute;right:12px;top:12px;display:flex;flex-direction:column;gap:4px;align-items:flex-end}
#killfeed div{background:#000a;padding:4px 10px;border-radius:6px;font-size:14px;white-space:nowrap}
#killfeed div.mine{border:1px solid #ffd257}
#killfeed .w{color:#cfd8e6;margin:0 6px;font-size:12px}
#killfeed .hs{color:#ffd257}
.c0{color:#7db8ff;font-weight:700}.c1{color:#ff8080;font-weight:700}
#notes{position:absolute;left:12px;bottom:110px;display:flex;flex-direction:column;gap:2px;font-size:13px;color:#cfd8e6}
.xc{position:absolute;left:50%;top:50%;width:0;height:0;--g:6px;--len:8px;--th:2px;--col:#7dff9a;--ol:1px;--a:1}
.xc i,.xc b{position:absolute;background:var(--col);opacity:var(--a);box-shadow:0 0 0 var(--ol) #000c}
.xc .l,.xc .r{width:var(--len);height:var(--th);top:calc(var(--th) / -2)}
.xc .u,.xc .d{width:var(--th);height:var(--len);left:calc(var(--th) / -2)}
.xc .l{right:var(--g)}.xc .r{left:var(--g)}.xc .u{bottom:var(--g)}.xc .d{top:var(--g)}
.xc b{width:var(--th);height:var(--th);left:calc(var(--th) / -2);top:calc(var(--th) / -2);display:none}
.xc.dot b{display:block}.xc.t .u{display:none}
#xprev{position:relative;height:90px;margin:10px 0;border-radius:8px;background:linear-gradient(180deg,#9cc6ea 0,#9cc6ea 45%,#d8c6a2 45%,#d8c6a2 75%,#8f9499 75%)}
#xcolors button{flex:0 0 30px;min-width:30px;height:30px;padding:0;border-radius:50%;border:2px solid #0006}
#xcolors button.on{border-color:#fff}
#xcolors input{width:34px;height:30px;border:0;background:none;padding:0}
.checks label{margin:2px 8px 2px 0;font-size:13px}
.code input{flex:1;background:#0d1118;border:1px solid #2e3a4e;border-radius:8px;padding:8px;color:#fff;font:12px monospace;min-width:0}
.code button{flex:0 0 auto!important;min-width:0!important}
#rotate{display:none;position:fixed;inset:0;z-index:30;background:#0b0f15f2;place-items:center;text-align:center;font-size:24px;line-height:1.6}
@media (orientation:portrait){body.touch.ingame #rotate{display:grid}}
#hitmark{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;opacity:0;transition:opacity .25s;background:
 linear-gradient(45deg,transparent 46%,#fff 46%,#fff 54%,transparent 54%),linear-gradient(-45deg,transparent 46%,#fff 46%,#fff 54%,transparent 54%);
 -webkit-mask:radial-gradient(circle,transparent 5px,#000 6px);mask:radial-gradient(circle,transparent 5px,#000 6px)}
#hitmark.show{opacity:1;transition:none}
#hitmark.kill{filter:drop-shadow(0 0 2px red) hue-rotate(0deg);background:
 linear-gradient(45deg,transparent 44%,#ff3b3b 44%,#ff3b3b 56%,transparent 56%),linear-gradient(-45deg,transparent 44%,#ff3b3b 44%,#ff3b3b 56%,transparent 56%)}
#dmgflash{position:absolute;inset:0;box-shadow:inset 0 0 140px 40px rgba(200,0,0,.0);transition:box-shadow .5s}
#dmgflash.on{box-shadow:inset 0 0 140px 40px rgba(220,0,0,.55);transition:none}
#dmgdir{position:absolute;left:50%;top:50%;width:220px;height:220px;margin:-110px 0 0 -110px;border-radius:50%;border-top:6px solid rgba(255,40,40,.85);opacity:0;transition:opacity .9s}
#dmgdir.on{opacity:1;transition:none}
#scope{position:absolute;inset:0;display:none;background:radial-gradient(circle at 50% 50%,transparent 0,transparent min(38vw,38vh),#000 calc(min(38vw,38vh) + 1px))}
#scope::before,#scope::after{content:"";position:absolute;background:#000}
#scope::before{left:0;right:0;top:50%;height:1px}
#scope::after{top:0;bottom:0;left:50%;width:1px}
#scope.on{display:block}
#center{position:absolute;left:0;right:0;top:26%;text-align:center;font-size:34px;font-weight:900;letter-spacing:.05em;opacity:0;transition:opacity .4s}
#center.on{opacity:1}
#center small{display:block;font-size:16px;font-weight:500;color:#cfd8e6;letter-spacing:0}
#spec{position:absolute;left:50%;bottom:120px;transform:translateX(-50%);background:#000a;padding:6px 14px;border-radius:8px;font-size:14px}
#bottom{position:absolute;left:0;right:0;bottom:14px;display:flex;justify-content:space-between;padding:0 18px;align-items:flex-end}
#hp{display:flex;align-items:center;gap:8px;background:#0009;padding:6px 16px;border-radius:10px}
#hp span{font-size:28px;font-weight:900;color:#7dff9a}
#hp b{font-size:34px;font-variant-numeric:tabular-nums}
#hp.low b,#hp.low span{color:#ff5a5a}
#wep{display:flex;align-items:baseline;gap:8px;background:#0009;padding:6px 16px;border-radius:10px}
#wep b{font-size:34px;font-variant-numeric:tabular-nums}
#wep small{color:#cfd8e6;margin-right:6px}
#wep span{color:#9aa8bd}
#slots{position:absolute;right:18px;bottom:76px;display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:13px}
#slots div{background:#0007;padding:2px 10px;border-radius:6px;color:#9aa8bd}
#slots div.on{color:#ffd257;background:#000a}
#buy{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#131924f2;border:1px solid #2e3a4e;border-radius:12px;padding:18px;pointer-events:auto;min-width:300px}
#buy h3{margin-bottom:10px}
#buy h3 small{color:#9aa8bd;font-weight:400;font-size:12px}
#buylist button{display:flex;justify-content:space-between;width:100%;margin:6px 0;padding:10px 14px;background:#0d1118;border:1px solid #2e3a4e;border-radius:8px;gap:20px}
#buylist button.on{border-color:#ffd257;color:#ffd257}
#buylist small{color:#9aa8bd}
#board{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;gap:14px;background:#0b0f15e8;border-radius:12px;padding:16px;flex-wrap:wrap;justify-content:center;max-width:96vw}
.bt{min-width:280px}
.bt h3{display:flex;justify-content:space-between;padding:4px 8px;border-bottom:2px solid}
.bt.t0 h3{border-color:#5aa0ff;color:#8dbcff}.bt.t1 h3{border-color:#ff5a5a;color:#ff9a9a}
.bt table{width:100%;border-collapse:collapse;font-size:14px;margin-top:4px}
.bt td{padding:4px 8px}
.bt td.n{width:100%}
.bt tr.dead{opacity:.45}
.bt tr.me{background:#ffd25722}
.bt td.k,.bt td.d{text-align:right;font-variant-numeric:tabular-nums}
#ping{width:100%;text-align:center;color:#9aa8bd;font-size:12px}

/* dokunmatik */
#touch{position:fixed;inset:0;z-index:6;pointer-events:none}
#touch>*{pointer-events:auto}
#stick{position:absolute;left:24px;bottom:24px;width:140px;height:140px;border-radius:50%;background:#ffffff14;border:2px solid #ffffff30}
#stick i{position:absolute;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:50%;background:#ffffff40}
.tb{position:absolute;border:2px solid #ffffff40;background:#00000050;color:#fff;border-radius:50%;width:64px;height:64px;font-size:11px;font-weight:700}
.tb.big{width:92px;height:92px;font-size:15px;background:#ff3b3b55;border-color:#ff6b6b}
.tb.sm{border-radius:8px;width:auto;height:auto;padding:6px 10px;top:62px}
.tb:active,.tb.down{background:#ffffff44}
#tFire{right:30px;bottom:110px}
#tJump{right:140px;bottom:30px}
#tCrouch{right:30px;bottom:24px}
#tReload{right:140px;bottom:110px}
#tSwitch{right:220px;bottom:60px}
#tScope{right:130px;bottom:190px}
#tBoard{right:12px}#tBuy{right:80px}#tMenu{right:180px}
body.touch #radar{width:130px;height:91px}
body.touch #bottom{bottom:auto;top:58px;padding:0 12px;justify-content:center;gap:10px;transform:scale(.7);transform-origin:top center}
body.touch #slots{display:none}
body.touch #killfeed{top:100px}
body.touch #notes{bottom:auto;top:110px}
@media (max-width:600px){h1{font-size:34px}}
@media (orientation:landscape) and (max-height:500px){
 .card{padding:14px}h1{font-size:28px}.sub{margin-bottom:8px}label{margin:6px 0}
 .tb{width:56px;height:56px}.tb.big{width:84px;height:84px}
 #stick{width:120px;height:120px;left:18px;bottom:18px}
 body.touch #bottom{top:44px}body.touch #killfeed{top:44px;font-size:12px}
 #tFire{right:22px;bottom:92px}#tJump{right:122px;bottom:22px}#tCrouch{right:22px;bottom:16px}#tReload{right:126px;bottom:100px}#tSwitch{right:196px;bottom:52px}#tScope{right:118px;bottom:170px}
}
/* dokunmatik HUD yerleşimi */
body.touch .tb.sm{top:auto;left:12px;right:auto;font-size:11px;padding:5px 9px}
body.touch #tMenu,body.touch #tBuy,body.touch #tBoard{right:auto;width:auto;top:112px}body.touch #tMenu{left:12px}body.touch #tBuy{left:70px}body.touch #tBoard{left:156px}
body.touch #killfeed{top:8px;right:8px;gap:2px}
body.touch #killfeed div{font-size:11px;padding:2px 7px}
body.touch #killfeed div:nth-child(n+4){display:none}
body.touch #bottom{top:auto!important;bottom:4px;left:50%;right:auto;width:auto;transform:translateX(-50%) scale(.62);transform-origin:bottom center;gap:14px;padding:0}
body.touch #notes{top:146px!important;bottom:auto;font-size:11px}
body.touch #spec{bottom:auto;top:96px;font-size:12px}
@media (orientation:landscape) and (max-height:500px){body.touch #bottom{top:auto!important}body.touch #killfeed{top:8px}}
