/* =============================================================================
 * style.css —— 军事航电风 UI：玻璃面板 + 细描边 + 无实心黑框
 * ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --uiK: 1.2;             /* DOM HUD 缩放（JS 每帧按视口写入，和画布 HUD 同一套系数） */
  --t0: #4db6ff;          /* 蓝队 */
  --t1: #ff6b5b;          /* 红队 */
  --ink: #e8f4ff;
  --dim: #9fb9cd;
  --warn: #ffd166;
  --bad: #ff5555;
  --line: rgba(140, 200, 255, .22);
  --glass: linear-gradient(180deg, rgba(10, 26, 40, .58), rgba(6, 16, 26, .34));
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --sans: "Barlow", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #07121c;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

canvas { display: block; position: fixed; inset: 0; width: 100%; height: 100%; }
#scene { z-index: 1; }
#hud   { z-index: 2; pointer-events: none; }

#ui {
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .45s ease-out;
}
body.playing #ui { opacity: 1; }

/* =============================================================================
 * 顶部对局信息条
 * ========================================================================== */
#topbar {
  position: absolute; left: 50%;
  top: max(var(--sa-top, 0px), env(safe-area-inset-top, 0px));
  transform: translateX(-50%) scale(var(--uiK));
  transform-origin: top center;
  display: flex; align-items: stretch; gap: 0;
  padding: 0; height: 46px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));
}
.tside {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-top: 0;
  backdrop-filter: blur(10px) saturate(120%);
}
.tside.t0 { border-right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.tside.t1 { border-left: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.tside.t0 { box-shadow: inset 0 2px 0 rgba(77, 182, 255, .55); }
.tside.t1 { box-shadow: inset 0 2px 0 rgba(255, 107, 91, .55); }
.tname {
  font-size: 12px; letter-spacing: 3px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.t0 .tname { color: var(--t0); }
.t1 .tname { color: var(--t1); }
.dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.tscore {
  font-family: var(--mono);
  font-size: 26px; font-weight: 700; line-height: 1;
  min-width: 46px; text-align: center;
  text-shadow: 0 0 14px currentColor;
}
.t0 .tscore { color: #cfe9ff; }
.t1 .tscore { color: #ffd9d3; }

.tcenter {
  min-width: 210px; padding: 6px 18px 8px;
  background: linear-gradient(180deg, rgba(8, 22, 36, .66), rgba(6, 14, 24, .38));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
}
.tcenter .row1 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.tcenter .obj { font-size: 11px; letter-spacing: 1.5px; color: var(--dim); }
.tcenter .obj b { color: #fff; font-family: var(--mono); }
.tcenter .clock {
  font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: 1px;
  color: #fff; text-shadow: 0 0 12px rgba(160, 220, 255, .55);
}
.tcenter .clock.low { color: var(--warn); text-shadow: 0 0 14px rgba(255, 209, 102, .6); }
.progress {
  height: 3px; border-radius: 2px; overflow: hidden;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .5);
}
.progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--t0), #9fe6ff 55%, var(--t1));
  box-shadow: 0 0 10px rgba(120, 200, 255, .8);
  transition: width .4s ease-out;
}

/* =============================================================================
 * 击杀信息
 * ========================================================================== */
#killfeed {
  position: absolute; top: 60px; right: 18px;
  transform: scale(var(--uiK)); transform-origin: top right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
  max-width: 46vw;
}
#killfeed .row {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 9px;
  font-size: 12.5px; line-height: 1.45; letter-spacing: .3px;
  color: #dceaf7;
  background: linear-gradient(270deg, rgba(8, 20, 32, .62), rgba(8, 20, 32, .16));
  border-right: 2px solid rgba(140, 200, 255, .55);
  border-radius: 2px 0 0 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  animation: kfIn .22s ease-out both;
  transition: opacity .5s;
}
@keyframes kfIn { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
#killfeed .row.fade { opacity: .3; }
#killfeed .row.mine { border-right-color: var(--warn); background: linear-gradient(270deg, rgba(60, 40, 10, .62), rgba(8, 20, 32, .16)); }
#killfeed .n0 { color: var(--t0); font-weight: 700; }
#killfeed .n1 { color: var(--t1); font-weight: 700; }
#killfeed .w { color: var(--warn); font-weight: 600; }
#killfeed .sys { color: #9fd8ff; font-style: italic; opacity: .9; }
#killfeed .ico {
  display: inline-block; width: 14px; text-align: center;
  color: rgba(200, 230, 255, .8); font-size: 11px;
}

/* =============================================================================
 * 中央提示
 * ========================================================================== */
#centermsg {
  position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; font-size: 27px; font-weight: 800; letter-spacing: 5px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .95), 0 0 34px rgba(90, 180, 255, .55);
  opacity: 0; transition: opacity .18s;
}
#centermsg.show { opacity: 1; }

/* =============================================================================
 * 排行榜
 * ========================================================================== */
#board {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 620px; max-width: 94vw;
  padding: 18px 22px 20px;
  display: none;
  background: linear-gradient(180deg, rgba(9, 22, 36, .82), rgba(6, 14, 24, .72));
  border: 1px solid var(--line);
  border-top: 2px solid rgba(120, 200, 255, .55);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), inset 0 0 60px rgba(70, 150, 255, .05);
  backdrop-filter: blur(12px);
  font-size: 13px;
}
#board.show { display: block; }
#board h3 {
  font-size: 12px; font-weight: 600; letter-spacing: 4px;
  color: var(--dim); text-align: center; margin-bottom: 14px;
}
#board table { width: 100%; border-collapse: collapse; }
#board thead th {
  font-size: 10.5px; font-weight: 600; letter-spacing: 2px;
  color: rgba(160, 195, 220, .75);
  text-align: right; padding: 0 10px 7px;
  border-bottom: 1px solid rgba(140, 200, 255, .16);
}
#board thead th.l { text-align: left; }
#board tr.row td { padding: 5px 10px; border-bottom: 1px solid rgba(255, 255, 255, .045); }
#board td.name { text-align: left; letter-spacing: .5px; }
#board td.num { text-align: right; font-family: var(--mono); color: #cfe2f2; }
#board tr.t0 td.name { color: var(--t0); }
#board tr.t1 td.name { color: var(--t1); }
#board tr.me td { background: rgba(120, 200, 255, .09); font-weight: 700; }
#board tr.me td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
#board .teamHead td {
  padding: 12px 10px 4px;
  font-size: 10.5px; letter-spacing: 3px; font-weight: 700;
  color: rgba(200, 225, 245, .8);
}
#board .teamHead.t0 td { color: var(--t0); }
#board .teamHead.t1 td { color: var(--t1); }
#board .teamHead td span { float: right; letter-spacing: 1px; opacity: .85; font-family: var(--mono); }

/* =============================================================================
 * 帮助（键位）
 * ========================================================================== */
#help {
  position: absolute; left: 18px; top: 108px;
  transform: scale(calc(var(--uiK) * 0.78)); transform-origin: top left;
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px 12px;
  font-size: 10.5px; color: rgba(210, 232, 248, .78);
  background: linear-gradient(180deg, rgba(8, 20, 32, .42), rgba(8, 20, 32, .16));
  border-left: 2px solid rgba(120, 190, 255, .45);
  border-radius: 2px;
  backdrop-filter: blur(4px);
  transition: opacity .45s;
}
#help.hidden { opacity: 0; }
#help .hrow { display: flex; align-items: center; gap: 5px; }
#help em { font-style: normal; color: rgba(170, 205, 230, .72); margin-right: 6px; letter-spacing: .5px; }
#helpHint {
  position: absolute; left: 18px; top: 108px;
  transform: scale(calc(var(--uiK) * 0.85)); transform-origin: top left;
  font-size: 10px; letter-spacing: 1px; color: rgba(190, 225, 255, .4);
  text-shadow: 0 0 6px rgba(0, 0, 0, .9);
}
#helpHint.hidden { display: none; }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: #dff0ff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid rgba(160, 210, 245, .38);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.kbd.wide { min-width: 34px; }

/* =============================================================================
 * 遮罩：加入 / 结算
 * ========================================================================== */
