html, body { margin:0; padding:0; height:100%; overflow:hidden; background:#05050a; }
canvas { display:block; }
body { font-family: "Consolas", "PingFang SC", "Microsoft YaHei", monospace; }

#hud {
  position: fixed; left: 18px; bottom: 18px;
  padding: 10px;
  background: rgba(9, 15, 19, 0.6);
  border: 1px solid rgba(150, 195, 215, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  user-select: none;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.8);
}

.diagram { position: relative; width: 120px; height: 150px; }
.dg-body {
  position: absolute; left: 24px; top: 0; width: 72px; height: 150px;
  box-sizing: border-box; border: 2px solid #ffffff; border-radius: 14px;
  background: rgba(255, 255, 255, 0.02); z-index: 1;
  transition: border-color .15s linear, box-shadow .15s linear;
}
.dg-engine {
  position: absolute; left: 34px; top: 10px; width: 52px; height: 42px;
  border-radius: 6px; background: #ffffff; z-index: 2;
  transition: background .15s linear, box-shadow .15s linear;
}
.dg-wheel {
  position: absolute; width: 18px; height: 34px; border-radius: 4px;
  background: #ffffff; z-index: 3;
  transition: background .15s linear, box-shadow .15s linear;
}
.dg-w0 { left: 2px;   top: 22px; }
.dg-w1 { left: 100px; top: 22px; }
.dg-w2 { left: 2px;   top: 96px; }
.dg-w3 { left: 100px; top: 96px; }

#tip {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #88a8cc; font-size: 13px; letter-spacing: 1px;
  background: rgba(5,5,10,0.85); padding: 10px 24px;
  border-radius: 20px; border:1px solid rgba(100,150,200,0.2);
  user-select: none; white-space: nowrap; font-weight: bold;
  box-shadow: 0 0 15px rgba(0,0,0,0.8); z-index: 10;
}
#tip b { color:#ffcc00; font-weight:600; }

#flipWarning {
  position: fixed; top: 18%; left: 50%; transform: translateX(-50%);
  color: #ffb347; font-size: 22px; letter-spacing: 8px;
  text-shadow: 0 0 22px rgba(255,150,60,0.85);
  pointer-events: none; user-select: none; display: none;
  animation: pulseWarn 1.4s infinite;
}
@keyframes pulseWarn { 0%,100%{opacity:1} 50%{opacity:.45} }

#overlay {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center; flex-direction: column;
  background: radial-gradient(circle at 50% 45%, rgba(60,10,10,0.5), rgba(0,0,0,0.95));
  z-index: 50; color: #ff5a4a; user-select:none;
}
#overlay .big {
  font-size: 54px; letter-spacing: 14px; font-weight: 700;
  text-shadow: 0 0 30px rgba(255,60,40,0.7);
  animation: flicker 2.2s infinite;
}
@keyframes flicker { 0%,100%{opacity:1} 48%{opacity:1} 50%{opacity:.45} 52%{opacity:1} }
#overlay .sub { margin-top: 14px; color:#c79090; font-size:14px; letter-spacing:3px; }
#overlay .btn {
  margin-top: 34px; padding: 12px 42px; border:1px solid rgba(255,90,74,0.6);
  color:#ffb3aa; letter-spacing:4px; font-size:14px; border-radius:4px;
  cursor:pointer; transition: all .18s; background: rgba(255,60,40,0.06);
}
#overlay .btn:hover { background: rgba(255,60,40,0.2); color:#fff; }

#crosshair {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  pointer-events: none; z-index: 20; display: none;
}
#crosshair::before, #crosshair::after {
  content: ''; position: absolute; background: #ffffff;
  box-shadow: 0 0 4px rgba(0,0,0,0.8);
}
#crosshair::before { top: 11px; left: 0; width: 24px; height: 2px; }
#crosshair::after { top: 0; left: 11px; width: 2px; height: 24px; }
#crosshair .dot {
  position: absolute; top: 11px; left: 11px; width: 2px; height: 2px; background: #ff0000;
}

