* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0a1117; font-family: 'Segoe UI', Roboto, Arial, sans-serif; color: #e8eef5; }
canvas#gc { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }

/* ---------- ОВЕРЛЕИ ---------- */
.ov { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(1200px 700px at 30% 20%, #14222e 0%, #0a1117 60%, #070b10 100%); text-align: center; transition: opacity .25s; }
.ov.hide { opacity: 0; pointer-events: none; }
.ov h1 { font-size: clamp(40px, 9vw, 92px); letter-spacing: 6px; font-weight: 900; color: #ffd75e; text-shadow: 0 0 34px rgba(255,215,94,.35), 0 4px 0 #5a3d00; }
.ov .sub { margin: 8px 0 26px; color: #9fb4c9; font-size: clamp(13px, 2.4vw, 18px); letter-spacing: 1px; }
.ov input { margin: 10px 0 18px; padding: 13px 18px; width: min(320px, 78vw); font-size: 18px; text-align: center; border-radius: 12px; border: 2px solid #ffb347; background: rgba(0,0,0,.55); color: #fff; outline: none; }
.ov input:focus { border-color: #ffd75e; box-shadow: 0 0 18px rgba(255,215,94,.3); }
button.btn { cursor: pointer; border: none; border-radius: 14px; padding: 16px 46px; font-size: 20px; font-weight: 800; letter-spacing: 2px; background: linear-gradient(180deg, #ffd75e, #ff9d2e); color: #2a1a00; box-shadow: 0 8px 0 #9a5a00, 0 14px 34px rgba(255,157,46,.35); transition: transform .08s, box-shadow .08s; }
button.btn:hover { transform: translateY(2px); box-shadow: 0 6px 0 #9a5a00, 0 12px 30px rgba(255,157,46,.4); }
button.btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #9a5a00; }
button.ghost { background: none; color: #b9c9da; border: 1px solid #3a4a5c; box-shadow: none; padding: 12px 22px; font-size: 14px; margin-top: 12px; }
button.ghost:hover { border-color: #6a80a0; color: #fff; }
.ov .hint { margin-top: 18px; color: #6b7c90; font-size: 13px; line-height: 1.7; }
.ov .pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.stat { color: #ffb347; font-weight: 700; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; user-select: none; }
#hud .cross { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: rgba(255,255,255,.85); box-shadow: 0 0 6px rgba(0,0,0,.8); border-radius: 50%; }
#hud .cframe { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; }
#topbar { position: absolute; top: 0; left: 0; right: 0; padding: 10px 14px; display: flex; justify-content: space-between; align-items: flex-start; }
#tm { text-align: center; }
#tm .t { font-size: 30px; font-weight: 900; color: #ffd75e; }
#tm .k { font-size: 12px; color: #9fb4c9; letter-spacing: 1px; }
#ls { text-align: right; }
#ls .row { font-size: 11px; color: #c3d3e4; text-shadow: 0 1px 3px #000; }
#ls .row b { color: #ffd75e; }
#kf { position: absolute; top: 74px; left: 14px; width: 300px; font-size: 13px; }
#kf .kf { background: rgba(10,17,23,.55); border-left: 3px solid #ffb347; padding: 5px 9px; margin-bottom: 5px; border-radius: 4px; }
#ann { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); font-size: clamp(22px,4.5vw,40px); font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.7); letter-spacing: 1px; opacity: 0; transition: opacity .3s; }
#hpb { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(560px, 86vw); }
#hpb .bar { height: 14px; border-radius: 8px; background: rgba(255,255,255,.14); overflow: hidden; margin-bottom: 6px; position: relative; }
#hpb .fill { height: 100%; border-radius: 8px; transition: width .15s, background .2s; }
#hpb .hp { background: linear-gradient(90deg,#ff5f5f,#ffd75e); box-shadow: 0 0 12px rgba(255,95,95,.5); }
#hpb .am { background: linear-gradient(90deg,#4ac8ff,#7ddfff); box-shadow: 0 0 10px rgba(74,200,255,.4); }
#hpb .lbl { display: flex; justify-content: space-between; font-size: 12px; color: #c9d8e8; padding: 0 2px; }
#hl { position: absolute; right: 14px; bottom: 16px; text-align: right; }
#hl .wn { font-size: 22px; font-weight: 800; color: #ffd75e; text-shadow: 0 2px 6px #000; }
#hl .am { font-size: 15px; color: #dfeaf4; }
#hl .slots { font-size: 11px; color: #8ba0b6; margin-top: 4px; }
#hl .slots span { display: inline-block; padding: 4px 7px; margin: 3px 2px 0 0; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: #8ba0b6; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
#hl .slots span.act { background: rgba(70,230,255,.22); border-color: rgba(70,230,255,.75); color: #bdf3ff; font-weight: 700; }
@media (pointer: coarse) {
  #hl { bottom: 178px; right: 12px; }
  #hl .slots span { font-size: 12px; padding: 7px 8px; margin-top: 4px; }
  #hl .wn { font-size: 18px; }
}
#ls, #kf, #tm { text-shadow: 0 1px 4px rgba(0,0,0,.6); }
#mini { position: absolute; left: 14px; bottom: 14px; width: 148px; height: 148px; border-radius: 10px; background: rgba(10,17,23,.55); border: 1px solid #2c3c4e; }
#ffx { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 55%, rgba(20,20,40,.45) 100%); }
#dmgfx { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(255,30,30,.55) 100%); opacity: 0; pointer-events: none; }
#chatbox { position: absolute; left: 14px; bottom: 180px; width: min(380px, 80vw); max-height: 240px; overflow: hidden; font-size: 13px; display: flex; flex-direction: column; }
#chatbox .m { padding: 3px 8px; border-radius: 4px; background: rgba(10,17,23,.45); margin-bottom: 3px; word-wrap: break-word; }
#chatbox .m b { color: #ffd75e; }
#chatin { position: absolute; left: 14px; bottom: 180px; width: min(380px, 80vw); padding: 8px 10px; font-size: 14px; border-radius: 8px; border: 1px solid #3a4a5c; background: rgba(0,0,0,.6); color: #fff; display: none; }
#ov_row { position: absolute; inset: 0; z-index: 25; display: none; align-items: center; justify-content: center; background: rgba(5,8,12,.72); }
#ov_row .box { background: rgba(14,22,30,.92); border: 1px solid #3a4a5c; border-radius: 16px; padding: 26px 40px; min-width: 300px; text-align: center; }
#ov_row h2 { color: #ffd75e; font-size: 26px; margin-bottom: 14px; }
#ov_row table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 18px; }
#ov_row td { padding: 6px 12px; border-bottom: 1px solid #2a3a4c; }
#ov_row td.r { text-align: right; color: #ffd75e; font-weight: 700; }
#ginfo { position: absolute; top: 74px; right: 14px; font-size: 12px; color: #7e93a9; text-align: right; text-shadow: 0 1px 3px #000; line-height: 1.5; }
@media (max-width: 760px) { #mini { width: 108px; height: 108px; } #hpb { bottom: 12px; } }

/* ---------- МОБИЛЬНОЕ УПРАВЛЕНИЕ ---------- */
#touchui { position: fixed; inset: 0; z-index: 15; display: none; pointer-events: none; user-select: none; -webkit-user-select: none; touch-action: none; }
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  #touchui { display: block; }
}
#tjoybase { position: absolute; left: 110px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%; border: 3px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); opacity: 0; }
#tjoybase.on { opacity: 1; }
#tjoyknob { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd75e, #ff9d2e); box-shadow: 0 0 18px rgba(255,215,94,.55); }
#tfire { position: absolute; right: 30px; bottom: 38px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,90,60,.95), rgba(200,30,20,.95)); border: 3px solid rgba(255,255,255,.5); color: #fff; font-weight: 900; font-size: 17px; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 4px 18px rgba(255,60,40,.5); pointer-events: auto; touch-action: none; }
#tfire:active { transform: scale(.93); }
#tjump { position: absolute; right: 175px; bottom: 60px; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(90,200,255,.9), rgba(30,120,200,.9)); border: 3px solid rgba(255,255,255,.45); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 4px 14px rgba(60,160,255,.4); pointer-events: auto; touch-action: none; }
#tjump:active { transform: scale(.93); }
#touchui.hidejoy #tjoybase, #touchui.hidejoy #tjoyknob { display: none; }

/* ---------- НАСТРОЙКИ ---------- */
#settings { justify-content: flex-start; padding: 26px 16px; overflow-y: auto; gap: 4px; }
#settings h2.sh { font-size: clamp(22px,4vw,34px); color: #ffd75e; letter-spacing: 2px; margin-bottom: 8px; }
.setwrap { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; max-width: 1020px; width: 100%; }
.setcol { display: flex; flex-direction: column; gap: 9px; min-width: 280px; flex: 1 1 280px; background: rgba(10,17,23,.55); border: 1px solid #2c3c4e; border-radius: 12px; padding: 14px 16px; text-align: left; }
.sect { color: #7ddfff; font-size: 12px; letter-spacing: 2px; font-weight: 800; margin-bottom: 4px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: #c9d8e8; }
.setrow input[type=range] { flex: 1; accent-color: #ffb347; min-width: 90px; }
.setrow b { color: #ffd75e; min-width: 42px; text-align: right; font-size: 13px; }
.setrow.chk { justify-content: flex-start; gap: 10px; cursor: pointer; }
.setrow.chk input { width: 18px; height: 18px; accent-color: #ffb347; }
.setrow select { background: rgba(0,0,0,.5); color: #fff; border: 1px solid #3a4a5c; border-radius: 8px; padding: 5px 8px; font-size: 14px; }
.setrow input[type=color] { width: 46px; height: 30px; background: none; border: 1px solid #3a4a5c; border-radius: 6px; }
.setbtns { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
#setg { position: absolute; top: 8px; left: 14px; z-index: 12; pointer-events: auto; width: 36px; height: 36px; border-radius: 9px; background: rgba(10,17,23,.6); border: 1px solid #3a4a5c; color: #c9d8e8; font-size: 19px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
#setg:active { transform: scale(.94); }
@media (pointer: coarse) { #setg { top: 8px; left: auto; right: 12px; } }
#settings input, #settings select { margin: 0; padding: 0; width: auto; font-size: 14px; text-align: left; border-radius: 6px; border: 1px solid #3a4a5c; background: rgba(0,0,0,.5); color: #fff; box-shadow: none; }
#settings input[type=range] { border: none; background: none; padding: 0; }
#settings input[type=checkbox] { width: 18px; height: 18px; accent-color: #ffb347; }
#settings input[type=color] { width: 46px; height: 30px; padding: 0; border: 1px solid #3a4a5c; }
#settings select { padding: 5px 8px; }

/* ---------- ПРИЦЕЛ СНАЙПЕРКИ ---------- */
#scope { position: absolute; inset: 0; display: none; pointer-events: none; background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,.97) 38%); }
#scope.on { display: block; }
#scope::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; margin: -1px 0 0 -1px; background: #0f0; box-shadow: 0 0 4px #0f0; }
#scope::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: rgba(0,0,0,.6); }

/* ---------- КОМАНДНЫЙ СЧЁТ ---------- */
#tm .ts { font-size: 15px; font-weight: 800; letter-spacing: 1px; margin-top: 1px; }
#tm .ts .r { color: #ff5d5d; }
#tm .ts .b { color: #5dc8ff; }

/* ---------- СТАТИСТИКА В МЕНЮ ---------- */
#pstats { margin-top: 14px; color: #9fb4c9; font-size: 13px; line-height: 1.7; }
#pstats b { color: #ffd75e; }

/* ---------- ОБУЧЕНИЕ ---------- */
#tut { z-index: 40; }
.tutbox { width: min(520px, 90vw); background: rgba(14,22,30,.95); border: 1px solid #3a4a5c; border-radius: 16px; padding: 24px 26px; text-align: left; }
.tutbox h2 { color: #ffd75e; letter-spacing: 2px; margin-bottom: 14px; }
.tutstep { display: none; min-height: 96px; }
.tutstep.on { display: block; }
.tutstep b { color: #7ddfff; font-size: 18px; }
.tutstep p { margin-top: 8px; color: #c9d8e8; font-size: 15px; line-height: 1.6; }
.tutnav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.tutnav #tut_dots { color: #6b7c90; font-size: 13px; letter-spacing: 3px; }
.tutnav button { margin-top: 0; }
/* ---------- НОВОЕ: табл. Tab, убийца, хитмаркер, рывок ---------- */
#tabt { display: none; position: absolute; left: 50%; top: 13%; transform: translateX(-50%); min-width: 430px; max-width: 92vw; background: rgba(9,14,20,.94); border: 1px solid #2b4257; border-radius: 10px; padding: 14px 18px; z-index: 60; color: #cfe6f5; font: 13px/1.55 inherit; }
#tabt .tt-h { font-weight: 700; color: #ffd75e; margin-bottom: 8px; letter-spacing: .06em; }
#tabt table { width: 100%; border-collapse: collapse; }
#tabt th { color: #6b7c90; font-size: 11px; text-align: left; padding: 3px 8px; }
#tabt td { padding: 4px 8px; border-top: 1px solid #1b2836; }
#tabt tr.me td { background: rgba(255,215,94,.08); color: #fff; font-weight: 700; }
#tabt .tt-s { margin-top: 9px; color: #7e93a9; font-size: 11px; border-top: 1px dashed #2b4257; padding-top: 7px; }
#kbanner { position: absolute; left: 50%; top: 26%; transform: translateX(-50%) scale(.96); background: rgba(30,6,6,.9); border: 1px solid #a33; color: #ffd0d0; padding: 10px 22px; border-radius: 10px; font: 700 17px/1.4 inherit; opacity: 0; transition: .18s; z-index: 55; text-align: center; pointer-events: none; }
#kbanner.on { opacity: 1; transform: translateX(-50%) scale(1); }
#kbanner b { color: #fff; }
#kbanner .kw { color: #ffb04a; font-weight: 600; font-size: 14px; margin-left: 8px; }
#kbanner .kd { color: #9fb4c8; font-weight: 600; font-size: 13px; margin-left: 6px; }
#kbanner i { display: block; color: #e08585; font-style: normal; font-weight: 400; font-size: 12px; margin-top: 4px; }
#hm { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: 0; pointer-events: none; z-index: 30; }
#hm::before, #hm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 11px; background: #fff; box-shadow: 0 0 4px rgba(0,0,0,.9); }
#hm::before { transform: translate(-50%,-50%) rotate(45deg); }
#hm::after { transform: translate(-50%,-50%) rotate(-45deg); }
#hm.kill::before, #hm.kill::after { background: #ff5a5a; box-shadow: 0 0 7px #f00; }
#dashi { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); color: #7dff8a; font: 700 11px/1 inherit; letter-spacing: .08em; opacity: .85; z-index: 30; text-shadow: 0 1px 3px #000; }
#dashi.cd { color: #5b6b7c; }
#or_mvp { color: #ffd75e; font-size: 15px; margin: -6px 0 12px; }
#ov_row table th { color: #6b7c90; font-size: 11px; text-align: left; padding: 4px 12px; }
#tdash { position: absolute; right: 175px; bottom: 165px; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,190,70,.92), rgba(220,120,20,.92)); border: 3px solid rgba(255,255,255,.45); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 4px 14px rgba(255,150,40,.4); pointer-events: auto; touch-action: none; }
#tdash:active { transform: scale(.93); }