#menu, #endcard {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(10, 30, 50, .04), rgba(4, 10, 18, .34) 88%),
    linear-gradient(180deg, rgba(4, 10, 18, .10), rgba(4, 10, 18, .26));
  backdrop-filter: blur(5px);
}
#menu.hidden, #endcard.hidden { display: none; }

.menuWrap {
  position: relative;
  width: 560px; max-width: 92vw;
  padding: 34px 42px 30px;
  text-align: center;
  border: 1px solid rgba(120, 190, 255, .22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(12, 28, 44, .72), rgba(7, 16, 26, .82));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(160, 215, 255, .16),
    0 0 0 1px rgba(0, 0, 0, .3);
}
/* 四角准星装饰 */
.menuWrap::before, .menuWrap::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 1px solid rgba(120, 200, 255, .5);
}
.menuWrap::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.menuWrap::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.brand { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 4px; }
.brandLine { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(120, 200, 255, .55)); }
.brandLine:last-child { background: linear-gradient(90deg, rgba(120, 200, 255, .55), transparent); }
.menuWrap h1 {
  font-size: 30px; letter-spacing: 7px; font-weight: 800; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff, #9ed4ff 70%, #5aa9e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(80, 170, 255, .45));
}
.brandSub {
  font-size: 11px; letter-spacing: 8px; color: rgba(180, 215, 240, .7);
  margin: 6px 0 2px;
}
.menuWrap .sub {
  font-size: 11.5px; line-height: 1.8; letter-spacing: .4px;
  color: rgba(175, 205, 228, .78);
  margin: 10px 0 22px;
}

.joinRow { display: flex; align-items: flex-end; gap: 10px; }
.field { flex: 1; text-align: left; }
.field label {
  display: block; font-size: 10px; letter-spacing: 3px;
  color: rgba(160, 200, 230, .8); margin-bottom: 6px;
}
.menuWrap input {
  width: 100%; padding: 11px 13px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 1px;
  color: #eaf6ff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(140, 200, 255, .3);
  border-radius: 3px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.menuWrap input::placeholder { color: rgba(160, 195, 220, .45); }
.menuWrap input:focus {
  border-color: rgba(110, 200, 255, .85);
  box-shadow: 0 0 0 3px rgba(80, 170, 255, .14), inset 0 0 20px rgba(80, 170, 255, .08);
}
.menuWrap button {
  padding: 12px 26px; height: 42px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 4px;
  color: #04121e; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #86dcff, #39a8ef 60%, #2b8ed4);
  border: 1px solid rgba(190, 235, 255, .8);
  border-radius: 3px;
  box-shadow: 0 6px 22px rgba(50, 150, 235, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .1s, filter .15s;
}
.menuWrap button:hover { filter: brightness(1.1); }
.menuWrap button:active { transform: translateY(1px); }
/* 画质档位 */
.qRow {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 8px 10px;
  border: 1px solid rgba(110, 170, 215, .22);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(16, 40, 62, .55), rgba(10, 26, 42, .55));
}
.qRow label {
  font-size: 10px; letter-spacing: 3px; color: rgba(160, 200, 230, .8);
  white-space: nowrap;
}
.qRow select {
  flex: 1; min-width: 0;
  background: rgba(8, 22, 36, .9);
  color: #cfe9ff;
  border: 1px solid rgba(110, 175, 225, .3);
  border-radius: 4px;
  padding: 5px 8px;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .4px;
  outline: none; cursor: pointer;
}
.qRow select:focus { border-color: rgba(120, 200, 255, .7); }
.qRow select option { background: #0b1c2c; color: #cfe9ff; }
/* 鼠标灵敏度滑杆：跟画质行同一套视觉，滑轨用青色渐变 */
#sensRange {
  flex: 1; min-width: 0; height: 16px;
  -webkit-appearance: none; appearance: none;
  background: transparent; outline: none; cursor: pointer;
}
#sensRange::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(90, 170, 225, .35), rgba(120, 220, 255, .75));
  border: 1px solid rgba(110, 175, 225, .3);
}
#sensRange::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; margin-top: -5px;
  border-radius: 50%; border: 1px solid rgba(150, 230, 255, .9);
  background: radial-gradient(circle at 35% 30%, #dff4ff, #5fb8e8 60%, #2a6c99);
  box-shadow: 0 0 6px rgba(110, 210, 255, .55);
}
#sensRange::-moz-range-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(90, 170, 225, .35), rgba(120, 220, 255, .75));
}
#sensRange::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(150, 230, 255, .9);
  background: radial-gradient(circle at 35% 30%, #dff4ff, #5fb8e8 60%, #2a6c99);
}
#sensVal {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px;
  color: rgba(170, 215, 240, .85); min-width: 38px; text-align: right;
}
#qHint {
  font-size: 9.5px; letter-spacing: .5px; color: rgba(150, 190, 215, .45);
  font-family: var(--mono); white-space: nowrap;
}

#menuTip {
  margin-top: 10px; font-size: 10.5px; letter-spacing: .5px;
  color: rgba(160, 195, 220, .6); min-height: 14px;
}

.ctlGrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(140, 200, 255, .14);
  font-size: 11px;
}
.ctlGrid > div {
  display: flex; align-items: center; gap: 5px;
  color: rgba(180, 210, 232, .8);
}
.ctlGrid em { font-style: normal; margin-left: 4px; letter-spacing: .4px; }

.legend {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid rgba(140, 200, 255, .14);
  font-size: 11px; letter-spacing: 1px;
}
.legend .t0 { color: var(--t0); display: inline-flex; align-items: center; gap: 6px; }
.legend .t1 { color: var(--t1); display: inline-flex; align-items: center; gap: 6px; }
.legend .ver { margin-left: auto; color: rgba(150, 185, 210, .45); font-family: var(--mono); font-size: 10px; }

/* ---------- 结算 ---------- */
.menuWrap.end { width: 520px; }
.endTag {
  font-size: 9.5px; letter-spacing: 6px; color: rgba(150, 190, 220, .55);
  margin-bottom: 8px;
}
.menuWrap h2 {
  font-size: 26px; letter-spacing: 5px; font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 0 26px currentColor;
}
#endBody { font-size: 13px; line-height: 1.9; margin-top: 14px; }
#endBody .score { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 18px; }
#endBody .score b { font-family: var(--mono); font-size: 40px; line-height: 1; letter-spacing: 2px; }
#endBody .score .s0 { color: var(--t0); text-shadow: 0 0 24px rgba(77, 182, 255, .6); }
#endBody .score .s1 { color: var(--t1); text-shadow: 0 0 24px rgba(255, 107, 91, .6); }
#endBody .score .sep { color: rgba(180, 215, 240, .5); font-size: 22px; }
#endBody table { width: 100%; border-collapse: collapse; }
#endBody tr { border-bottom: 1px solid rgba(255, 255, 255, .05); }
#endBody td { padding: 6px 8px; font-size: 12.5px; }
#endBody td.name { text-align: left; }
#endBody td.num { text-align: right; font-family: var(--mono); color: #cfe2f2; }
#endBody tr.t0 td.name { color: var(--t0); }
#endBody tr.t1 td.name { color: var(--t1); }
#endBar {
  height: 2px; margin: 18px 0 10px; border-radius: 2px;
  background: rgba(255, 255, 255, .1); overflow: hidden;
}
#endBar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--t0), var(--t1));
  animation: endBar var(--reset, 10s) linear forwards;
}
@keyframes endBar { from { width: 100%; } to { width: 0%; } }
#endTip { font-size: 10.5px; letter-spacing: 2px; color: rgba(160, 195, 220, .6); }

/* =============================================================================
 * 移动端触控
 * ========================================================================== */
/* 触控层必须自己按安全区内缩：#ui 上的 padding 只影响普通流，
   而 #touch 是 absolute inset:0，会铺满整个 padding box —— 之前摇杆/按钮
   直接贴着屏幕圆角和底部指示条，真机上看着就是「显示不全」。 */