#weaponHUD {
  position: fixed; bottom: 20px; right: 20px;
  width: 160px; height: 80px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px; display: none; flex-direction: column;
  backdrop-filter: blur(4px); z-index: 10; user-select: none;
}
#weaponTop {
  display: flex; flex-direction: row; align-items: center;
  height: 50px; padding: 5px 10px; box-sizing: border-box;
}
#weaponIcon {
  width: 40px; height: 30px; border: 2px solid #fff;
  border-radius: 4px; position: relative; display: flex; justify-content: center; align-items: center;
}
#weaponIcon::before {
  content: ''; width: 24px; height: 4px; background: #fff; position: absolute; top: 6px;
}
#weaponIcon::after {
  content: ''; width: 10px; height: 12px; background: #fff; position: absolute; top: 10px; border-radius: 2px;
}
#ammoText {
  margin-left: auto; font-size: 20px; font-weight: bold; color: #fff;
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
}
#weaponHeatBar {
  flex: 1; margin: 0 10px 10px 10px; background: #ffffff;
  border-radius: 4px; overflow: hidden; position: relative;
}
#weaponHeatFill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0%;
  background: #ff3333; transition: width 0.05s linear;
}
#weaponHeatText {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: center;
  font-size: 12px; color: #000; font-weight: bold; mix-blend-mode: difference;
}

/* ===== 主菜单 ===== */
#mainMenu {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(20,30,50,0.92), rgba(2,2,6,0.98));
  z-index: 100; user-select: none;
}
.mm-title {
  color: #ffcc00; font-size: 52px; letter-spacing: 16px;
  font-weight: 700; text-shadow: 0 0 30px rgba(255,180,40,0.55);
  margin-bottom: 8px;
}
.mm-sub {
  color: #88a8cc; font-size: 14px; letter-spacing: 8px;
  margin-bottom: 54px; opacity: 0.85;
}
.mm-buttons { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.mm-btn {
  width: 260px; padding: 22px 20px;
  background: rgba(15, 25, 40, 0.85);
  border: 1px solid rgba(120, 180, 240, 0.35);
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.mm-btn:hover {
  border-color: #ffcc00;
  background: rgba(30, 45, 65, 0.95);
  box-shadow: 0 0 24px rgba(255, 200, 60, 0.4), 0 8px 32px rgba(0,0,0,0.6);
  transform: translateY(-3px);
}
.mm-btn-title {
  color: #ffffff; font-size: 20px; letter-spacing: 4px;
  font-weight: 600; margin-bottom: 8px;
}
.mm-btn:hover .mm-btn-title { color: #ffcc00; }
.mm-btn-desc {
  color: #88a8cc; font-size: 12px; letter-spacing: 1px;
  opacity: 0.85;
}

/* ===== 速度仪表盘 ===== */
#speedo {
  position: fixed;
  left: 168px;   /* 对齐 #hud 右边缘（18 + 120 + 20 + 2 + 8 间隙） */
  bottom: 18px;
  width: 160px;
  height: 160px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.8));
}
#speedoCanvas {
  display: block;
  width: 160px;
  height: 160px;
}

/* ===== 击杀数 · 全息指挥终端 ===== */
#killCounter {
  position: fixed;
  top: 16px;
  right: 26px;
  min-width: 148px;
  padding: 9px 20px 12px 24px;
  text-align: right;
  pointer-events: none;
  user-select: none;
  z-index: 12;
  font-family: Consolas, "Courier New", monospace;
  border-right: 1px solid rgba(0, 210, 255, 0.45);
  border-bottom: 1px solid rgba(0, 210, 255, 0.22);
  background: linear-gradient(90deg,
              rgba(0, 200, 255, 0) 0%,
              rgba(0, 200, 255, 0.055) 100%);
  will-change: transform;
}

/* 顶部短刻度线，像终端读数标尺 */
#killCounter::before {
  content: '';
  position: absolute;
  top: 0;
  right: 16px;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg,
              rgba(0, 210, 255, 0) 0%,
              rgba(0, 210, 255, 0.65) 100%);
}

