* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; color: #e8e8e8; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; user-select: none; }
#app canvas { display: block; position: fixed; left: 0; top: 0; width: 100vw !important; height: 100vh !important; }
#hud, #app, #markers { overflow: hidden; }
#hud { contain: strict; }
html, body { position: fixed; inset: 0; }
.hidden { display: none !important; }
:root { --acc: #d4f24a; --acc2: #ffb400; --ally: #4fb4ff; --enemy: #ff4a3d; --panel: rgba(12, 14, 16, 0.78); }

/* 加载 */
#loading { position: fixed; inset: 0; background: radial-gradient(ellipse at center, #1b1f22 0%, #050606 70%); display: flex; align-items: center; justify-content: center; z-index: 100; }
.load-inner { width: 520px; text-align: center; }
.logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.logo .l1 { font-size: 64px; font-weight: 900; letter-spacing: 18px; color: #fff; text-shadow: 0 0 30px rgba(212, 242, 74, .25); }
.logo .l2 { font-size: 15px; letter-spacing: 12px; color: var(--acc); margin-top: 6px; }
.load-bar { height: 3px; background: #222; overflow: hidden; }
#loadFill { height: 100%; width: 0; background: var(--acc); transition: width .2s; }
#loadText { margin-top: 14px; font-size: 13px; color: #999; letter-spacing: 2px; }
.load-tip { margin-top: 60px; font-size: 13px; color: #666; }

/* 菜单 */
#menu { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#menu > .screen { position: absolute; inset: 0; pointer-events: auto; display: flex; }
.screen.dim { background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.1) 100%); }
.screen.solid { background: rgba(6, 8, 9, .9); backdrop-filter: blur(6px); }
.menu-left { padding: 70px 0 0 80px; width: 520px; display: flex; flex-direction: column; }
.menu-title { font-size: 46px; font-weight: 900; letter-spacing: 10px; color: #fff; }
.menu-sub { font-size: 13px; color: var(--acc); letter-spacing: 8px; margin: 4px 0 50px; }
.mbtn { display: flex; align-items: center; gap: 16px; width: 380px; padding: 16px 22px; margin-bottom: 8px; background: rgba(255,255,255,.04); border-left: 3px solid transparent; cursor: pointer; transition: all .15s; }
.mbtn:hover { background: rgba(255,255,255,.12); border-left-color: var(--acc); padding-left: 30px; }
.mbtn .mt { font-size: 22px; font-weight: 700; letter-spacing: 4px; }
.mbtn .md { font-size: 12px; color: #9a9a9a; margin-top: 2px; }
.mbtn .ico { font-size: 24px; width: 30px; text-align: center; opacity: .8; }
.menu-foot { margin-top: auto; padding-bottom: 30px; font-size: 12px; color: #666; line-height: 1.8; }
.player-card { position: absolute; top: 30px; right: 40px; display: flex; align-items: center; gap: 14px; background: var(--panel); padding: 10px 18px; border-top: 2px solid var(--acc); }
.player-card .lvl { font-size: 28px; font-weight: 900; color: var(--acc); }
.player-card .xpbar { width: 160px; height: 4px; background: #333; margin-top: 4px; }
.player-card .xpbar div { height: 100%; background: var(--acc); }
.btn { background: var(--acc); color: #111; border: none; padding: 14px 34px; font-size: 16px; font-weight: 800; letter-spacing: 3px; cursor: pointer; font-family: inherit; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: rgba(255,255,255,.08); color: #ddd; border: 1px solid rgba(255,255,255,.2); }
.btn.small { padding: 8px 18px; font-size: 13px; }
.back { position: absolute; left: 40px; bottom: 30px; }
.hdr { font-size: 30px; font-weight: 900; letter-spacing: 6px; }
.hdr small { display: block; font-size: 12px; color: var(--acc); letter-spacing: 5px; font-weight: 400; margin-top: 4px; }
.panel { background: var(--panel); border: 1px solid rgba(255,255,255,.06); padding: 18px; }

/* 战役 */
.brief { margin: auto 0 auto 80px; width: 640px; }
.brief .op { font-size: 13px; color: var(--acc); letter-spacing: 6px; }
.brief h1 { font-size: 54px; letter-spacing: 8px; margin: 6px 0 16px; }
.brief p { color: #bbb; line-height: 1.9; font-size: 15px; margin-bottom: 16px; }
.brief .meta { display: flex; gap: 30px; margin: 20px 0; font-size: 13px; color: #999; }
.brief .meta b { display: block; color: #fff; font-size: 16px; margin-top: 4px; }
.diffs { display: flex; gap: 10px; margin: 20px 0 30px; }
.diff { flex: 1; padding: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.diff.sel { border-color: var(--acc); background: rgba(212,242,74,.1); }
.diff b { display: block; font-size: 16px; margin-bottom: 4px; }
.diff span { font-size: 12px; color: #999; }

/* 多人大厅 */
.lobby { padding: 50px 60px; width: 100%; display: flex; flex-direction: column; }
.lobby-body { display: flex; gap: 30px; margin-top: 26px; flex: 1; min-height: 0; }
.lobby-col { display: flex; flex-direction: column; gap: 12px; }
.sect-t { font-size: 12px; color: #888; letter-spacing: 4px; margin: 8px 0 4px; }
.modes { display: flex; gap: 10px; }
.mode { width: 200px; padding: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.mode.sel { border-color: var(--acc); background: rgba(212,242,74,.1); }
.mode b { font-size: 18px; display: block; margin-bottom: 6px; }
.mode span { font-size: 12px; color: #999; line-height: 1.6; }
.maps { display: grid; grid-template-columns: repeat(2, 300px); gap: 12px; }
.mapc { height: 150px; position: relative; cursor: pointer; border: 2px solid transparent; overflow: hidden; }
.mapc.sel { border-color: var(--acc); }
.mapc .mapart { position: absolute; inset: 0; }
.mapc .mapinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.mapc .mapinfo b { font-size: 20px; letter-spacing: 3px; }
.mapc .mapinfo span { display: block; font-size: 11px; color: #ccc; }
.opts { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; align-items: center; font-size: 14px; }
.seg { display: flex; }
.seg div { padding: 7px 14px; background: rgba(255,255,255,.06); cursor: pointer; font-size: 13px; border: 1px solid rgba(255,255,255,.08); }
.seg div.sel { background: var(--acc); color: #111; font-weight: 700; }
.lobby-foot { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

/* 装备 */
.loadout { padding: 50px 60px; width: 100%; display: flex; flex-direction: column; }
.classes { display: flex; flex-direction: column; gap: 6px; width: 240px; }
.cls { padding: 14px 18px; background: rgba(255,255,255,.05); cursor: pointer; border-left: 3px solid transparent; font-weight: 700; letter-spacing: 2px; }
.cls.sel { background: rgba(212,242,74,.12); border-left-color: var(--acc); }
.cls small { display: block; font-weight: 400; color: #888; font-size: 11px; margin-top: 3px; letter-spacing: 0; }
.cls-detail { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 12px; align-content: start; overflow-y: auto; }
.slotc { height: auto; }
.slotc { background: rgba(255,255,255,.05); padding: 14px 18px; cursor: pointer; border: 1px solid rgba(255,255,255,.07); transition: border-color .15s; min-height: 86px; }
.slotc:hover { border-color: var(--acc); }
.slotc .sl { font-size: 11px; color: #888; letter-spacing: 3px; }
.slotc .sv { font-size: 20px; font-weight: 800; margin-top: 6px; }
.slotc .ss { font-size: 12px; color: #aaa; margin-top: 4px; }
.slotc.wide { grid-column: span 2; }
.perkrow { display: flex; gap: 8px; margin-top: 8px; }
.perkpill { padding: 6px 10px; background: rgba(212,242,74,.12); border: 1px solid rgba(212,242,74,.35); font-size: 13px; }
.picker { position: absolute; inset: 0; background: rgba(4,5,6,.94); z-index: 5; padding: 50px 60px; display: flex; flex-direction: column; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 20px; overflow-y: auto; }
.pick { background: rgba(255,255,255,.05); padding: 16px; cursor: pointer; border: 1px solid rgba(255,255,255,.08); }
.pick:hover { border-color: var(--acc); }
.pick.sel { border-color: var(--acc); background: rgba(212,242,74,.1); }
.pick b { font-size: 17px; display: block; }
.pick span { font-size: 12px; color: #999; display: block; margin-top: 6px; line-height: 1.6; }
.pick .cat { font-size: 11px; color: var(--acc); letter-spacing: 2px; }
.perk-cols { display: flex; gap: 20px; margin-top: 16px; }
.perk-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }

/* 枪匠 */
.gunsmith { width: 100%; display: flex; }
.gs-left { width: 300px; padding: 40px 0 40px 40px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.gs-slot { padding: 11px 16px; background: rgba(10,12,14,.75); cursor: pointer; border-left: 3px solid transparent; }
.gs-slot.sel { border-left-color: var(--acc); background: rgba(212,242,74,.14); }
.gs-slot.dis { opacity: .3; pointer-events: none; }
.gs-slot .k { font-size: 11px; color: #888; letter-spacing: 3px; }
.gs-slot .v { font-size: 15px; font-weight: 700; margin-top: 2px; }
.gs-slot .v.none { color: #666; font-weight: 400; }
.gs-right { position: absolute; right: 40px; top: 40px; width: 360px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100% - 300px); overflow-y: auto; }
.gs-att { padding: 12px 16px; background: rgba(10,12,14,.78); cursor: pointer; border: 1px solid transparent; }
.gs-att:hover { border-color: rgba(255,255,255,.3); }
.gs-att.sel { border-color: var(--acc); }
.gs-att b { font-size: 15px; }
.gs-att .fx { font-size: 12px; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.fx .pro { color: #8fe36a; } .fx .con { color: #ff6b5b; } .fx .neu { color: #9cc9ff; }
.gs-title { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); text-align: center; }
.gs-title .n { font-size: 40px; font-weight: 900; letter-spacing: 6px; }
.gs-title .c { font-size: 12px; color: var(--acc); letter-spacing: 6px; }
.gs-title .cnt { font-size: 13px; color: #aaa; margin-top: 6px; }
.gs-stats { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 640px; background: rgba(10,12,14,.8); padding: 16px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; }
.stat { font-size: 12px; }
.stat .bar { height: 5px; background: #2a2a2a; margin-top: 4px; position: relative; }
.stat .bar .b0 { position: absolute; left: 0; top: 0; bottom: 0; background: #ddd; }
.stat .bar .bd { position: absolute; top: 0; bottom: 0; }
.gs-camos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.camo { width: 44px; height: 44px; cursor: pointer; border: 2px solid transparent; }
.camo.sel { border-color: var(--acc); }
.gs-foot { position: absolute; right: 40px; bottom: 30px; display: flex; gap: 10px; }

/* 设置 */
.settings { margin: auto; width: 620px; }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; }
.set-row input[type=range] { width: 260px; accent-color: #d4f24a; }
.set-row .val { width: 50px; text-align: right; color: var(--acc); font-weight: 700; }
.keys { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; font-size: 13px; color: #aaa; }
.keys b { color: #fff; display: inline-block; min-width: 76px; }

/* 暂停 */
.pause { margin: auto; text-align: center; }
.pause .mbtn { margin: 0 auto 8px; }

/* 结算 */
.results { margin: auto; width: 900px; text-align: center; }
.results .big { font-size: 80px; font-weight: 900; letter-spacing: 16px; }
.results .big.win { color: var(--acc); }
.results .big.lose { color: var(--enemy); }
.res-stats { display: flex; justify-content: center; gap: 40px; margin: 30px 0; }
.res-stats div { font-size: 13px; color: #999; }
.res-stats b { display: block; font-size: 34px; color: #fff; }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#vignette { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(140, 0, 0, .55) 80%, rgba(90,0,0,.9) 100%); }
#flashOverlay { position: absolute; inset: 0; background: #fff; opacity: 0; }
#fade { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 1s; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#crosshair i { position: absolute; background: rgba(255,255,255,.9); box-shadow: 0 0 2px #000; }
#crosshair .ct, #crosshair .cb { width: 2px; height: 9px; left: -1px; }
#crosshair .cl, #crosshair .cr { width: 9px; height: 2px; top: -1px; }
#hitmarker { position: absolute; left: 50%; top: 50%; opacity: 0; }
#hitmarker i { position: absolute; width: 2px; height: 10px; background: #fff; box-shadow: 0 0 2px #000; }
#hitmarker i:nth-child(1) { transform: translate(-8px,-14px) rotate(-45deg); }
#hitmarker i:nth-child(2) { transform: translate(6px,-14px) rotate(45deg); }
#hitmarker i:nth-child(3) { transform: translate(-8px,4px) rotate(45deg); }
#hitmarker i:nth-child(4) { transform: translate(6px,4px) rotate(-45deg); }
#hitmarker.kill i { background: #ff3b30; }
#scope { position: absolute; inset: 0; }
.scope-hole { position: absolute; left: 50%; top: 50%; width: 88vh; height: 88vh; transform: translate(-50%,-50%); border-radius: 50%; box-shadow: 0 0 0 200vmax #000, inset 0 0 60px 30px rgba(0,0,0,.9); }
.scope-h { position: absolute; left: calc(50% - 44vh); width: 88vh; top: 50%; height: 1px; background: #000; }
.scope-v { position: absolute; top: 6vh; height: 88vh; left: 50%; width: 1px; background: #000; }
.scope-dot { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: #f22; border-radius: 50%; }
#scope.acog .scope-hole { width: 70vh; height: 70vh; box-shadow: 0 0 0 200vmax #060606, inset 0 0 50px 25px rgba(0,0,0,.95); }
#scope.acog .scope-h, #scope.acog .scope-v { display: none; }
#scope.acog .scope-dot { width: 0; height: 0; background: none; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid #ff4020; margin: 0 -7px; border-radius: 0; filter: drop-shadow(0 0 3px #f40); }
#scope.thermal .scope-hole { width: 72vh; height: 72vh; }
#scope.thermal .scope-h, #scope.thermal .scope-v { background: rgba(255,255,255,.6); }
#nvgFrame { position: absolute; inset: 0; box-shadow: inset 0 0 20vh 8vh rgba(0,0,0,.95); border-radius: 30%; }
#dmgDirs { position: absolute; left: 50%; top: 50%; }
.dmgdir { position: absolute; width: 160px; height: 160px; left: -80px; top: -80px; }
.dmgdir::before { content: ''; position: absolute; left: 50%; top: -90px; width: 90px; height: 40px; margin-left: -45px; background: radial-gradient(ellipse at bottom, rgba(255,40,30,.9), transparent 70%); border-radius: 50% 50% 0 0; }
#markers { position: absolute; inset: 0; }
.marker { position: absolute; transform: translate(-50%, -100%); text-align: center; font-size: 12px; font-weight: 700; text-shadow: 0 0 3px #000; white-space: nowrap; }
.marker .dia { width: 22px; height: 22px; margin: 0 auto 2px; border: 2px solid var(--acc2); transform: rotate(45deg); display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); }
.marker .dia span { transform: rotate(-45deg); font-size: 12px; }
.marker.flag .dia { border-radius: 50%; transform: none; width: 28px; height: 28px; }
.marker.flag .dia span { transform: none; font-size: 14px; }
.marker.ally .dia { border-color: var(--ally); color: var(--ally); }
.marker.enemy .dia { border-color: var(--enemy); color: var(--enemy); }
.marker.neutral .dia { border-color: #fff; }
#compass { position: absolute; top: 18px; left: 50%; width: 460px; margin-left: -230px; height: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
#compassStrip { position: absolute; top: 0; height: 26px; white-space: nowrap; font-size: 12px; font-weight: 700; }
#compassStrip span { position: absolute; top: 4px; transform: translateX(-50%); color: #ddd; text-shadow: 0 0 3px #000; }
#compassStrip span.minor { color: #888; font-size: 10px; top: 6px; }
.compass-tick { position: absolute; left: 50%; bottom: 0; width: 2px; height: 6px; background: var(--acc); }
#minimapWrap { position: absolute; left: 24px; top: 24px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.4); }
#minimap { width: 220px; height: 220px; display: block; }
#mmLabel { position: absolute; left: 0; bottom: -20px; font-size: 11px; color: #ccc; letter-spacing: 2px; }
#scorebar { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-weight: 800; }
.sb-team { min-width: 90px; padding: 5px 12px; font-size: 20px; text-align: center; }
.sb-team.a { background: rgba(79,180,255,.25); border-bottom: 3px solid var(--ally); }
.sb-team.b { background: rgba(255,74,61,.25); border-bottom: 3px solid var(--enemy); }
.sb-time { font-size: 16px; background: rgba(0,0,0,.5); padding: 5px 12px; }
.sb-flags { display: flex; gap: 6px; }
.sb-flag { width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; background: rgba(0,0,0,.4); position: relative; overflow: hidden; }
.sb-flag.A { border-color: var(--ally); color: var(--ally); }
.sb-flag.B { border-color: var(--enemy); color: var(--enemy); }
#killfeed { position: absolute; right: 24px; top: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.kf { background: rgba(0,0,0,.55); padding: 5px 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; animation: kfIn .2s; }
.kf .w { color: #aaa; font-size: 11px; border: 1px solid #555; padding: 0 5px; }
.kf .A { color: var(--ally); } .kf .B { color: var(--enemy); } .kf .me { color: var(--acc); }
@keyframes kfIn { from { transform: translateX(30px); opacity: 0; } }
#objective { position: absolute; left: 24px; top: 270px; max-width: 360px; }
.obj-t { font-size: 11px; letter-spacing: 4px; color: var(--acc2); }
.obj-d { font-size: 16px; font-weight: 700; margin-top: 4px; text-shadow: 0 0 4px #000; }
.obj-s { font-size: 13px; color: #ccc; margin-top: 2px; }
#ammoBox { position: absolute; right: 40px; bottom: 36px; text-align: right; }
#weaponName { font-size: 14px; letter-spacing: 3px; color: #ddd; text-shadow: 0 0 3px #000; }
.ammo-row { font-weight: 800; text-shadow: 0 0 4px #000; }
#ammoMag { font-size: 44px; }
#ammoMag.low { color: var(--enemy); }
#ammoRes { font-size: 18px; color: #aaa; margin-left: 6px; }
#equipRow { display: flex; gap: 14px; justify-content: flex-end; font-size: 13px; margin-top: 4px; color: #ddd; }
#equipRow span b { color: var(--acc); margin-left: 3px; }
#healthBox { position: absolute; left: 50%; bottom: 30px; width: 240px; margin-left: -120px; height: 5px; background: rgba(0,0,0,.5); }
#healthFill { height: 100%; width: 100%; background: #eee; transition: width .1s; }
#healthFill.low { background: var(--enemy); }
#streaks { position: absolute; right: 40px; bottom: 150px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.stk { display: flex; align-items: center; gap: 8px; font-size: 12px; background: rgba(0,0,0,.45); padding: 4px 10px; color: #aaa; }
.stk .ic { font-size: 18px; filter: grayscale(1); opacity: .5; }
.stk.ready { color: #111; background: var(--acc); font-weight: 800; }
.stk.ready .ic { filter: none; opacity: 1; }
.stk .k { font-weight: 800; }
#popups { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pop { font-size: 16px; font-weight: 800; text-shadow: 0 0 4px #000; animation: popIn .25s ease-out; letter-spacing: 2px; }
.pop.medal { font-size: 22px; color: var(--acc2); }
@keyframes popIn { from { transform: scale(1.6); opacity: 0; } }
#prompt { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); font-size: 15px; background: rgba(0,0,0,.55); padding: 6px 16px; display: none; }
#prompt b { color: var(--acc); border: 1px solid var(--acc); padding: 0 6px; margin-right: 6px; }
#progress { position: absolute; left: 50%; top: 66%; width: 240px; margin-left: -120px; height: 6px; background: rgba(0,0,0,.6); display: none; }
#progressFill { height: 100%; width: 0; background: var(--acc); }
#subtitles { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); text-align: center; max-width: 70%; font-size: 19px; text-shadow: 0 0 4px #000, 0 0 8px #000; }
#subtitles .sp { color: var(--acc2); font-weight: 800; margin-right: 8px; }
#announce { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); text-align: center; font-size: 30px; font-weight: 900; letter-spacing: 6px; text-shadow: 0 0 8px #000; opacity: 0; transition: opacity .3s; white-space: nowrap; }
#announce small { display: block; font-size: 14px; letter-spacing: 3px; color: #ccc; font-weight: 400; margin-top: 4px; }
#enemyName { position: absolute; left: 50%; top: calc(50% - 50px); transform: translateX(-50%); font-size: 14px; font-weight: 700; color: var(--enemy); text-shadow: 0 0 3px #000; }
#alertEdge { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 80px 10px rgba(255,180,0,.7); transition: opacity .2s; }
#fps { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: #8f8; }
#deathScreen { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14vh; background: radial-gradient(ellipse at center, transparent 30%, rgba(60,0,0,.6)); }
.death-inner { text-align: center; }
.death-title { font-size: 44px; font-weight: 900; letter-spacing: 10px; color: var(--enemy); }
#killerInfo { font-size: 18px; margin-top: 10px; }
#killerInfo b { color: var(--enemy); }
#respawnText { margin-top: 14px; color: #bbb; }
.death-btns { margin-top: 16px; pointer-events: auto; }
#scoreboard { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 30; width: 820px; background: rgba(8,10,12,.9); padding: 20px; }
.sbt { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.sbt th { text-align: left; font-size: 11px; color: #888; letter-spacing: 2px; padding: 6px 10px; font-weight: 400; }
.sbt td { padding: 6px 10px; border-top: 1px solid rgba(255,255,255,.05); }
.sbt tr.me td { background: rgba(212,242,74,.12); color: var(--acc); font-weight: 700; }
.sbt.A th:first-child { color: var(--ally); } .sbt.B th:first-child { color: var(--enemy); }
.sbt tr.dead td { opacity: .5; }
#clickToPlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); font-size: 22px; letter-spacing: 6px; cursor: pointer; }
.kbd { display: inline-block; border: 1px solid #888; padding: 0 6px; font-size: 12px; border-radius: 2px; margin: 0 2px; }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-thumb { background: #444; }

/* ================= MORTUUS 僵尸模式 HUD ================= */
#roundBox { position: absolute; right: 26px; top: 22px; text-align: right; pointer-events: none; }
#roundBox .rd-num { font-family: "Consolas", monospace; font-size: 54px; font-weight: 900; line-height: .9; color: #e8e2d6; text-shadow: 0 0 18px rgba(255,80,60,.55), 0 2px 6px #000; letter-spacing: -2px; }
#roundBox .rd-sub { font-size: 12px; letter-spacing: 4px; color: #9aa3ab; margin-top: 6px; }
#roundBox .rd-sub b { color: #ff6a5a; font-size: 15px; }

#pointsBox { position: absolute; left: 26px; top: 22px; pointer-events: none; font-family: "Consolas", monospace; }
#pointsBox .dollar { font-size: 26px; color: #ffcf5a; font-weight: 700; vertical-align: 6px; margin-right: 2px; }
#pointsBox .amt { font-size: 44px; font-weight: 900; color: #ffcf5a; text-shadow: 0 0 20px rgba(255,190,60,.45), 0 2px 6px #000; transition: transform .12s, color .12s; display: inline-block; }
#pointsBox .amt.up { transform: scale(1.14); color: #fff3c4; }

#squadBar { position: absolute; left: 26px; bottom: 120px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.sq { width: 168px; background: rgba(8,10,12,.62); border-left: 3px solid var(--c); padding: 5px 8px; }
.sq-name { font-size: 12px; font-weight: 700; color: var(--c); letter-spacing: 1px; display: flex; justify-content: space-between; align-items: baseline; }
.sq-name small { font-size: 9px; color: #7c848c; font-weight: 400; letter-spacing: 2px; }
.sq-bar { height: 3px; background: rgba(255,255,255,.12); margin-top: 4px; }
.sq-bar i { display: block; height: 100%; background: var(--c); transition: width .18s; }
.sq.down { border-left-color: #ff3b30; animation: sqblink .8s infinite; }
.sq.down .sq-bar i { background: #ff3b30; }
.sq.dead { opacity: .35; filter: grayscale(1); }
.sq-tag { font-size: 10px; color: #ff6a5a; letter-spacing: 2px; margin-top: 2px; }
@keyframes sqblink { 0%,100% { background: rgba(60,8,8,.7); } 50% { background: rgba(120,12,12,.8); } }

/* ================= 强化卡 / 升格 ================= */
#cardLayer, #ascendLayer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(10,12,14,.72) 0%, rgba(4,5,6,.94) 78%); backdrop-filter: blur(3px); }
#cardLayer.hidden, #ascendLayer.hidden { display: none; }
.card-wrap { text-align: center; width: min(1080px, 92vw); animation: cardIn .45s cubic-bezier(.2,.9,.25,1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px); } }
.card-head { margin-bottom: 26px; }
.card-title { font-size: 30px; font-weight: 900; letter-spacing: 10px; color: #e8e2d6; }
.card-sub { font-size: 13px; letter-spacing: 3px; color: #8b939b; margin-top: 8px; }
.card-row { display: flex; gap: 20px; justify-content: center; }
.ucard { position: relative; width: 300px; min-height: 330px; padding: 26px 22px 20px; cursor: pointer; background: linear-gradient(170deg, rgba(22,26,30,.96), rgba(10,12,14,.98)); border: 1px solid rgba(255,255,255,.09); border-top: 3px solid var(--rc); box-shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 0 60px var(--rg); transition: transform .16s, box-shadow .16s, border-color .16s; text-align: left; }
.ucard:hover { transform: translateY(-8px) scale(1.025); box-shadow: 0 26px 70px rgba(0,0,0,.75), inset 0 0 80px var(--rg), 0 0 0 1px var(--rc); }
.uc-rar { font-size: 10px; letter-spacing: 4px; color: var(--rc); font-weight: 700; }
.uc-icon { font-size: 46px; margin: 18px 0 10px; text-align: center; filter: drop-shadow(0 0 14px var(--rc)); }
.uc-cat { font-size: 10px; letter-spacing: 3px; color: #6f777f; }
.uc-name { font-size: 22px; font-weight: 900; color: #f0ece2; margin-top: 4px; letter-spacing: 1px; }
.uc-desc { font-size: 13px; line-height: 1.75; color: #a8b0b8; margin-top: 12px; }
.uc-key { position: absolute; right: 14px; bottom: 12px; font-family: "Consolas", monospace; font-size: 12px; color: #565d64; }
.ucard.asc { border-top-color: #c56bff; }

@media (max-width: 900px) {
  .card-row { flex-direction: column; align-items: center; gap: 12px; }
  .ucard { width: 88vw; min-height: 0; }
}

/* 僵尸模式：回合数在右上，killfeed 下移避免遮挡 */
body.zombie-mode #killfeed { top: 110px; }
body.zombie-mode #roundBox { z-index: 6; }
body.zombie-mode #compass, body.zombie-mode #minimapWrap { display: none !important; }

/* ================= 军需站（回合间商店） ================= */
#shopLayer { position: fixed; inset: 0; z-index: 62; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, rgba(14,16,18,.86) 0%, rgba(3,4,5,.97) 80%); backdrop-filter: blur(4px); }
#shopLayer.hidden { display: none; }
.shop { width: min(1240px, 95vw); height: min(780px, 92vh); display: flex; flex-direction: column; background: linear-gradient(170deg, rgba(20,23,26,.98), rgba(8,10,12,.99)); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 90px rgba(0,0,0,.8); animation: shopIn .35s cubic-bezier(.2,.9,.25,1); }
@keyframes shopIn { from { opacity: 0; transform: translateY(20px) scale(.985); } }

.shop-head { display: flex; align-items: baseline; gap: 20px; padding: 20px 26px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.shop-title { font-size: 26px; font-weight: 900; letter-spacing: 10px; color: #e8e2d6; }
.shop-sub { font-size: 12px; letter-spacing: 2px; color: #79828a; }
.shop-pts { margin-left: auto; font-family: "Consolas", monospace; font-size: 34px; font-weight: 900; color: #ffcf5a; text-shadow: 0 0 22px rgba(255,190,60,.4); }
.shop-pts .d { font-size: 20px; vertical-align: 5px; margin-right: 2px; }

.shop-tabs { display: flex; gap: 2px; padding: 0 26px; border-bottom: 1px solid rgba(255,255,255,.07); }
.shop-tab { padding: 12px 22px; font-size: 14px; letter-spacing: 2px; color: #79828a; cursor: pointer; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s, background .15s; display: flex; align-items: center; gap: 8px; }
.shop-tab .i { font-size: 15px; opacity: .8; }
.shop-tab:hover { color: #c8d0d8; background: rgba(255,255,255,.03); }
.shop-tab.sel { color: #ffcf5a; border-bottom-color: #ffcf5a; background: rgba(255,207,90,.06); }

.shop-body { flex: 1; overflow-y: auto; padding: 18px 26px; min-height: 0; }
.shop-foot { display: flex; align-items: center; gap: 16px; padding: 14px 26px; border-top: 1px solid rgba(255,255,255,.07); }
.shop-hint { font-size: 12px; color: #666e76; letter-spacing: 1px; }
.shop-foot .btn { margin-left: auto; }
.shop-empty { padding: 40px; text-align: center; color: #666e76; font-size: 14px; }

/* --- 改枪 --- */
.sh-wrap { display: grid; grid-template-columns: 200px 1fr 300px; gap: 20px; align-items: start; }
.sh-left { display: flex; flex-direction: column; gap: 8px; }
.sh-winfo { padding: 10px 12px; background: rgba(255,255,255,.03); border-left: 3px solid #ffcf5a; margin-bottom: 4px; }
.sh-winfo .wn { font-size: 17px; font-weight: 800; color: #f0ece2; }
.sh-winfo .wc { font-size: 11px; color: #79828a; margin-top: 3px; letter-spacing: 1px; }
.sh-slot { padding: 9px 12px; background: rgba(255,255,255,.025); border: 1px solid transparent; cursor: pointer; transition: all .14s; }
.sh-slot:hover { background: rgba(255,255,255,.06); }
.sh-slot.sel { border-color: #ffcf5a; background: rgba(255,207,90,.09); }
.sh-slot .k { font-size: 11px; color: #79828a; letter-spacing: 2px; }
.sh-slot .v { font-size: 13px; color: #e8e2d6; margin-top: 2px; font-weight: 600; }
.sh-slot .v.none { color: #4a525a; font-weight: 400; }

.sh-right { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.sh-rhead { font-size: 12px; letter-spacing: 3px; color: #79828a; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 4px; }
.sh-opt { padding: 12px 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); cursor: pointer; transition: all .14s; }
.sh-opt:hover { background: rgba(255,207,90,.07); border-color: rgba(255,207,90,.35); transform: translateX(3px); }
.sh-opt.owned { border-color: #4a9e5a; background: rgba(74,158,90,.08); }
.sh-opt.poor { opacity: .45; }
.o-head { display: flex; justify-content: space-between; align-items: baseline; }
.o-head b { font-size: 14px; color: #f0ece2; }
.o-price { font-family: "Consolas", monospace; font-size: 13px; color: #ffcf5a; font-weight: 700; }
.sh-opt.owned .o-price { color: #4a9e5a; }
.o-fx { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.o-fx .t { font-size: 11px; padding: 1px 6px; background: rgba(255,255,255,.06); color: #9aa3ab; }
.o-fx .t.good { color: #8fe06a; background: rgba(143,224,106,.1); }
.o-fx .t.bad { color: #ff6a5a; background: rgba(255,106,90,.1); }
.o-desc { font-size: 11px; color: #79828a; margin-top: 5px; }

.sh-stats { display: flex; flex-direction: column; gap: 9px; padding-top: 8px; }
.st-row { display: grid; grid-template-columns: 40px 1fr 46px; gap: 8px; align-items: center; }
.st-name { font-size: 11px; color: #79828a; letter-spacing: 1px; }
.st-bar { position: relative; height: 5px; background: rgba(255,255,255,.07); }
.st-bar i { position: absolute; left: 0; top: 0; height: 100%; display: block; }
.st-base { background: rgba(255,255,255,.18); }
.st-cur { background: #d4f24a; }
.st-cur.up { background: #8fe06a; }
.st-cur.down { background: #ff6a5a; }
.st-val { font-family: "Consolas", monospace; font-size: 12px; color: #c8d0d8; text-align: right; }
.st-val.up { color: #8fe06a; }
.st-val.down { color: #ff6a5a; }

/* --- 卡片网格 --- */
.sh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sh-card { padding: 16px 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); cursor: pointer; transition: all .16s; display: flex; flex-direction: column; gap: 8px; }
.sh-card:hover { background: rgba(255,207,90,.06); border-color: rgba(255,207,90,.4); transform: translateY(-3px); }
.sh-card.owned { border-color: #4a9e5a; background: rgba(74,158,90,.07); cursor: default; }
.sh-card.owned:hover { transform: none; }
.sh-card.poor { opacity: .45; }
.c-head { display: flex; justify-content: space-between; align-items: baseline; }
.c-head b { font-size: 16px; color: #f0ece2; }
.c-cls { font-size: 11px; color: #79828a; letter-spacing: 1px; }
.c-stats { display: flex; gap: 14px; font-size: 11px; color: #79828a; }
.c-stats b { color: #c8d0d8; font-family: "Consolas", monospace; }
.c-desc { font-size: 12px; color: #9aa3ab; line-height: 1.6; }
.c-price { margin-top: auto; font-family: "Consolas", monospace; font-size: 18px; font-weight: 800; color: #ffcf5a; }
.sh-card.owned .c-price { color: #4a9e5a; font-size: 13px; }

/* --- 抽卡 --- */
.sh-cardrow { display: flex; gap: 16px; justify-content: center; margin-top: 10px; }
.sh-ucard { width: 260px; padding: 22px 18px; background: linear-gradient(170deg, rgba(22,26,30,.96), rgba(10,12,14,.98)); border: 1px solid rgba(255,255,255,.09); border-top: 3px solid var(--rc); cursor: pointer; transition: all .16s; }
.sh-ucard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--rc), 0 18px 40px rgba(0,0,0,.6); }
.u-rar { font-size: 10px; letter-spacing: 4px; color: var(--rc); font-weight: 700; }
.u-icon { font-size: 38px; text-align: center; margin: 12px 0 8px; filter: drop-shadow(0 0 12px var(--rc)); }
.u-name { font-size: 19px; font-weight: 900; color: #f0ece2; }
.u-desc { font-size: 12px; color: #a8b0b8; margin-top: 8px; line-height: 1.65; }

@media (max-width: 1100px) {
  .sh-wrap { grid-template-columns: 1fr; }
  .sh-stats { grid-column: 1; }
}

/* ================= 低倍镜准星（红点 / 全息） ================= */
#opticReticle { position: absolute; inset: 0; pointer-events: none; transition: opacity .08s; }
#opticReticle.hidden { display: none; }
#opticReticle > div { position: absolute; left: 50%; top: 50%; }
#opticReticle .or-dot { width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #ff2a1a; box-shadow: 0 0 6px 2px rgba(255,40,20,.85); }
#opticReticle .or-ring { width: 46px; height: 46px; margin: -23px; border-radius: 50%; border: 1px solid rgba(255,60,40,.55); box-shadow: inset 0 0 12px rgba(255,50,30,.25); }
#opticReticle .or-cross-h { width: 60px; height: 1px; margin-left: -30px; background: linear-gradient(90deg, transparent, rgba(255,60,40,.7) 20%, transparent 20%, transparent 80%, rgba(255,60,40,.7) 80%, transparent); }
#opticReticle .or-cross-v { width: 1px; height: 60px; margin-top: -30px; background: linear-gradient(180deg, transparent, rgba(255,60,40,.7) 20%, transparent 20%, transparent 80%, rgba(255,60,40,.7) 80%, transparent); }
#opticReticle.holo .or-dot { background: #ff3030; box-shadow: 0 0 8px 3px rgba(255,48,48,.8); }
#opticReticle.holo .or-ring { width: 62px; height: 62px; margin: -31px; border: 1.5px solid rgba(255,50,40,.65); }
#opticReticle.holo .or-cross-h, #opticReticle.holo .or-cross-v { display: none; }
#opticReticle.reddot .or-ring { width: 30px; height: 30px; margin: -15px; border-color: rgba(255,60,40,.4); }

/* ================= 军需站：购买 / 背包 ================= */
.shop-bag { font-size: 12px; color: #79828a; letter-spacing: 1px; margin-left: 8px; }
.shop-sec { margin-bottom: 22px; }
.sec-title { font-size: 12px; letter-spacing: 4px; color: #ffcf5a; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,207,90,.18); display: flex; align-items: baseline; gap: 10px; }
.sec-hint { font-size: 11px; letter-spacing: 1px; color: #666e76; }

.p-group { margin-bottom: 14px; }
.p-slot { font-size: 11px; letter-spacing: 3px; color: #79828a; margin-bottom: 6px; }
.p-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sh-pcard { padding: 10px 12px; background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.05); cursor: pointer; transition: all .14s; }
.sh-pcard:hover { background: rgba(255,207,90,.07); border-color: rgba(255,207,90,.35); transform: translateY(-2px); }
.sh-pcard.have { border-color: rgba(74,158,90,.55); background: rgba(74,158,90,.06); }
.sh-pcard.poor { opacity: .45; }
.p-head { display: flex; justify-content: space-between; align-items: baseline; }
.p-head b { font-size: 13px; color: #e8e2d6; }
.p-own { font-family: "Consolas", monospace; font-size: 12px; color: #4a9e5a; font-weight: 700; }
.p-fx { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.p-fx .t { font-size: 10px; padding: 1px 5px; background: rgba(255,255,255,.06); color: #9aa3ab; }
.p-fx .t.good { color: #8fe06a; background: rgba(143,224,106,.1); }
.p-fx .t.bad { color: #ff6a5a; background: rgba(255,106,90,.1); }
.p-price { margin-top: 6px; font-family: "Consolas", monospace; font-size: 13px; color: #ffcf5a; font-weight: 700; }
.sh-pcard.have .p-price { color: #4a9e5a; font-size: 11px; }

/* --- 背包布局 --- */
.stash { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.st-left { display: flex; flex-direction: column; gap: 8px; }
.st-slot { padding: 12px 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); cursor: pointer; transition: all .14s; min-height: 62px; }
.st-slot:hover { background: rgba(255,255,255,.06); }
.st-slot.sel { border-color: #ffcf5a; background: rgba(255,207,90,.09); }
.st-slot.empty { opacity: .55; border-style: dashed; }
.ss-tag { font-size: 10px; letter-spacing: 2px; color: #79828a; }
.ss-name { font-size: 16px; font-weight: 800; color: #f0ece2; margin-top: 3px; }
.ss-sub { font-size: 11px; color: #79828a; margin-top: 2px; }
.ss-empty { font-size: 13px; color: #4a525a; margin-top: 6px; }
.st-wlist { display: flex; flex-direction: column; gap: 5px; max-height: 300px; overflow-y: auto; }
.st-w { padding: 8px 11px; background: rgba(255,255,255,.025); border: 1px solid transparent; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; transition: all .14s; }
.st-w:hover { background: rgba(255,207,90,.07); border-color: rgba(255,207,90,.3); }
.st-w.eq { border-color: rgba(74,158,90,.45); background: rgba(74,158,90,.06); }
.w-n { font-size: 13px; font-weight: 700; color: #e8e2d6; }
.w-c { font-size: 10px; color: #79828a; grid-row: 2; }
.w-tag { grid-row: 1 / 3; grid-column: 2; font-size: 10px; letter-spacing: 1px; color: #ffcf5a; }
.st-w.eq .w-tag { color: #4a9e5a; }

.st-right { display: flex; flex-direction: column; gap: 12px; min-height: 400px; }
.as-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.as-wn { font-size: 22px; font-weight: 900; color: #f0ece2; }
.as-wc { font-size: 11px; color: #79828a; letter-spacing: 2px; }
.as-head .btn { margin-left: auto; }
.as-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.as-slot { padding: 7px 9px; background: rgba(255,255,255,.025); border: 1px solid transparent; cursor: pointer; transition: all .14s; }
.as-slot:hover { background: rgba(255,255,255,.06); }
.as-slot.sel { border-color: #ffcf5a; background: rgba(255,207,90,.09); }
.as-slot .k { font-size: 10px; letter-spacing: 2px; color: #79828a; }
.as-slot .v { font-size: 12px; color: #e8e2d6; margin-top: 2px; font-weight: 600; }
.as-slot .v.none { color: #4a525a; font-weight: 400; }
.as-opts { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.as-opt { padding: 10px 12px; background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.05); cursor: pointer; transition: all .14s; }
.as-opt:hover { background: rgba(255,207,90,.07); border-color: rgba(255,207,90,.35); }
.as-opt.on { border-color: #4a9e5a; background: rgba(74,158,90,.1); }
.as-opt.none, .as-opt.used { opacity: .4; cursor: not-allowed; }
.as-opt.none:hover, .as-opt.used:hover { background: rgba(255,255,255,.028); border-color: rgba(255,255,255,.05); }
.o-state { font-size: 11px; color: #79828a; font-family: "Consolas", monospace; }
.as-opt.on .o-state { color: #4a9e5a; }
.as-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.06); }

/* ================= 鼠标输入状态提示 ================= */
#inputState { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); font-size: 12px; letter-spacing: 2px; color: #ffcf5a; background: rgba(8,10,12,.7); padding: 5px 14px; border-left: 2px solid #ffcf5a; pointer-events: none; }
#inputState.hidden { display: none; }
#clickToPlay { cursor: pointer; }
#clickToPlay .kbd { margin: 0 3px; }

/* 继续遮罩：只占中央，不拦截全屏点击 */
#clickToPlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.28); font-size: 22px; letter-spacing: 6px; cursor: pointer; }
#clickToPlay.hidden { display: none; }