#touch {
  position: absolute;
  top: max(var(--sa-top, 0px), env(safe-area-inset-top, 0px));
  right: max(var(--sa-right, 0px), env(safe-area-inset-right, 0px));
  bottom: max(var(--sa-bottom, 0px), env(safe-area-inset-bottom, 0px));
  left: max(var(--sa-left, 0px), env(safe-area-inset-left, 0px));
  pointer-events: none;
}
#touch.hidden { display: none; }
#stick {
  position: absolute; left: 18px; bottom: 18px;
  width: 132px; height: 132px; border-radius: 50%;
  border: 1px solid rgba(150, 210, 255, .35);
  background: radial-gradient(circle, rgba(120, 190, 255, .10), rgba(120, 190, 255, .02));
  pointer-events: auto; touch-action: none;
}
#stickKnob {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px;
  margin: -26px 0 0 -26px; border-radius: 50%;
  border: 1px solid rgba(200, 235, 255, .65);
  background: rgba(120, 190, 255, .22);
  box-shadow: 0 0 18px rgba(90, 180, 255, .35);
}
#tbtns {
  position: absolute; right: 14px; bottom: 16px;
  display: grid; grid-template-columns: repeat(3, 72px); gap: 8px;
  pointer-events: auto;
}
#tbtns .tb {
  padding: 12px 0; font-family: var(--sans); font-size: 12px; letter-spacing: 1px;
  color: #eaf6ff;
  background: rgba(120, 190, 255, .10);
  border: 1px solid rgba(150, 210, 255, .38); border-radius: 6px;
}
#tbtns .tb.on { background: rgba(255, 190, 90, .26); border-color: var(--warn); }
#thrWrap {
  position: absolute; left: 166px; bottom: 18px;
  width: 40px; height: 132px;
  border: 1px solid rgba(150, 210, 255, .35); border-radius: 6px;
  overflow: hidden; pointer-events: auto; touch-action: none;
}
#thrWrap span {
  position: absolute; bottom: 3px; width: 100%; text-align: center;
  font-size: 9px; opacity: .8; z-index: 2; text-shadow: 0 0 4px #000;
}
#thrFill {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, rgba(255, 180, 90, .55), rgba(255, 120, 60, .3));
}

@media (max-width: 900px) {
  #help { display: none; }
  #topbar { height: 40px; }
  .tscore { font-size: 21px; }
  .tcenter { min-width: 168px; }
  #killfeed { font-size: 11.5px; max-width: 60vw; }
  #board { padding: 14px 14px 16px; font-size: 11.5px; }
  .menuWrap { padding: 26px 22px 24px; }
  .menuWrap h1 { font-size: 22px; letter-spacing: 4px; }
  .ctlGrid { grid-template-columns: 1fr; }
}