.kc-label {
  font-size: 11px;
  letter-spacing: 6px;
  line-height: 1;
  color: rgba(125, 239, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.kc-num {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 3px;
  color: #b8f6ff;
  text-shadow:
    0 0 8px rgba(0, 220, 255, 0.9),
    0 0 20px rgba(0, 220, 255, 0.35);
  will-change: transform;
  transform-origin: right center;
}

/* ===== 击杀时：整块板猛震 + 蓝光爆闪 ===== */
#killCounter.hit {
  animation: killBoardShake 0.5s cubic-bezier(0.16, 0.9, 0.32, 1);
}

/* 数字本身闪蓝光并放大回弹 */
#killCounter.hit .kc-num {
  animation: killNumFlash 0.5s cubic-bezier(0.16, 0.9, 0.32, 1);
}

@keyframes killBoardShake {
  0% {
    transform: translate(0, 0) scale(1);
    border-right-color: rgba(130, 240, 255, 1);
    border-bottom-color: rgba(130, 240, 255, 0.95);
    box-shadow:
      0 0 26px rgba(0, 220, 255, 0.95),
      0 0 60px rgba(0, 220, 255, 0.5),
      inset 0 0 18px rgba(0, 220, 255, 0.35);
  }
  8% {
    transform: translate(-8px, 4px) scale(1.07);
  }
  18% {
    transform: translate(8px, -4px) scale(1.07);
    box-shadow:
      0 0 34px rgba(0, 220, 255, 0.9),
      0 0 78px rgba(0, 220, 255, 0.55),
      inset 0 0 24px rgba(0, 220, 255, 0.45);
  }
  30% {
    transform: translate(-6px, 3px) scale(1.05);
  }
  44% {
    transform: translate(6px, -3px) scale(1.05);
    box-shadow:
      0 0 24px rgba(0, 220, 255, 0.65),
      0 0 50px rgba(0, 220, 255, 0.32),
      inset 0 0 14px rgba(0, 220, 255, 0.22);
  }
  60% {
    transform: translate(-3px, 2px) scale(1.03);
  }
  76% {
    transform: translate(3px, -1px) scale(1.015);
    box-shadow:
      0 0 14px rgba(0, 220, 255, 0.3),
      inset 0 0 6px rgba(0, 220, 255, 0.1);
  }
  90% {
    transform: translate(-1px, 0) scale(1.005);
  }
  100% {
    transform: translate(0, 0) scale(1);
    border-right-color: rgba(0, 210, 255, 0.45);
    border-bottom-color: rgba(0, 210, 255, 0.22);
    box-shadow: none;
  }
}

@keyframes killNumFlash {
  0% {
    color: #ffffff;
    transform: scale(1.55);
    text-shadow:
      0 0 26px #ffffff,
      0 0 60px #00d2ff,
      0 0 110px #00d2ff;
  }
  20% {
    color: #ffffff;
    transform: scale(1.32);
    text-shadow:
      0 0 22px #ffffff,
      0 0 48px #00d2ff,
      0 0 82px #00d2ff;
  }
  50% {
    color: #ffffff;
    transform: scale(1.14);
    text-shadow:
      0 0 16px #ffffff,
      0 0 32px #00d2ff;
  }
  80% {
    color: #b8f6ff;
    transform: scale(1.04);
    text-shadow:
      0 0 12px rgba(0, 220, 255, 0.95),
      0 0 24px rgba(0, 220, 255, 0.4);
  }
  100% {
    color: #b8f6ff;
    transform: scale(1);
    text-shadow:
      0 0 8px rgba(0, 220, 255, 0.9),
      0 0 20px rgba(0, 220, 255, 0.35);
  }
}

