/* Wolfware Cheat Lab 3D — scoped FPS interface */
.fps-window {
  --brand: #4d4dff;
  --brand-2: #9a9aff;
  --panel: #0b101b;
  --line: rgba(125, 135, 255, .22);
  --shadow-blue: 0 8px 26px rgba(0, 0, 255, .2);
  position: relative;
  isolation: isolate;
  max-width: 1180px;
  margin: 0 auto;
}
.fps-window *, .fps-window *::before, .fps-window *::after { box-sizing: border-box; }
.lab-windowbar { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #182234, #111825); color: #c8d0e1; font-size: 11px; letter-spacing: .09em; }
.panel-dots { display: flex; gap: 5px; }
.panel-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.panel-dots i:nth-child(2) { background: #febc2e; }
.panel-dots i:nth-child(3) { background: #28c840; }
.fps-window .game-score { margin-left: auto; color: var(--brand-2); font-size: 10px; letter-spacing: .14em; }
.fps-window .game-stage { position: relative; height: clamp(500px, 55vw, 650px); min-height: 500px; overflow: hidden; background: #050813; }
.fps-window .game-stage::after { z-index: 2; box-shadow: inset 0 0 100px rgba(2, 4, 12, .48); }
#aim-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.fps-window #aim-canvas { cursor: none; }
.fps-fallback { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; margin: 0; padding: 32px; background: #080d18; color: #c5cee0; text-align: center; }
#fps-stage:fullscreen { width: 100vw; height: 100dvh; min-height: 100dvh; background: #050813; }
.fps-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fps-menu[hidden], .fps-hud[hidden], .fps-cheats[hidden], .fps-toast[hidden], .hud-combo[hidden] { display: none !important; }
.fps-menu { position: absolute; inset: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding: 34px 38px; background: linear-gradient(112deg, rgba(4, 7, 16, .96) 0%, rgba(5, 8, 18, .72) 54%, rgba(5, 8, 18, .24) 100%); }
.fm-left { display: flex; min-width: 0; flex-direction: column; }
.fm-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fm-brand img { filter: drop-shadow(0 0 16px rgba(77, 77, 255, .55)); }
.fm-brand b { display: block; color: #fff; font-size: 25px; font-weight: 900; line-height: 1; letter-spacing: .04em; }
.fm-brand span { color: #8e99af; font-size: 10px; letter-spacing: .22em; }
.fm-tags { margin: 4px 0 22px; color: #9aa7bc; font-size: 12px; }
.fm-actions { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.fm-actions li { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 10px; color: #96a2b8; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.fm-actions li b { color: #d6deed; font-size: 20px; font-weight: 650; }
.fm-actions li small { color: #8491a8; font-size: 11px; }
.fm-actions li .fm-play, .fm-actions li .fm-ic { width: 22px; color: #8f9bb2; font-size: 16px; text-align: center; }
.fm-actions li:hover, .fm-actions li:focus-visible { outline: none; background: rgba(255,255,255,.055); transform: translateX(3px); }
.fm-actions li:hover b, .fm-actions li:focus-visible b { color: #fff; }
.fm-actions li.active { border-color: rgba(77,77,255,.18); border-left-color: var(--brand); background: linear-gradient(90deg, rgba(54,54,255,.25), rgba(54,54,255,.025)); }
.fm-actions li.active b, .fm-actions li.active .fm-play { color: #fff; }
.fm-controls { margin-top: auto; padding-top: 18px; color: #8c99ae; font-size: 10.5px; line-height: 2; }
.fm-controls b, .cfg-foot b { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.05); color: #e0e6f2; font-weight: 600; }
.fm-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.fm-best { text-align: right; }
.fm-best small { display: block; color: #8d99ae; font-size: 10px; letter-spacing: .14em; }
.fm-best b { color: #fff; font-size: 36px; line-height: 1.15; text-shadow: 0 0 26px rgba(77,77,255,.35); }
.fm-lb { width: 100%; margin-top: auto; padding: 14px; border: 1px solid rgba(125,135,255,.14); border-radius: 12px; background: rgba(7,11,22,.55); backdrop-filter: blur(8px); }
.fm-lb-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: #8f9bb0; font-size: 9px; letter-spacing: .12em; }
.fm-lb ol { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.fm-lb li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.07); counter-increment: rank; font-size: 12px; }
.fm-lb li::before { content: counter(rank); color: #7d899f; }
.fm-lb li span { color: #d0d8e8; font-weight: 600; }
.fm-lb li b { color: var(--brand-2); }
.fm-lb .empty { display: block; color: #8592a8; text-align: center; }
.fps-hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.fps-hud .wpn, .fps-hud [data-w], .fps-hud .hud-keys button, .touch-controls button { pointer-events: auto; }
.hud-tl { position: absolute; top: 18px; left: 20px; }
.hud-score { color: #fff; font-size: 42px; font-weight: 800; line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.hud-acc { margin-top: 5px; color: #aab5c8; font-size: 10px; letter-spacing: .05em; }
.hud-combo { display: inline-block; margin-top: 9px; padding: 4px 9px; border: 1px solid rgba(154,154,255,.5); border-radius: 6px; background: rgba(40,40,180,.38); color: #dcdcFF; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.hud-timer { position: absolute; top: 0; left: 50%; min-width: 126px; padding: 9px 20px 7px; transform: translateX(-50%); border: 1px solid var(--line); border-top: 2px solid var(--brand); border-radius: 0 0 11px 11px; background: rgba(7,11,20,.78); text-align: center; backdrop-filter: blur(6px); }
.hud-timer b { display: block; color: #fff; font-size: 23px; }
.hud-timer small { color: #9aa7bb; font-size: 8px; letter-spacing: .18em; }
.hud-weapons { position: absolute; top: 50%; right: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; transform: translateY(-50%); }
.hud-weapons .wpn { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 120px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(7,11,20,.68); color: #98a5b9; cursor: pointer; font-size: 12px; font-weight: 650; }
.hud-weapons .wpn i { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: #d5ddef; font-size: 9px; font-style: normal; }
.hud-weapons .wpn.active { border-color: var(--brand); background: rgba(50,50,220,.32); color: #fff; box-shadow: var(--shadow-blue); }
.hud-ammo { margin-top: 8px; text-align: right; white-space: nowrap; }
.hud-ammo span { display: block; color: var(--brand-2); font-size: 10px; letter-spacing: .12em; }
.hud-ammo b { color: #fff; font-size: 32px; }
.hud-ammo small { color: #9aa6b9; font-size: 13px; }
.hud-keys { position: absolute; bottom: 14px; left: 50%; display: flex; gap: 5px; max-width: calc(100% - 30px); padding: 6px 8px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 10px; background: rgba(6,10,19,.78); backdrop-filter: blur(8px); }
.hud-keys button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #a1adbf; cursor: pointer; font: inherit; font-size: 10px; white-space: nowrap; }
.hud-keys button:hover { border-color: var(--brand); background: rgba(77,77,255,.16); color: #fff; }
.hud-keys b { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: #e1e7f2; }
.crosshair { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; transform: translate(-50%,-50%); }
.crosshair i { position: absolute; background: #eef1ff; box-shadow: 0 0 4px rgba(0,0,0,.8); }
.crosshair i:nth-child(1) { top: 0; left: 50%; width: 2px; height: 8px; margin-left: -1px; }
.crosshair i:nth-child(2) { bottom: 0; left: 50%; width: 2px; height: 8px; margin-left: -1px; }
.crosshair i:nth-child(3) { top: 50%; left: 0; width: 8px; height: 2px; margin-top: -1px; }
.crosshair i:nth-child(4) { top: 50%; right: 0; width: 8px; height: 2px; margin-top: -1px; }
.crosshair em { position: absolute; inset: 0; opacity: 0; transform: rotate(45deg) scale(.65); border: 2px solid transparent; }
.crosshair.hit em { opacity: 1; border-color: #ff6767; }
.fps-cheats { position: absolute; top: 50%; left: 50%; z-index: 8; width: 580px; max-width: calc(100% - 28px); max-height: calc(100% - 28px); overflow: auto; transform: translate(-50%,-50%); border: 1px solid rgba(125,135,255,.35); border-radius: 14px; background: linear-gradient(180deg, rgba(12,17,31,.985), rgba(7,10,18,.985)); box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 40px rgba(0,0,255,.12); backdrop-filter: blur(14px); }
.cfg-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cfg-title { display: flex; flex: 1; align-items: center; gap: 7px; color: #fff; font-size: 14px; font-weight: 750; letter-spacing: .04em; }
.cfg-title i { color: var(--brand-2); font-style: normal; }
.cfg-title em { margin-left: 8px; color: #8491a8; font-size: 9px; font-style: normal; letter-spacing: .22em; }
.cfg-x { padding: 0 4px; border: 0; background: transparent; color: #9aa6b9; cursor: pointer; font-size: 23px; }
.cfg-main { display: grid; grid-template-columns: 155px 1fr; min-height: 245px; }
.cfg-tabs { display: flex; flex-direction: column; gap: 4px; padding: 15px 13px; border-right: 1px solid var(--line); }
.cfg-tab { padding: 10px 13px; border: 0; border-radius: 8px; background: transparent; color: #929fb4; cursor: pointer; text-align: left; font: inherit; font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.cfg-tab.active { background: linear-gradient(90deg, rgba(77,77,255,.26), rgba(77,77,255,.04)); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.cfg-panels { padding: 20px 24px; }
.cfg-panel { display: none; flex-direction: column; gap: 2px; }
.cfg-panel.active { display: flex; }
.cfg-weap { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cfg-weap-label { color: #fff; font-size: 20px; font-weight: 700; }
.cfg-weap-body { text-align: right; }
.wpills { display: inline-flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); }
.wpill { padding: 7px 13px; border: 0; border-radius: 6px; background: transparent; color: #99a6b9; cursor: pointer; font: inherit; font-size: 11px; }
.wpill.active { background: linear-gradient(135deg, #3434ff, #7373ff); color: #fff; }
.wspec { margin-top: 12px; color: #8e9bb0; font-size: 11px; }
.gm-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: #a3aec0; cursor: pointer; font-size: 12px; }
.gm-row > span { flex: 1; }
.gm-row b { min-width: 24px; color: #fff; text-align: right; font-size: 11px; }
.gm-row input[type="checkbox"] { position: absolute; width: 0; height: 0; opacity: 0; }
.gm-sw { position: relative; flex-shrink: 0; width: 31px; height: 17px; border-radius: 99px; background: #2a3346; }
.gm-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #8490a8; transition: left .15s, background .15s; }
.gm-row input:checked + .gm-sw { background: linear-gradient(135deg, #3434ff, #7777ff); }
.gm-row input:checked + .gm-sw::after { left: 16px; background: #fff; }
.gm-row input[type="range"] { width: 120px; accent-color: var(--brand); }
.gm-select select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #0b1020; color: #fff; font: inherit; font-size: 11px; }
.cfg-reset { align-self: flex-start; margin-top: 12px; padding: 8px 13px; border: 1px solid rgba(255,77,77,.4); border-radius: 7px; background: rgba(255,77,77,.1); color: #ff9b9b; cursor: pointer; font: inherit; font-size: 11px; }
.cfg-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; border-top: 1px solid var(--line); color: #8592a7; font-size: 9px; letter-spacing: .09em; }
.fps-toast { position: absolute; bottom: 62px; left: 50%; z-index: 9; max-width: calc(100% - 30px); padding: 7px 16px; transform: translateX(-50%) translateY(6px); border: 1px solid var(--line); border-radius: 99px; background: rgba(7,11,20,.92); color: #fff; opacity: 0; pointer-events: none; text-align: center; font-size: 11px; transition: opacity .2s, transform .2s; }
.fps-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.touch-controls { display: none; }
@media (max-width: 850px) {
  .fps-window .game-stage { height: 570px; min-height: 520px; }
  .fps-menu { grid-template-columns: 1fr 210px; padding: 25px; }
  .fm-actions li small { display: none; }
  .hud-keys { display: none; }
}
@media (max-width: 600px) {
  .lab-windowbar { padding: 0 11px; }
  .fps-window .game-score { display: none; }
  .fps-window .game-stage { height: 600px; min-height: 540px; }
  .fps-menu { display: block; padding: 22px; overflow: auto; }
  .fm-right { display: grid; grid-template-columns: 1fr; margin-top: 18px; }
  .fm-best { text-align: left; }
  .fm-lb { display: none; }
  .fm-tags { max-width: 320px; line-height: 1.6; }
  .fm-actions li b { font-size: 18px; }
  .fm-controls { display: none; }
  .hud-tl { top: 14px; left: 14px; }
  .hud-score { font-size: 32px; }
  .hud-timer { left: auto; right: 12px; min-width: 100px; transform: none; }
  .hud-weapons { top: 100px; right: 12px; transform: none; }
  .hud-weapons .wpn { min-width: 88px; padding: 6px 8px; font-size: 10px; }
  .hud-ammo b { font-size: 26px; }
  .cfg-main { grid-template-columns: 1fr; }
  .cfg-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .cfg-tab { white-space: nowrap; }
  .cfg-panels { padding: 17px; }
  .cfg-weap { flex-direction: column; }
  .cfg-weap-body { text-align: left; }
}
@media (pointer: coarse) {
  .fps-window #aim-canvas { cursor: crosshair; }
  .touch-controls { position: absolute; right: 14px; bottom: 16px; left: 14px; display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none; }
  .touch-move { display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 46px); gap: 5px; }
  .touch-move button:nth-child(1) { grid-column: 2; }
  .touch-move button:nth-child(2) { grid-column: 1; grid-row: 2; }
  .touch-move button:nth-child(3) { grid-column: 2; grid-row: 2; }
  .touch-move button:nth-child(4) { grid-column: 3; grid-row: 2; }
  .touch-actions { display: flex; align-items: flex-end; gap: 7px; }
  .touch-controls button { min-width: 46px; height: 46px; padding: 0 10px; border: 1px solid rgba(154,154,255,.5); border-radius: 50%; background: rgba(12,17,31,.72); color: #fff; font: inherit; font-size: 11px; font-weight: 700; touch-action: none; backdrop-filter: blur(6px); }
  .touch-controls button:active { background: rgba(77,77,255,.65); }
  .touch-controls .touch-fire { width: 68px; height: 68px; border-color: #7d7dff; background: rgba(45,45,210,.55); }
}
@media (prefers-reduced-motion: reduce) {
  .fm-actions li, .fps-toast { transition: none; }
}