/* === 兵种选择 === */
.vehSel { margin: 14px 0 18px; text-align: left; }
.vsTitle {
  font-size: 10px; letter-spacing: 3px;
  color: rgba(160, 200, 230, .8); margin-bottom: 8px;
}
.vsGrid { display: flex; gap: 7px; flex-wrap: wrap; }
.vcard {
  flex: 1 1 0; min-width: 96px;
  padding: 9px 6px 8px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(140, 200, 255, .22);
  border-radius: 4px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: border-color .12s, background .12s, transform .12s;
  font-family: var(--sans);
}
.vcard:hover { border-color: rgba(110, 200, 255, .6); background: rgba(90,170,255,.07); transform: translateY(-2px); }
.vcard.sel {
  border-color: rgba(120, 255, 200, .85);
  background: rgba(70, 220, 160, .10);
  box-shadow: 0 0 0 2px rgba(80, 220, 170, .16), inset 0 0 18px rgba(80,220,170,.06);
}
.vcard .vIcon { font-size: 17px; line-height: 1; color: rgba(190, 230, 255, .9); }
.vcard.sel .vIcon { color: rgba(140, 255, 210, 1); }
.vcard .vName { font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; color: #dff2ff; }
.vcard .vDesc { font-size: 8.5px; letter-spacing: .5px; color: rgba(160, 200, 230, .62); }
.vcard.sel .vDesc { color: rgba(150, 235, 200, .85); }

/* 帮助面板：飞机 / 战舰两套键位，按兵种切换显示 */
#helpAir.hidden, #helpShip.hidden { display: none; }

/* =============================================================================
 * B站 Toy 版：安全区 / 呼号牌 / 结算操作 / 王牌榜 / 战绩海报 / 提示条
 * ========================================================================== */

/* 安全区：容器状态变化时由 toy-bridge 写入 --sa-* */
#ui { padding: var(--sa-top, 0px) var(--sa-right, 0px) var(--sa-bottom, 0px) var(--sa-left, 0px); }
#menu, #endcard { padding: var(--sa-top, 0px) var(--sa-right, 0px) var(--sa-bottom, 0px) var(--sa-left, 0px); }

#menu .menuWrap, #endcard .menuWrap {
  max-height: 94vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 呼号牌：B站头像 + 昵称 */
.toyPilot {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 10px auto 0; padding: 4px 12px 4px 4px;
  border: 1px solid rgba(140, 200, 255, .22);
  border-radius: 999px;
  background: rgba(10, 30, 48, .55);
  font-size: 12px; letter-spacing: 1px;
  color: #dff2ff;
}
.toyPilot.hidden { display: none; }
.toyPilot img {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; border: 1px solid rgba(160, 220, 255, .45);
}

/* 次级按钮（王牌榜 / 海报） */
.menuWrap button.ghostBtn, .toyCard button.toyBtn.ghost {
  background: rgba(255, 255, 255, .04);
  color: #cfe9ff;
  border: 1px solid rgba(140, 200, 255, .4);
  box-shadow: none;
}
.menuWrap button.ghostBtn:hover { background: rgba(120, 200, 255, .12); }
.menuWrap button.small { padding: 0 14px; height: 30px; font-size: 11px; letter-spacing: 2px; }

/* 结算按钮组 */
.endActs { display: flex; gap: 8px; margin-top: 16px; }
.endActs button {
  flex: 1; height: 38px; padding: 0 8px;
  font-size: 12px; letter-spacing: 2px;
}
.endActs button.primary {
  background: linear-gradient(180deg, #86dcff, #39a8ef 60%, #2b8ed4);
  color: #04121e; border-color: rgba(190, 235, 255, .8);
}

/* ============================ 弹层（榜单 / 海报） ============================ */
.toyModal {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: calc(8px + var(--sa-top, 0px)) calc(8px + var(--sa-right, 0px)) calc(8px + var(--sa-bottom, 0px)) calc(8px + var(--sa-left, 0px));
  background: radial-gradient(circle at 50% 40%, rgba(6, 18, 30, .55), rgba(2, 8, 14, .82));
  backdrop-filter: blur(7px);
}
.toyModal.hidden { display: none; }

.toyCard {
  width: 520px; max-width: 94vw; max-height: 92vh;
  display: flex; flex-direction: column;
  padding: 16px 18px 14px;
  border: 1px solid rgba(120, 190, 255, .26);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(12, 28, 44, .94), rgba(6, 14, 24, .96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(160, 215, 255, .14);
}
.toyCard.narrow { width: 380px; }

.toyHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toyHead h3 {
  font-size: 14px; letter-spacing: 6px; font-weight: 800;
  color: #e8f4ff; text-shadow: 0 0 18px rgba(90, 190, 255, .5);
}
.toyX {
  width: 28px; height: 28px; padding: 0;
  background: transparent; border: 1px solid rgba(140, 200, 255, .3);
  border-radius: 4px; color: #bcd8ee; font-size: 12px; cursor: pointer;
}
.toyX:active { transform: translateY(1px); }

.toyTabRow { display: flex; gap: 6px; margin-bottom: 10px; }
.toyTabGap { flex: 1; }
.toyTab {
  padding: 4px 12px; font-size: 11px; letter-spacing: 1.5px;
  color: rgba(190, 220, 240, .72);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(130, 190, 235, .22);
  border-radius: 999px; cursor: pointer;
}
.toyTab.on {
  color: #04121e; font-weight: 700;
  background: linear-gradient(180deg, #9ee6ff, #4fb2ee);
  border-color: rgba(200, 240, 255, .9);
}

.toyList { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; }
.toyEmpty { padding: 34px 0; text-align: center; font-size: 12px; color: rgba(170, 205, 230, .55); }

.toyRow {
  display: grid; grid-template-columns: 34px 26px 1fr auto;
  align-items: center; gap: 9px;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 12.5px;
}
.toyRow.me { background: rgba(90, 190, 255, .09); }
.toyNo {
  font-family: var(--mono); font-size: 13px; text-align: center;
  color: rgba(170, 205, 230, .7);
}
.toyRow.top1 .toyNo { color: #ffd166; text-shadow: 0 0 12px rgba(255, 209, 102, .7); font-weight: 700; }
.toyRow.top2 .toyNo { color: #d6e6f5; }
.toyRow.top3 .toyNo { color: #e0a273; }
.toyAv { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.toyAv.ph { background: rgba(120, 180, 225, .18); display: inline-block; }
.toyName {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #dceefc;
}
.toySc { font-family: var(--mono); font-size: 13px; color: #9fe0ff; }
.toyMine {
  margin-top: 10px; padding-top: 9px;
  border-top: 1px solid rgba(140, 200, 255, .16);
  font-size: 11.5px; letter-spacing: .5px; color: rgba(175, 210, 235, .8);
}
.toyMine b { color: #ffd166; font-family: var(--mono); font-size: 13px; }

/* 海报 */
.toyPosterWrap { flex: 1; overflow: auto; text-align: center; }
.toyPosterWrap img { max-width: 100%; max-height: 62vh; border-radius: 4px; display: block; margin: 0 auto; }
.toyBtnRow { display: flex; gap: 8px; margin-top: 12px; }
.toyBtn {
  flex: 1; height: 38px; padding: 0 10px;
  font-size: 12px; letter-spacing: 2px; font-weight: 700;
  color: #04121e; cursor: pointer;
  background: linear-gradient(180deg, #86dcff, #39a8ef 60%, #2b8ed4);
  border: 1px solid rgba(190, 235, 255, .8); border-radius: 3px;
}
.toyBtn:active { transform: translateY(1px); }

/* 提示条 */
#toyToast {
  position: fixed; left: 50%; bottom: 12%;
  transform: translate(-50%, 12px);
  padding: 9px 18px;
  font-size: 12px; letter-spacing: 1px; color: #eaf6ff;
  background: rgba(8, 24, 38, .88);
  border: 1px solid rgba(140, 200, 255, .3);
  border-radius: 999px;
  opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity .2s, transform .2s;
  max-width: 80vw; text-align: center;
}
#toyToast.show { opacity: 1; transform: translate(-50%, 0); }

/* 暂停按钮（仅触控布局显示） */
#pauseBtn {
  position: absolute; top: 54px; right: 12px;
  width: 40px; height: 40px; padding: 0;
  pointer-events: auto; touch-action: manipulation;
  font-size: 12px; color: rgba(200, 232, 255, .85);
  background: rgba(10, 26, 40, .5);
  border: 1px solid rgba(140, 200, 255, .25); border-radius: 6px;
  backdrop-filter: blur(6px);
}

/* ======================= 矮屏（手机横屏）紧凑布局 ======================= */
@media (max-height: 560px) {
  #help { display: none; }
  .menuWrap { padding: 14px 18px 12px; max-height: 96vh; }
  .menuWrap .brand h1 { font-size: 19px; letter-spacing: 4px; }
  .menuWrap .brandSub { font-size: 10px; letter-spacing: 6px; }
  .menuWrap .sub { display: none; }
  .menuWrap h1 { margin-bottom: 2px; }
  .vehSel { margin: 8px 0 10px; }
  .vcard { padding: 6px 5px 5px; min-width: 78px; }
  .vcard .vIcon { font-size: 14px; }
  .vcard .vName { font-size: 10.5px; }
  .vcard .vDesc { display: none; }
  .qRow { margin-top: 7px; padding: 5px 8px; }
  .ctlGrid { display: none; }
  .joinRow { margin-top: 8px; }
  .menuWrap input { padding: 8px 10px; }
  .menuWrap button { height: 36px; padding: 0 18px; font-size: 12.5px; }
  .legend { margin-top: 10px; padding-top: 8px; }
  #menuTip { margin-top: 6px; }
  .toyPilot { margin-top: 6px; }
  .toyCard { padding: 12px 14px 10px; }
  .toyPosterWrap img { max-height: 54vh; }
}

/* =============================================================================
 * 菜单精修：去掉高饱和大色块，改成"暗漆面板 + 细描边 + 一点冷光"
 * ========================================================================== */

/* ---- 面板与标题 ---- */
.menuWrap {
  border-color: rgba(120, 175, 215, .20);
  background:
    linear-gradient(180deg, rgba(13, 27, 41, .86), rgba(7, 15, 25, .92));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .62),
    inset 0 1px 0 rgba(175, 220, 255, .12);
}
.menuWrap::before { border-color: rgba(130, 190, 230, .22); }
.brand { gap: 12px; }
.menuWrap h1 {
  font-size: 26px; letter-spacing: 6px; font-weight: 700;
  background: linear-gradient(180deg, #f4fbff, #c3e4f8 62%, #7fb2cf);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 16px rgba(90, 170, 225, .28));
}
.brandSub { font-size: 10px; letter-spacing: 7px; color: rgba(160, 195, 220, .55); }
.menuWrap .sub { font-size: 11px; color: rgba(160, 190, 215, .62); margin: 10px 0 20px; }

/* ---- 分区小标题：一条细线拉到右边 ---- */
.vsTitle {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 4px; color: rgba(150, 190, 220, .55);
  margin-bottom: 10px;
}
.vsTitle::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(120, 170, 210, .25), rgba(120, 170, 210, 0));
}

/* ---- 兵种卡：暗底细边，选中只加一道冷光 ---- */
.menuWrap .vcard {
  background: rgba(255, 255, 255, .018);
  border: 1px solid rgba(126, 178, 216, .16);
  border-radius: 5px;
  box-shadow: none;
  color: inherit;
  padding: 12px 8px 11px;
  position: relative;
  overflow: hidden;
  transform: none;
  transition: border-color .16s, background .16s;
}
.menuWrap .vcard::before {
  content: ''; position: absolute; left: 8px; right: 8px; top: 0; height: 1px;
  background: rgba(140, 205, 245, 0);
  transition: background .16s;
}
.menuWrap .vcard:hover {
  background: rgba(120, 190, 240, .045);
  border-color: rgba(140, 200, 240, .34);
  transform: none;
}
.menuWrap .vcard.sel {
  background: linear-gradient(180deg, rgba(100, 180, 240, .11), rgba(55, 110, 155, .02));
  border-color: rgba(130, 205, 245, .55);
  box-shadow: none;
}
.menuWrap .vcard.sel::before { background: rgba(150, 220, 255, .75); }
.vcard .vIcon {
  width: 26px; height: 26px; line-height: 24px;
  border: 1px solid rgba(130, 190, 235, .20);
  border-radius: 4px;
  font-size: 13px; letter-spacing: 0;
  color: rgba(170, 210, 235, .72);
  margin-bottom: 7px;
  transition: color .16s, border-color .16s, background .16s;
}
.vcard.sel .vIcon {
  color: #e4f6ff;
  border-color: rgba(140, 215, 255, .5);
  background: rgba(90, 170, 235, .12);
}
.vcard .vName { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: rgba(215, 234, 248, .9); }
.vcard.sel .vName { color: #f2fbff; }
.vcard .vDesc { font-size: 8.5px; letter-spacing: .3px; color: rgba(150, 185, 210, .5); }
.vcard.sel .vDesc { color: rgba(170, 215, 240, .72); }

/* ---- 按钮：默认暗漆，只有主按钮是浅色 ---- */
.menuWrap button {
  background: linear-gradient(180deg, rgba(28, 56, 80, .92), rgba(16, 35, 53, .92));
  color: #d5e9f9;
  border: 1px solid rgba(130, 195, 240, .30);
  box-shadow: inset 0 1px 0 rgba(180, 225, 255, .10);
  letter-spacing: 3px; font-weight: 600;
  transition: background .15s, border-color .15s, transform .1s;
}
.menuWrap button:hover {
  background: linear-gradient(180deg, rgba(38, 74, 104, .95), rgba(22, 48, 70, .95));
  border-color: rgba(150, 215, 255, .48);
  filter: none;
}
.menuWrap button:active { transform: translateY(1px); }

#joinSolo {
  background: linear-gradient(180deg, #f2fbff, #cdeafb 46%, #a3d8f2);
  color: #072235;
  border-color: rgba(226, 246, 255, .92);
  box-shadow: 0 8px 26px rgba(60, 140, 200, .22), inset 0 1px 0 rgba(255, 255, 255, .85);
  font-weight: 700;
}
#joinSolo:hover { filter: brightness(1.04); }

.menuWrap button.ghostBtn, .toyCard button.toyBtn.ghost {
  background: rgba(255, 255, 255, .03);
  color: rgba(200, 228, 245, .85);
  border-color: rgba(130, 190, 230, .24);
  box-shadow: none;
}
.menuWrap button.ghostBtn:hover { background: rgba(120, 200, 255, .09); }
.menuWrap button.small { height: 30px; font-size: 11px; letter-spacing: 2px; }

/* ---- 下拉行：把输入区做得像仪表盘 ---- */
.qRow {
  border-color: rgba(120, 170, 210, .18);
  background: linear-gradient(180deg, rgba(18, 38, 58, .45), rgba(9, 22, 36, .55));
}
.qRow select {
  background: rgba(7, 18, 30, .85);
  border-color: rgba(120, 175, 215, .24);
  color: rgba(208, 232, 248, .92);
}
.qRow select:focus { border-color: rgba(130, 205, 255, .55); }
.menuWrap input {
  background: rgba(8, 20, 33, .55);
  border-color: rgba(120, 175, 215, .24);
}
.menuWrap input:focus { border-color: rgba(130, 205, 255, .6); box-shadow: 0 0 0 3px rgba(80, 170, 255, .10); }

/* ---- 结算按钮：主按钮浅色，其余暗色 ---- */
.endActs button { letter-spacing: 2px; font-weight: 600; }
.endActs button.primary {
  background: linear-gradient(180deg, #f2fbff, #cdeafb 46%, #a3d8f2);
  color: #072235;
  border-color: rgba(226, 246, 255, .92);
  box-shadow: 0 8px 26px rgba(60, 140, 200, .22);
}
.toyBtn { background: linear-gradient(180deg, #f2fbff, #cdeafb 46%, #a3d8f2); color: #072235; }

/* ---- 窄屏：品牌副标题另起一行，别在 h1 旁边挤成两行 ---- */
@media (max-width: 620px) {
  .brand { flex-wrap: wrap; row-gap: 2px; }
  .menuWrap h1 { font-size: 21px; letter-spacing: 4px; }
  .brandSub { flex-basis: 100%; text-align: center; margin: 4px 0 0; letter-spacing: 6px; }
}

/* ---- 矮屏紧凑（覆盖精修里的内边距） ---- */
@media (max-height: 560px) {
  .menuWrap .vcard { padding: 6px 6px 5px; }
  .menuWrap .vcard .vIcon { width: 22px; height: 22px; line-height: 20px; font-size: 11px; margin-bottom: 4px; }
  .menuWrap h1 { font-size: 19px; letter-spacing: 4px; }
}

/* 兵种卡是按钮，必须显式取消 .menuWrap button 的固定高度，否则卡内文字被裁掉 */
.menuWrap .vcard { height: auto; min-height: 0; }
@media (max-height: 560px) {
  .menuWrap .vcard { height: auto; min-height: 54px; }
}

/* =============================================================================
 * V3 视觉：战术简报 / 机库排版
 *   深色单色底 + 细分割线 + 单一琥珀强调色 + 等宽小标签
 *   不用圆角、不用彩色渐变按钮、不用发光卡片
 * ========================================================================== */
#menu {
  --acc: #dfa559;
  --accSoft: rgba(223, 165, 89, .14);
  --hair: rgba(196, 214, 228, .13);
  --dim: rgba(196, 214, 228, .48);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  padding: var(--sa-top, 0px) var(--sa-right, 0px) var(--sa-bottom, 0px) var(--sa-left, 0px);
  background:
    linear-gradient(96deg, rgba(3, 7, 11, .97) 0%, rgba(3, 7, 11, .91) 36%, rgba(3, 7, 11, .70) 66%, rgba(3, 8, 13, .56) 100%);
  backdrop-filter: blur(4px) saturate(.85);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 顶栏 ---------------- */
.mHead {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 24px 12px;
  border-bottom: 1px solid var(--hair);
}
.mBrand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mMark { width: 3px; height: 15px; background: var(--acc); flex: 0 0 auto; }
.mTitle {
  font-size: 15px; font-weight: 700; letter-spacing: .34em; color: #eef4f8;
  white-space: nowrap;
}
.mCn {
  font-size: 10.5px; letter-spacing: .3em; color: var(--dim);
  padding-left: 12px; border-left: 1px solid var(--hair); white-space: nowrap;
}
.mHeadRight { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mVer {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em;
  color: rgba(196, 214, 228, .28); white-space: nowrap;
}
.toyPilot {
  margin: 0; padding: 3px 10px 3px 3px;
  border: 1px solid var(--hair); border-radius: 0;
  background: rgba(255, 255, 255, .02);
  font-size: 11px; letter-spacing: .06em; color: rgba(222, 234, 242, .85);
}
.toyPilot img { width: 20px; height: 20px; border-color: rgba(196, 214, 228, .3); }

/* ---------------- 主体 ---------------- */
.mBody { flex: 1 1 auto; display: grid; grid-template-columns: 262px 1fr; min-height: 0; }

/* 机种列表 */
.mList { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--hair); }
.mListHead {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 20px 10px;
  font-size: 9px; letter-spacing: .3em; color: var(--dim);
}
.mListHead span { font-family: var(--mono); font-size: 8px; letter-spacing: .18em; color: rgba(196, 214, 228, .22); }

#menu .vcard {
  position: relative;
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px;
  width: 100%; height: auto; min-height: 0; padding: 12px 20px;
  border: 0; border-bottom: 1px solid var(--hair); border-radius: 0;
  background: transparent; box-shadow: none; color: inherit;
  text-align: left; cursor: pointer;
  transition: background .14s;
}
#menu .vcard::before { display: none; }
#menu .vcard:hover { background: rgba(255, 255, 255, .022); }
#menu .vcard i {
  font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  color: rgba(196, 214, 228, .3);
}
#menu .vcard .vName {
  font-size: 13.5px; font-weight: 400; letter-spacing: .18em;
  color: rgba(214, 228, 238, .62);
}
#menu .vcard em {
  font-style: normal; font-family: var(--mono); font-size: 8px; letter-spacing: .16em;
  color: rgba(196, 214, 228, .22);
}
#menu .vcard.sel {
  background: linear-gradient(90deg, var(--accSoft), rgba(223, 165, 89, 0) 82%);
  box-shadow: none;
}
#menu .vcard.sel::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--acc);
}
#menu .vcard.sel i, #menu .vcard.sel em { color: rgba(223, 165, 89, .85); }
#menu .vcard.sel .vName { color: #f4f9fc; }

.mListFoot {
  margin-top: auto; display: flex; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 8px; letter-spacing: .16em;
  color: rgba(196, 214, 228, .22);
}

/* 详情 */
.mDetail {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: 20px 34px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .012), rgba(255, 255, 255, 0) 42%);
}
.mNo { font-family: var(--mono); font-size: 9.5px; letter-spacing: .28em; color: var(--acc); }
.mNo span { color: rgba(196, 214, 228, .26); margin-left: 6px; }
.mDetail h2 {
  font-size: 34px; font-weight: 700; letter-spacing: .2em; line-height: 1.12;
  color: #f4f9fc; margin: 8px 0 3px;
  text-shadow: none;
}
.mEn { font-family: var(--mono); font-size: 9px; letter-spacing: .46em; color: rgba(196, 214, 228, .34); }
.mDesc { margin-top: 9px; font-size: 11.5px; letter-spacing: .06em; color: rgba(196, 214, 228, .58); }

.mStats { margin-top: 16px; display: grid; gap: 8px; width: min(300px, 78%); }
.mStats .stat { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; }
.mStats b { font-weight: 400; font-size: 9px; letter-spacing: .24em; color: rgba(196, 214, 228, .42); }
.mStats .bar { display: block; height: 2px; background: rgba(255, 255, 255, .08); }
.mStats .bar i { display: block; height: 100%; background: linear-gradient(90deg, rgba(223, 165, 89, .45), var(--acc)); }

.mField { margin-top: 16px; display: flex; align-items: center; gap: 12px; max-width: 330px; }
.mField label { font-size: 9px; letter-spacing: .24em; color: rgba(196, 214, 228, .42); white-space: nowrap; }
.mField input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0;
  padding: 5px 2px; color: #eaf2f7;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; outline: none;
}
.mField input:focus { border-bottom-color: var(--acc); box-shadow: none; }
.mField input::placeholder { color: rgba(196, 214, 228, .25); }

.mGoRow { margin-top: auto; display: flex; align-items: center; gap: 18px; padding-top: 14px; }
#menu .mGo {
  padding: 11px 38px;
  background: transparent; border: 1px solid var(--acc); border-radius: 0;
  color: var(--acc); font-size: 12px; font-weight: 600; letter-spacing: .42em;
  cursor: pointer; box-shadow: none;
  transition: background .15s, color .15s;
}
#menu .mGo:hover { background: rgba(223, 165, 89, .13); filter: none; }
#menu .mGo:active { background: rgba(223, 165, 89, .22); transform: none; }
#menuTip {
  margin: 0; min-height: 0; font-size: 9.5px; letter-spacing: .04em;
  color: rgba(196, 214, 228, .3);
}