/* ===== 维修面板 ===== */
#repairPanel {
  position: fixed;
  right: 20px;
  bottom: 112px;   /* weaponHUD 上方 */
  width: 80px;
  height: 80px;
  pointer-events: none;
  user-select: none;
  z-index: 11;
  opacity: 0.88;
  transition: opacity 0.25s, filter 0.25s;
}
#repairPanel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 210, 255, 0.55);
  background: radial-gradient(circle,
      rgba(0, 180, 255, 0.12) 0%,
      rgba(0, 180, 255, 0.03) 60%,
      transparent 100%);
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.25),
              inset 0 0 12px rgba(0, 210, 255, 0.08);
  transition: box-shadow 0.25s, border-color 0.25s;
}
#repairPanel.ready::before {
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.55),
              inset 0 0 16px rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 220, 255, 0.75);
}
#repairPanel.cooling {
  opacity: 0.32;
  filter: grayscale(0.5);
}
#repairPanel.cooling::before {
  box-shadow: none;
  border-color: rgba(0, 150, 190, 0.3);
}
#repairPanel.active::before {
  animation: rpPulse 0.85s infinite;
}
@keyframes rpPulse {
  0%, 100% {
    box-shadow: 0 0 22px rgba(0, 220, 255, 0.6),
                inset 0 0 16px rgba(0, 220, 255, 0.2);
    border-color: rgba(0, 230, 255, 0.9);
  }
  50% {
    box-shadow: 0 0 36px rgba(0, 220, 255, 0.95),
                inset 0 0 24px rgba(0, 220, 255, 0.35);
    border-color: rgba(160, 245, 255, 1);
  }
}

/* 十字图标 */
.rp-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  transition: opacity 0.25s;
}
.rp-cross-v, .rp-cross-h {
  position: absolute;
  background: #b8f6ff;
  box-shadow: 0 0 8px rgba(0, 220, 255, 0.9);
}
.rp-cross-v {
  left: 50%; top: 0; transform: translateX(-50%);
  width: 8px; height: 100%;
  border-radius: 2px;
}
.rp-cross-h {
  top: 50%; left: 0; transform: translateY(-50%);
  width: 100%; height: 8px;
  border-radius: 2px;
}
#repairPanel.cooling .rp-icon { opacity: 0.35; }
#repairPanel.active  .rp-icon { opacity: 0.15; }

/* 冷却倒计时数字（圆心） */
.rp-timer {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 700;
  color: #b8f6ff;
  text-shadow: 0 0 10px rgba(0, 220, 255, 0.9);
  display: none;
}
#repairPanel.cooling .rp-timer { display: block; }

/* Q 键提示 */
.rp-key {
  position: absolute;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(0, 210, 255, 0.8);
  letter-spacing: 2px;
  font-weight: bold;
}

/* ===== 主菜单：载具选择 ===== */
#mainMenu .mm-sub { margin-bottom: 30px; }

.mm-section-label {
  color: rgba(136, 168, 204, 0.9);
  font-size: 12px; letter-spacing: 4px;
  margin: 0 0 14px 0;
}
.mm-vehicles + .mm-section-label {
  margin-top: 34px;
}

.mm-vehicles {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
}