/* 底栏 */
.mFoot {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 24px 9px;
  border-top: 1px solid var(--hair);
}
.mSet { display: flex; align-items: center; gap: 7px; }
.mSet label { font-size: 8.5px; letter-spacing: .24em; color: rgba(196, 214, 228, .36); white-space: nowrap; }
.mSet select {
  -webkit-appearance: none; appearance: none;
  background-color: transparent; background-repeat: no-repeat;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(223, 165, 89, .85) 50%),
    linear-gradient(135deg, rgba(223, 165, 89, .85) 50%, transparent 50%);
  background-position: calc(100% - 7px) 50%, calc(100% - 3px) 50%;
  background-size: 4px 4px;
  border: 0; border-radius: 0;
  color: rgba(222, 234, 242, .88); font-size: 11px; letter-spacing: .05em;
  padding: 4px 16px 4px 0; outline: none; cursor: pointer;
}
.mSet select option { background: #0a1219; color: #dbe8f1; }
.mFootGap { flex: 1; }
#menu .mRank {
  background: transparent; border: 1px solid var(--hair); border-radius: 0;
  color: rgba(214, 228, 238, .68);
  padding: 5px 15px; font-size: 9.5px; letter-spacing: .24em; cursor: pointer;
  box-shadow: none;
}
#menu .mRank:hover { border-color: rgba(223, 165, 89, .55); color: var(--acc); filter: none; }