.mv-btn {
  width: 200px; padding: 14px 18px;
  background: rgba(15, 25, 40, 0.7);
  border: 1px solid rgba(120, 180, 240, 0.25);
  border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.mv-btn:hover {
  border-color: rgba(255, 204, 0, 0.55);
  background: rgba(30, 45, 65, 0.9);
  transform: translateY(-2px);
}
.mv-btn.selected {
  border-color: #ffcc00;
  background: rgba(40, 55, 75, 0.95);
  box-shadow: 0 0 18px rgba(255, 200, 60, 0.35), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.mv-name {
  color: #ffffff; font-size: 15px; letter-spacing: 3px;
  font-weight: 600; margin-bottom: 4px;
}
.mv-btn.selected .mv-name { color: #ffcc00; }
.mv-desc {
  color: #88a8cc; font-size: 11px; letter-spacing: 1px;
  opacity: 0.8;
}

/* ===== 左下角部件状态面板 ===== */
#statusPanel {
  position: fixed;
  left: 18px;
  bottom: 196px;           /* 位于 #hud 上方，间隔 8px */
  width: 142px;
  box-sizing: border-box;
  padding: 10px 12px;
  background: rgba(9, 15, 19, 0.6);
  border: 1px solid rgba(150, 195, 215, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  user-select: none;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.8);
  z-index: 11;
}

.sp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.sp-row:last-child { margin-bottom: 0; }

.sp-name {
  font-size: 11px;
  letter-spacing: 2px;
  color: #88a8cc;
}

.sp-state {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  transition: color 0.15s linear, text-shadow 0.15s linear;
}

/* ===== 击杀播报 ===== */
#killBanner {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 18px 58px;
  background: linear-gradient(90deg,
    rgba(0, 200, 255, 0) 0%,
    rgba(0, 200, 255, 0.12) 22%,
    rgba(0, 200, 255, 0.12) 78%,
    rgba(0, 200, 255, 0) 100%);
  border-top: 1px solid rgba(0, 210, 255, 0.42);
  border-bottom: 1px solid rgba(0, 210, 255, 0.28);
  font-family: Consolas, "Courier New", monospace;
  pointer-events: none;
  user-select: none;
  z-index: 13;
  opacity: 0;
  visibility: hidden;
  will-change: transform, clip-path;
}

#killBanner.show {
  opacity: 1;
  visibility: visible;
  animation:
    kbShake 0.55s cubic-bezier(0.16, 0.9, 0.32, 1),
    kbSweep 4s linear forwards;
}

@keyframes kbShake {
  0%   {
    transform: translateX(-50%) translate(0, 0) scale(1);
    border-top-color: rgba(220, 250, 255, 1);
    border-bottom-color: rgba(220, 250, 255, 1);
    box-shadow:
      0 0 60px rgba(0, 230, 255, 1),
      0 0 120px rgba(0, 220, 255, 0.7),
      inset 0 0 44px rgba(0, 220, 255, 0.7);
  }
  8%   { transform: translateX(-50%) translate(-14px, 5px) scale(1.09); }
  18%  {
    transform: translateX(-50%) translate(13px, -5px) scale(1.09);
    box-shadow:
      0 0 80px rgba(0, 240, 255, 1),
      0 0 160px rgba(0, 220, 255, 0.85),
      inset 0 0 56px rgba(0, 230, 255, 0.85);
  }
  30%  {
    transform: translateX(-50%) translate(-10px, 4px) scale(1.07);
  }
  42%  {
    transform: translateX(-50%) translate(9px, -3px) scale(1.06);
    box-shadow:
      0 0 48px rgba(0, 220, 255, 0.95),
      0 0 100px rgba(0, 220, 255, 0.6),
      inset 0 0 32px rgba(0, 220, 255, 0.55);
  }
  56%  {
    transform: translateX(-50%) translate(-6px, 2px) scale(1.045);
  }
  70%  {
    transform: translateX(-50%) translate(5px, -2px) scale(1.03);
    box-shadow:
      0 0 28px rgba(0, 220, 255, 0.7),
      0 0 60px rgba(0, 220, 255, 0.35),
      inset 0 0 18px rgba(0, 220, 255, 0.3);
  }
  84%  {
    transform: translateX(-50%) translate(-3px, 1px) scale(1.015);
  }
  94%  {
    transform: translateX(-50%) translate(2px, -1px) scale(1.005);
    box-shadow:
      0 0 12px rgba(0, 220, 255, 0.35),
      inset 0 0 6px rgba(0, 220, 255, 0.12);
  }
  100% {
    transform: translateX(-50%) translate(0, 0) scale(1);
    border-top-color: rgba(0, 210, 255, 0.42);
    border-bottom-color: rgba(0, 210, 255, 0.28);
    box-shadow: none;
  }
}

/* 从右到左扫除（4秒全透明） */
@keyframes kbSweep {
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(0 100% 0 0); }
}

/* 中间文字 */
.kb-text {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #ffffff;
  white-space: nowrap;
  text-shadow:
    0 0 14px rgba(0, 230, 255, 1),
    0 0 32px rgba(0, 220, 255, 0.65),
    0 0 60px rgba(0, 220, 255, 0.35);
}
#kbNum {
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(0, 230, 255, 1),
    0 0 40px rgba(0, 220, 255, 0.75),
    0 0 80px rgba(0, 220, 255, 0.4);
}