/* ---------------- 结算 ---------------- */
#endcard {
  display: flex; align-items: center; justify-content: center;
  padding: var(--sa-top, 0px) var(--sa-right, 0px) var(--sa-bottom, 0px) var(--sa-left, 0px);
  background: linear-gradient(180deg, rgba(3, 7, 11, .84), rgba(3, 7, 11, .93));
  backdrop-filter: blur(6px) saturate(.9);
  --acc: #dfa559;
  --hair: rgba(196, 214, 228, .13);
}
.eWrap {
  position: relative;
  width: min(540px, 92vw); max-height: 92vh; overflow-y: auto;
  padding: 22px 26px 20px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(9, 18, 26, .95), rgba(4, 10, 16, .97));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.eWrap::before {
  content: ''; position: absolute; left: 0; top: 0; width: 46px; height: 2px; background: var(--acc);
}
.eTag { font-family: var(--mono); font-size: 8px; letter-spacing: .4em; color: rgba(223, 165, 89, .8); }
#endTitle {
  font-size: 24px; font-weight: 700; letter-spacing: .2em; margin: 7px 0 0;
  color: #f4f9fc; text-shadow: none;
}
#endBody { font-size: 12px; line-height: 1.85; margin-top: 14px; }
#endBody .score { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 6px 0 14px; }
#endBody .score b { font-family: var(--mono); font-size: 34px; font-weight: 500; letter-spacing: .04em; text-shadow: none; }
#endBody .score .s0 { color: #8fb8d6; text-shadow: none; }
#endBody .score .s1 { color: #d69a8f; text-shadow: none; }
#endBody .score .sep { color: rgba(196, 214, 228, .3); font-size: 18px; }
#endBody table { width: 100%; border-collapse: collapse; }
#endBody tr { border-bottom: 1px solid rgba(255, 255, 255, .05); }
#endBody tr:last-child { border-bottom: 0; }
#endBody td { padding: 6px 4px; font-size: 11.5px; color: rgba(214, 228, 238, .8); }
#endBody td.name { text-align: left; letter-spacing: .06em; }
#endBody td.num { text-align: right; font-family: var(--mono); color: rgba(196, 214, 228, .55); }
#endBody tr.t0 td.name { color: #a8cbe2; }
#endBody tr.t1 td.name { color: #dfb3ab; }
#endBar { height: 1px; margin: 16px 0 8px; background: rgba(255, 255, 255, .07); }
#endTip { font-size: 9.5px; letter-spacing: .12em; color: rgba(196, 214, 228, .38); }
.endActs { display: flex; gap: 8px; margin-top: 16px; }
#endcard .endActs button {
  flex: 1; height: 36px; padding: 0 8px;
  background: transparent; border: 1px solid var(--hair);
  color: rgba(214, 228, 238, .8);
  font-size: 10.5px; font-weight: 500; letter-spacing: .18em;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
#endcard .endActs button:hover { border-color: rgba(223, 165, 89, .5); color: var(--acc); }
#endcard .endActs button.primary {
  border-color: var(--acc); color: var(--acc); background: rgba(223, 165, 89, .07);
}

/* ---------------- 弹层统一到同一套语言 ---------------- */
.toyCard {
  border-radius: 0;
  border-color: rgba(196, 214, 228, .13);
  background: linear-gradient(180deg, rgba(9, 18, 26, .96), rgba(4, 10, 16, .97));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62);
  position: relative;
}
.toyCard::before { content: ''; position: absolute; left: 0; top: 0; width: 46px; height: 2px; background: #dfa559; }
.toyHead h3 { font-size: 11px; letter-spacing: .4em; font-weight: 700; color: #f2f7fa; text-shadow: none; }
.toyX { border-radius: 0; border-color: rgba(196, 214, 228, .18); color: rgba(214, 228, 238, .6); }
.toyX:hover { border-color: rgba(223, 165, 89, .55); color: #dfa559; }
.toyTab { border-radius: 0; border-color: rgba(196, 214, 228, .16); color: rgba(196, 214, 228, .6); background: transparent; }
.toyTab.on { background: rgba(223, 165, 89, .13); border-color: #dfa559; color: #f0c48b; }
.toyRow { border-bottom-color: rgba(255, 255, 255, .05); }
.toyRow.me { background: rgba(223, 165, 89, .07); }
.toyNo { color: rgba(196, 214, 228, .45); }
.toyRow.top1 .toyNo { color: #e8c07f; text-shadow: none; }
.toySc { color: rgba(214, 232, 244, .85); }
.toyMine { border-top-color: rgba(196, 214, 228, .13); color: rgba(196, 214, 228, .55); }
.toyMine b { color: #e8c07f; }
.toyBtn {
  background: transparent; border: 1px solid #dfa559; color: #dfa559;
  font-weight: 500; letter-spacing: .3em;
}
.toyBtn.ghost { border-color: rgba(196, 214, 228, .18); color: rgba(214, 228, 238, .75); }

/* ---------------- 竖屏 / 窄屏 ---------------- */
@media (max-width: 760px) {
  .mHead { padding: 10px 16px 9px; }
  .mTitle { font-size: 12px; letter-spacing: .26em; }
  .mCn { display: none; }
  .mBody { grid-template-columns: 1fr; overflow-y: auto; }
  .mList { border-right: 0; border-bottom: 1px solid var(--hair); }
  .mListFoot { display: none; }
  #menu .vcard { padding: 10px 16px; }
  .mDetail { padding: 14px 16px 12px; }
  .mDetail h2 { font-size: 26px; }
  .mStats { width: 100%; }
  .mFoot { flex-wrap: wrap; gap: 10px 18px; padding: 8px 16px 10px; }
  .mFootGap { display: none; }
  .mGoRow { flex-direction: column; align-items: flex-start; gap: 8px; }
  #menu .mGo { width: 100%; padding: 11px 0; text-align: center; }
}

/* 矮屏（手机横屏）：压缩纵向节奏 */
@media (max-height: 470px) {
  .mHead { padding: 8px 20px 7px; }
  .mListHead { padding: 8px 20px 6px; }
  #menu .vcard { padding: 8px 20px; }
  #menu .vcard .vName { font-size: 12.5px; }
  .mDetail { padding: 12px 28px 10px; }
  .mDetail h2 { font-size: 26px; margin: 5px 0 2px; }
  .mStats { margin-top: 10px; gap: 6px; }
  .mField { margin-top: 10px; }
  .mGoRow { padding-top: 10px; }
  #menu .mGo { padding: 9px 32px; }
  .mFoot { padding: 6px 20px 7px; }
}

/* 简报数据条：把详情页中段的留白变成任务信息 */
.mBrief {
  margin-top: 14px; display: flex;
  width: min(330px, 82%);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.mBrief > div { flex: 1; padding: 7px 0 6px; }
.mBrief > div + div { border-left: 1px solid var(--hair); padding-left: 14px; }
.mBrief b {
  display: block; font-family: var(--mono); font-size: 15px; font-weight: 500;
  letter-spacing: .04em; color: #eaf2f7; line-height: 1.25;
}
.mBrief span { font-size: 8px; letter-spacing: .2em; color: rgba(196, 214, 228, .38); }

/* 右侧别被场景亮部顶得看不清 */
#menu {
  background:
    radial-gradient(120% 90% at 6% 40%, rgba(3, 7, 11, .98) 0%, rgba(3, 7, 11, .90) 44%, rgba(3, 7, 11, .80) 100%),
    linear-gradient(96deg, rgba(3, 7, 11, .94), rgba(3, 8, 13, .78));
}
@media (max-width: 760px) {
  .mBrief { width: 100%; }
}

/* 详情区：极淡的坐标网格，给大片暗部一点结构（不抢内容） */
.mDetail { position: relative; }
.mDetail::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 214, 228, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 214, 228, .032) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(75% 70% at 62% 42%, #000 0%, transparent 76%);
  mask-image: radial-gradient(75% 70% at 62% 42%, #000 0%, transparent 76%);
}
.mDetail > * { position: relative; z-index: 1; }

#menu {
  background:
    linear-gradient(100deg, rgba(3, 7, 11, .975) 0%, rgba(3, 7, 11, .935) 42%, rgba(3, 7, 11, .865) 72%, rgba(4, 10, 16, .80) 100%);
}

/* 结算表格：三列定宽，数字不再漂在中间 */
#endBody td:nth-child(2) { width: 38%; }
#endBody td:nth-child(3) { width: 22%; }

/* 海报：按原比例铺满卡片宽度，细节看得清（超出可滚动） */
.toyCard.narrow { width: 340px; }
.toyPosterWrap { overflow-y: auto; }
.toyPosterWrap img { width: 100%; max-height: none; height: auto; }

/* 触控按钮：当前兵种用不到的动作置灰（不隐藏，保持布局稳定） */
#tbtns .tb.off { opacity: .28; pointer-events: none; }

/* =============================================================================
 * V4 触控：横屏双拇指布局
 *   左：摇杆 + 油门竖栏      右：机炮 / 导弹 / 干扰 + 视角 / 起落架 / 刹车
 *   所有控件都放在 #ui 的安全区里（#ui 已按 safe-area 内缩），不再各自算刘海
 * ========================================================================== */

/* ---------------- 摇杆 ---------------- */
#touch { z-index: 6; }
#stick {
  left: 18px; bottom: 16px;
  width: 150px; height: 150px;
  border-color: rgba(180, 215, 240, .16);
  background: radial-gradient(circle at 50% 50%,
    rgba(26, 56, 80, .34) 0%, rgba(12, 28, 42, .16) 62%, rgba(12, 28, 42, 0) 63%);
  box-shadow: inset 0 0 34px rgba(90, 170, 230, .05);
}
#stick::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: rgba(180, 215, 240, .3);
}
.stickMark { position: absolute; background: rgba(180, 215, 240, .26); }
.stickMark.mk0 { left: 50%; top: 7px; width: 1px; height: 8px; }
.stickMark.mk1 { left: 50%; bottom: 7px; width: 1px; height: 8px; }
.stickMark.mk2 { top: 50%; left: 7px; width: 8px; height: 1px; }
.stickMark.mk3 { top: 50%; right: 7px; width: 8px; height: 1px; }
#stickKnob {
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-color: rgba(190, 225, 245, .30);
  background: radial-gradient(circle at 38% 32%, rgba(150, 205, 235, .30), rgba(28, 62, 90, .55) 72%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: border-color .12s, box-shadow .12s;
}
#stickKnob i {
  position: absolute; inset: 21px; border-radius: 50%;
  border: 1px solid rgba(200, 235, 255, .22);
}
#stick.active #stickKnob {
  border-color: rgba(223, 165, 89, .7);
  box-shadow: 0 0 20px rgba(223, 165, 89, .26), inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* ---------------- 油门 ---------------- */
#thrWrap {
  left: 24px; bottom: 182px;
  width: 44px; height: 126px;
  border-radius: 2px;
  border-color: rgba(180, 215, 240, .16);
  background: linear-gradient(180deg, rgba(8, 20, 30, .5), rgba(6, 14, 22, .78));
}
#thrWrap::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(200, 225, 245, .13) 0 1px, transparent 1px 12px);
  opacity: .5;
}
#thrFill {
  height: 55%;
  background: linear-gradient(180deg, rgba(223, 165, 89, .55), rgba(223, 165, 89, .18));
}
#thrWrap .thrTag, #thrWrap .thrVal {
  position: absolute; left: 0; width: 100%; text-align: center;
  font-family: var(--mono); z-index: 4; pointer-events: none;
  opacity: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
}
#thrWrap .thrTag { top: 3px; bottom: auto; font-size: 7.5px; letter-spacing: .16em; color: rgba(210, 230, 245, .55); }
#thrWrap .thrVal { bottom: 3px; top: auto; font-size: 10px; color: rgba(244, 222, 190, .9); }

/* ---------------- 武器 / 系统 ---------------- */
#tbtns { position: absolute; inset: 0; display: block; pointer-events: none; }
#tbtns .tb {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0; border-radius: 50%;
  pointer-events: auto; touch-action: none;
  border: 1px solid rgba(180, 215, 240, .20);
  background: radial-gradient(circle at 40% 34%, rgba(30, 60, 84, .58), rgba(7, 18, 28, .74) 74%);
  color: rgba(228, 241, 250, .92);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .10);
  transition: transform .08s, border-color .12s, background .12s;
}
#tbtns .tb b { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; line-height: 1.1; }
#tbtns .tb i {
  font-family: var(--mono); font-size: 7px; letter-spacing: .16em;
  opacity: .48; font-style: normal; margin-top: 1px;
}
#tbtns .tb.on {
  border-color: rgba(223, 165, 89, .8);
  background: radial-gradient(circle at 40% 34%, rgba(223, 165, 89, .34), rgba(96, 66, 26, .5) 74%);
  transform: scale(.96);
}
#tbtns .tb.off { opacity: .22; pointer-events: none; }

#tbtns .tb[data-act="fire"] {
  width: 96px; height: 96px; right: 16px; bottom: 16px;
  border-color: rgba(223, 165, 89, .38);
}
#tbtns .tb[data-act="fire"] b { font-size: 14.5px; letter-spacing: .14em; }
#tbtns .tb[data-act="msl"] { width: 62px; height: 62px; right: 126px; bottom: 22px; }
#tbtns .tb[data-act="flr"] { width: 54px; height: 54px; right: 22px; bottom: 126px; }
#tbtns .tb[data-act="view"] { width: 48px; height: 48px; right: 122px; bottom: 98px; }
#tbtns .tb[data-act="gear"] { width: 46px; height: 46px; right: 20px; bottom: 192px; }
#tbtns .tb[data-act="brake"] { width: 46px; height: 46px; right: 20px; bottom: 246px; }
#tbtns .tb[data-act="gear"] b, #tbtns .tb[data-act="brake"] b { font-size: 9.5px; letter-spacing: 0; }