/* 左：车轮撞击 */
.kb-icon {
  flex-shrink: 0;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(0, 230, 255, 1))
          drop-shadow(0 0 20px rgba(0, 220, 255, 0.5));
}
.kb-icon-wheel {
  width: 38px;
  height: 38px;
}
.kb-icon-wheel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #b8f6ff;
  box-sizing: border-box;
  background: radial-gradient(circle,
    transparent 40%,
    rgba(0, 220, 255, 0.16) 40%,
    rgba(0, 220, 255, 0.16) 70%,
    transparent 70%);
}
.kb-icon-wheel::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #b8f6ff;
}

/* 右：骷髅 */
.kb-icon-skull {
  width: 34px;
  height: 38px;
}
.kb-icon-skull::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 28px;
  background: #b8f6ff;
  border-radius: 16px 16px 7px 7px;
}
.kb-icon-skull::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 23px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #05050a 3.7px, transparent 4.1px),
    radial-gradient(circle at 18px 5px, #05050a 3.7px, transparent 4.1px);
}

/* ===== 排行榜 UI ===== */
.mm-leaderboard {
  margin-top: 40px;
  width: 600px;
  background: rgba(15, 25, 40, 0.7);
  border: 1px solid rgba(120, 180, 240, 0.25);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.ml-title {
  text-align: center;
  color: #88a8cc;
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.ml-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.ml-tab {
  padding: 6px 16px;
  font-size: 13px;
  color: #88a8cc;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}
.ml-tab:hover { color: #fff; background: rgba(255,255,255,0.05); }
.ml-tab.selected { color: #ffcc00; font-weight: bold; background: rgba(255, 200, 60, 0.1); }

.ml-list { max-height: 200px; overflow-y: auto; }
.ml-empty { text-align: center; color: #5a6a7a; font-size: 12px; padding: 20px 0; }
.ml-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(120, 180, 240, 0.1);
  font-size: 13px;
}
.ml-row:last-child { border-bottom: none; }
.ml-rank { width: 40px; color: #88a8cc; font-weight: bold; font-style: italic; }
.ml-rank.top1 { color: #ffcc00; }
.ml-rank.top2 { color: #c0c0c0; }
.ml-rank.top3 { color: #cd7f32; }
.ml-name { flex: 1; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-stat { width: 80px; text-align: right; color: #88a8cc; font-size: 11px; }
.ml-stat strong { color: #ffcc00; font-size: 14px; }

/* ===== 结算数据 ===== */
.death-stats {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 90, 74, 0.2);
}
.ds-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #a0a0a0;
  width: 240px;
}
.ds-row:last-child { margin-bottom: 0; }
.ds-row span:last-child { color: #fff; font-weight: bold; font-size: 16px; }
.ds-row.ds-history { margin-top: 12px; font-size: 12px; opacity: 0.8; }
.ds-row.ds-history span:last-child { font-size: 14px; }


/* ===== 主菜单右上角联网状态 ===== */
.mm-top-status {
  position: absolute;
  top: 24px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: #88a8cc;
  font-size: 13px;
  letter-spacing: 1px;
  font-family: Consolas, monospace;
  z-index: 10;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 15, 25, 0.6);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(120, 180, 240, 0.2);
}
.status-item strong {
  color: #00d2ff;
  font-size: 14px;
  display: inline-block;
  min-width: 24px;
  text-align: right;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* 数字跳动动画 */
.count-update {
  animation: countPop 0.3s ease-out;
}
@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); color: #ffffff; text-shadow: 0 0 8px #00d2ff; }
  100% { transform: scale(1); }
}

/* ===== 意见箱系统 ===== */
.feedback-btn {
  position: absolute;
  top: 24px;
  left: 30px;
  padding: 8px 18px;
  background: rgba(10, 15, 25, 0.6);
  border: 1px solid rgba(120, 180, 240, 0.25);
  border-radius: 20px;
  color: #88a8cc;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  font-family: Consolas, monospace;
}
.feedback-btn:hover {
  color: #00d2ff;
  border-color: #00d2ff;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.3);
}

.fb-modal {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999;
}
.fb-modal.show { display: flex; }

.fb-modal-content {
  width: 480px;
  background: rgba(15, 25, 40, 0.95);
  border: 1px solid rgba(120, 180, 240, 0.4);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.fb-modal-title {
  color: #00d2ff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
}

.fb-modal textarea {
  width: 100%;
  height: 130px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(120, 180, 240, 0.3);
  border-radius: 8px;
  color: #fff;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.fb-modal textarea:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.fb-error {
  color: #ff5a4a;
  font-size: 12px;
  height: 18px;
  margin-top: 8px;
}

.fb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.fb-actions button {
  padding: 8px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.fb-actions button:first-child {
  background: transparent;
  border: 1px solid rgba(120, 180, 240, 0.3);
  color: #88a8cc;
}
.fb-actions button:first-child:hover {
  border-color: #88a8cc;
  color: #fff;
}
.fb-actions button:last-child {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid #00d2ff;
  color: #00d2ff;
}
.fb-actions button:last-child:hover {
  background: rgba(0, 210, 255, 0.2);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.4);
}
.fb-actions button:last-child:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fb-list {
  max-height: 320px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(120, 180, 240, 0.2);
  border-radius: 8px;
  padding: 12px;
}
.fb-item {
  border-bottom: 1px solid rgba(120, 180, 240, 0.1);
  padding: 10px 0;
}
.fb-item:last-child { border-bottom: none; padding-bottom: 0; }
.fb-item-head {
  display: flex; justify-content: space-between;
  color: #88a8cc; font-size: 12px; margin-bottom: 6px;
}
.fb-item-name {
  color: #00d2ff; font-weight: bold;
}
.fb-item-content {
  color: #d0e4f0; font-size: 13px; line-height: 1.5; word-break: break-all;
}
.fb-empty {
  text-align: center; color: #5a6a7a; font-size: 13px; padding: 20px 0;
}

/* ===== 账号信息面板 ===== */
.account-panel {
  position: absolute;
  top: 68px; /* 位于意见箱按钮下方 */
  left: 30px;
  width: 145px;
  padding: 10px 14px;
  background: rgba(10, 15, 25, 0.6);
  border: 1px solid rgba(120, 180, 240, 0.25);
  border-radius: 8px;
  z-index: 10;
  font-family: Consolas, monospace;
  pointer-events: none; /* 避免挡住鼠标点击 */
  transition: all 0.2s;
}

.account-panel .ap-name {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.account-panel .ap-role {
  font-size: 11px;
  color: #88a8cc;
  letter-spacing: 1px;
  transition: color 0.2s;
}

/* 离线状态（红字） */
.account-panel.offline .ap-name {
  color: #ff5a4a;
  text-shadow: 0 0 8px rgba(255, 90, 74, 0.4);
}
.account-panel.offline {
  border-color: rgba(255, 90, 74, 0.3);
}

/* 在线状态（正常白字） */
.account-panel:not(.offline) .ap-name {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ===== 载具改装占位按钮 ===== */
.mod-btn {
  position: absolute;
  right: 8%; /* 调整这个百分比可以控制左右位置 */
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  padding: 30px 20px;
  background: rgba(15, 25, 40, 0.5);
  border: 1px solid rgba(120, 180, 240, 0.15);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mod-btn.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(1);
}

.mod-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #6b7280;
}

.mod-icon svg {
  width: 100%;
  height: 100%;
}

.mod-title {
  color: #9ca3af;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.mod-desc {
  color: #6b7280;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ===== 版本号 ===== */
.version-tag {
  position: absolute;
  left: 30px;
  bottom: 24px;
  color: #4b5563;
  font-size: 12px;
  font-family: Consolas, monospace;
  letter-spacing: 1px;
  user-select: none;
  pointer-events: none;
}