/* ---------------- 暂停 ----------------
   原来 36×30 贴在右上角、底色几乎透明：
   真机上又小又暗，还正好压在雷达和屏幕圆角上。
   现在放到屏幕底部正中——不挡雷达、不挤武器簇，横屏时两手都够得到。 */
#pauseBtn {
  position: absolute;
  left: 50%; bottom: 8px; top: auto;
  transform: translateX(-50%);
  width: 56px; height: 34px; padding: 0; border-radius: 17px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  pointer-events: auto; touch-action: manipulation;
  background: rgba(8, 20, 30, .68);
  border: 1px solid rgba(200, 228, 248, .34);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  color: transparent; font-size: 0;
}
#pauseBtn i { display: block; width: 2.5px; height: 13px; border-radius: 1px; background: rgba(228, 242, 252, .92); }

/* ---------------- 竖屏提示 ---------------- */
#rotateHint {
  position: fixed; inset: 0; z-index: 35; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 42%, rgba(10, 26, 40, .97), rgba(3, 8, 13, .99));
  color: #dce9f2;
}
body.rotate-block #rotateHint { display: flex; }
#rotateHint p { font-size: 15px; letter-spacing: .34em; color: #f0f6fa; }
#rotateHint span { font-size: 11px; letter-spacing: .04em; color: rgba(196, 214, 228, .48); }
.rotIcon {
  position: relative; width: 46px; height: 76px;
  border: 1px solid rgba(223, 165, 89, .55); border-radius: 7px;
  animation: rotHint 2.2s ease-in-out infinite;
}
.rotIcon i {
  position: absolute; left: 50%; bottom: 5px; width: 12px; height: 1px;
  background: rgba(223, 165, 89, .65); transform: translateX(-50%);
}
@keyframes rotHint {
  0%, 22% { transform: rotate(0deg); }
  62%, 100% { transform: rotate(90deg); }
}

/* 触控设备上不需要键盘提示 */
body.touch #help, body.touch #helpHint { display: none; }

/* 屏幕特别矮时整体缩小，别把武器簇顶到血条上 */
@media (max-height: 380px) {
  #stick { width: 132px; height: 132px; bottom: 12px; }
  #stickKnob { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  #thrWrap { bottom: 160px; height: 108px; }
  #tbtns .tb[data-act="fire"] { width: 84px; height: 84px; right: 12px; bottom: 12px; }
  #tbtns .tb[data-act="msl"] { width: 56px; height: 56px; right: 108px; bottom: 18px; }
  #tbtns .tb[data-act="flr"] { width: 48px; height: 48px; right: 18px; bottom: 108px; }
  #tbtns .tb[data-act="view"] { width: 44px; height: 44px; right: 106px; bottom: 84px; }
  #tbtns .tb[data-act="gear"] { width: 42px; height: 42px; right: 16px; bottom: 166px; }
  #tbtns .tb[data-act="brake"] { width: 42px; height: 42px; right: 16px; bottom: 214px; }
}

/* 窄屏：队名会把顶条撑成两行，还会顶到右上角的雷达——干脆只留色块和比分 */
@media (max-width: 720px) {
  #topbar .tname { display: none; }
  #topbar .tside { padding: 0 12px; }
}

/* 暂停后按钮变成"播放"三角 */
#pauseBtn.paused i { background: transparent; width: 0; height: 0;
  border-left: 9px solid rgba(223, 165, 89, .9);
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
}
#pauseBtn.paused i + i { display: none; }
#pauseBtn.paused { border-color: rgba(223, 165, 89, .5); }

/* 帮助面板三块都要能隐藏（原来漏了轰炸机块，导致两套键位同时显示） */
#helpAir.hidden, #helpShip.hidden, #helpBomber.hidden { display: none; }

/* ---------------- 暂停面板 ---------------- */
#pausePanel {
  position: fixed; inset: 0; z-index: 70;
  pointer-events: auto;   /* 父级 #ui 是 pointer-events:none，不显式打开按钮点不到 */
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 9, 14, .62);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
#pausePanel.hidden { display: none; }
#pausePanel .ppBox {
  min-width: 260px; padding: 24px 26px 22px;
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  background: linear-gradient(180deg, rgba(16, 27, 38, .96), rgba(9, 16, 24, .97));
  border: 1px solid rgba(150, 210, 255, .18); border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .6);
  text-align: center;
}
#pausePanel .ppTag {
  font: 600 9px/1 var(--sans, sans-serif); letter-spacing: 3px;
  color: rgba(150, 210, 255, .5);
}
#pausePanel h2 {
  margin: 2px 0 10px; font-size: 20px; font-weight: 600;
  letter-spacing: 6px; color: #e8f4ff;
}
#pausePanel .ppBtn {
  padding: 11px 16px; border-radius: 9px; cursor: pointer;
  font-family: var(--sans, sans-serif); font-size: 13px; letter-spacing: 2px;
  color: #dceaf6; background: rgba(120, 190, 255, .09);
  border: 1px solid rgba(150, 210, 255, .20);
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
#pausePanel .ppBtn:active { background: rgba(120, 190, 255, .22); }
#pausePanel .ppBtn.primary {
  background: rgba(120, 190, 255, .20);
  border-color: rgba(150, 210, 255, .44); color: #f2faff;
}
@media (max-height: 430px) {
  #pausePanel .ppBox { padding: 16px 20px 15px; gap: 8px; min-width: 220px; }
  #pausePanel h2 { font-size: 17px; margin-bottom: 6px; }
  #pausePanel .ppBtn { padding: 9px 14px; font-size: 12px; }
}

/* ---------------- 菜单：设置抽屉 ---------------- */
.mCfg {
  font-size: 9px; letter-spacing: .14em;
  color: rgba(196, 214, 228, .38); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
#setSheet {
  position: absolute; inset: 0; z-index: 40;
  pointer-events: auto;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(4, 9, 14, .58);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
#setSheet.hidden { display: none; }
#setSheet .ssBox {
  width: min(420px, 92%);
  margin-bottom: 14px; padding: 14px 16px 12px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(16, 27, 38, .97), rgba(9, 16, 24, .98));
  border: 1px solid rgba(150, 210, 255, .18); border-radius: 13px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .55);
  animation: ssIn .16s ease-out;
}
@keyframes ssIn { from { transform: translateY(10px); opacity: .4; } to { transform: none; opacity: 1; } }
#setSheet .ssHead {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px solid rgba(150, 210, 255, .12);
}
#setSheet .ssHead b { font-size: 12px; letter-spacing: .3em; color: #e8f4ff; }
#setSheet .ssHead span { font-size: 8px; letter-spacing: .26em; color: rgba(150, 210, 255, .34); }
#setSheet .mSet { justify-content: space-between; }
#setSheet .mSet label { font-size: 10px; letter-spacing: .2em; color: rgba(220, 236, 248, .66); }
#setSheet .mSet select { font-size: 12px; padding: 8px 20px 8px 10px; border-bottom: 1px solid rgba(150, 210, 255, .16); }
#setSheet .ssDone {
  margin-top: 4px; padding: 11px 0; border-radius: 9px; cursor: pointer;
  background: rgba(120, 190, 255, .18); border: 1px solid rgba(150, 210, 255, .4);
  color: #f2faff; font-family: var(--sans, sans-serif); font-size: 12px; letter-spacing: .3em;
}
#setSheet .ssDone:active { background: rgba(120, 190, 255, .3); }

/* 矮屏：菜单里的「简报」三连和属性条让位给出击按钮 */
@media (max-height: 470px) {
  .mBrief { display: none; }
  .mStats { margin-top: 8px; gap: 5px; }
}

/* 精简后的详情页：去掉属性条后把留白收紧，出击按钮更醒目 */
.mDetail .mEn { margin-bottom: 14px; }
#menu .mGo {
  padding: 14px 46px; font-size: 13px; letter-spacing: .5em;
  border-width: 1.5px;
}
#menu .mGo:active { background: rgba(223, 165, 89, .22); }
