* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #141118;
  color: #f6f4ef;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  touch-action: none;
}

.hidden { display: none !important; }

#gameWrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* ===== Borderlands 美漫粗黑描边风格按钮 ===== */
.comic-btn {
  background: #2b2733;
  color: #f6f4ef;
  border: 2.5px solid #0e0c11;
  box-shadow: 3px 3px 0 #0e0c11;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transform: skewX(-6deg);
  transition: transform 0.08s, background 0.1s;
}
.comic-btn:active { transform: skewX(-6deg) translate(2px, 2px); box-shadow: 1px 1px 0 #0e0c11; }
.comic-btn.primary { background: #ffb82e; color: #151118; }
.comic-btn.secondary { background: #36c5ff; color: #10141c; }
.comic-btn.accent { background: #ff5ac8; color: #160c16; }
.comic-btn.warn { background: #e84545; color: #fff; }
.comic-btn.sm { padding: 4px 9px; font-size: 12px; }
.comic-btn.lg { padding: 10px 24px; font-size: 16px; }
.comic-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ===== 顶部 HUD ===== */
#topHud {
  position: absolute;
  top: max(6px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
  z-index: 15;
}
#topHud > * { pointer-events: auto; }

.hud-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(18, 15, 22, 0.86);
  border: 2.5px solid #0b090e;
  box-shadow: 3px 3px 0 #0b090e;
  padding: 5px 9px;
}

.hunter-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
}
.class-tag { font-size: 11px; font-weight: 800; color: #55ee77; }
.lv-text { font-size: 14px; font-weight: 900; color: #ffd74a; line-height: 1; }
.xp-bar { width: 72px; height: 5px; background: #2c2835; border: 1px solid #000; }
#hudXpFill { width: 0%; height: 100%; background: #ffd74a; transition: width 0.2s; }

.vitals-col { display: flex; flex-direction: column; gap: 3px; }
.vital-row { display: flex; align-items: center; gap: 4px; }
.vital-icon { font-size: 12px; width: 15px; text-align: center; }
.vital-bar {
  position: relative;
  width: 116px;
  height: 14px;
  background: #231f2b;
  border: 2px solid #09080c;
  overflow: hidden;
}
#hudShieldFill { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, #1b9dff, #5de0ff); transition: width 0.1s; }
#hudHpFill { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, #d92638, #ff5858); transition: width 0.1s; }
.vital-bar span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 11px;
  text-shadow: 1px 1px 0 #000;
}

.econ-col { display: flex; flex-direction: column; gap: 1px; font-size: 12px; padding-left: 4px; border-left: 1.5px solid #353042; }
.econ-item { display: flex; align-items: center; gap: 3px; font-weight: 800; }
.econ-item.cash b { color: #69f076; }
.econ-item.crystal b { color: #e26bff; }
.econ-item.nade b { color: #ffad42; }

.hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none !important;
}
.zone-banner {
  background: rgba(18, 15, 22, 0.85);
  border: 2px solid #09080c;
  padding: 3px 12px;
  transform: skewX(-8deg);
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
}
.zone-lv { color: #ffb82e; font-size: 11px; }

.boss-bar-wrap {
  width: min(320px, 50vw);
  background: rgba(18, 12, 20, 0.92);
  border: 2.5px solid #09080c;
  padding: 4px 8px;
  box-shadow: 3px 3px 0 #09080c;
}
.boss-name { font-size: 12px; font-weight: 900; color: #ff6e42; text-align: center; margin-bottom: 3px; }
.boss-shield-track { height: 6px; background: #1e2738; border: 1px solid #000; margin-bottom: 2px; }
#bossShieldFill { height: 100%; width: 100%; background: #42d4ff; }
.boss-hp-track { height: 10px; background: #2c171b; border: 1px solid #000; }
#bossHpFill { height: 100%; width: 100%; background: linear-gradient(90deg, #ff3e3e, #ff962e); }

.hud-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.hud-btn {
  position: relative;
  background: rgba(24, 21, 30, 0.9);
  color: #f6f4ef;
  border: 2px solid #09080c;
  box-shadow: 2px 2px 0 #09080c;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.hud-btn.accent { background: #3b2242; border-color: #ff66e8; color: #ffd4fa; }
.hud-btn .badge {
  position: absolute; top: -6px; right: -5px;
  background: #ff3b3b; color: #fff; border-radius: 99px;
  padding: 0 5px; font-size: 10px; border: 1.5px solid #000;
}

/* ===== 警报条 ===== */
#alertToast {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 13, 20, 0.92);
  border: 2px solid #ffb82e;
  box-shadow: 3px 3px 0 #000;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  z-index: 25;
  pointer-events: none;
  max-width: 88vw;
  text-align: center;
}

/* ===== 地面战利品快速对比卡 ===== */
.loot-card {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: min(370px, 92vw);
  background: rgba(18, 16, 24, 0.95);
  border: 3px solid #0b090e;
  box-shadow: 5px 5px 0 #0b090e;
  padding: 8px 10px;
  z-index: 20;
}
.loot-card-top { display: flex; gap: 10px; align-items: center; }
#lootPreviewCanvas {
  width: 72px; height: 72px;
  background: #282433;
  border: 2px solid #0b090e;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.loot-info { flex: 1; min-width: 0; }
.loot-head { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 2px; }
.rarity-pill, .lv-pill, .mfr-pill {
  font-size: 10px; font-weight: 900; padding: 1px 5px; border: 1.5px solid #000;
}
.lv-pill { background: #2c2838; color: #ffd74a; }
.lv-pill.too-high { background: #a81c24; color: #fff; }
.mfr-pill { background: #222838; color: #8ad8ff; }
.loot-name { font-size: 14px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loot-stats { font-size: 11px; color: #d8d4e0; margin-top: 2px; }
.loot-perks { font-size: 11px; color: #ffb82e; margin-top: 2px; line-height: 1.3; }
.loot-actions { display: flex; gap: 6px; margin-top: 7px; justify-content: flex-end; }

/* ===== 底部武器槽 ===== */
#bottomHud {
  position: absolute;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 15;
  pointer-events: none;
}
#bottomHud > * { pointer-events: auto; }

.weapon-slots { display: flex; gap: 5px; flex-wrap: nowrap; }
.weapon-slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(18, 15, 22, 0.88);
  border: 2.5px solid #0a090d;
  box-shadow: 3px 3px 0 #0a090d;
  padding: 3px 7px;
  min-width: 112px;
  max-width: 132px;
  cursor: pointer;
  opacity: 0.72;
}
.weapon-slot.active {
  opacity: 1;
  border-color: #ffb82e;
  background: rgba(34, 28, 42, 0.94);
}
.weapon-slot.med-slot { min-width: 78px; opacity: 0.95; border-color: #4eff86; }
.med-icon { font-size: 20px; line-height: 32px; }
.weapon-slot canvas { width: 34px; height: 34px; image-rendering: pixelated; flex-shrink: 0; }
.slot-name { font-size: 10px; font-weight: 900; max-width: 74px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-ammo { font-size: 11px; font-weight: 900; color: #ffd74a; }
.slot-key {
  position: absolute; top: -6px; left: -6px;
  background: #ffb82e; color: #000; font-size: 10px; font-weight: 900;
  padding: 0 4px; border: 1.5px solid #000;
}
.gear-pills { display: flex; flex-direction: column; gap: 3px; }
.mini-gear {
  background: rgba(18, 15, 22, 0.86);
  border: 2px solid #0a090d;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* ===== 移动端触控层 ===== */
#touchLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}
.touch-pad-left {
  position: absolute;
  left: 0; bottom: 0;
  width: 42vw; height: 55vh;
  pointer-events: auto;
}
.joy-base {
  position: absolute;
  left: 26px; bottom: 26px;
  width: 104px; height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.28);
}
.joy-knob {
  position: absolute;
  left: 50%; top: 50%;
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: rgba(255, 184, 46, 0.72);
  border: 2px solid #0b090e;
}

.touch-pad-right {
  position: absolute;
  right: 12px; bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: auto;
}
.touch-mini-toggle {
  background: rgba(20, 18, 26, 0.85);
  color: #b4b0c2;
  border: 2px solid #000;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
.touch-mini-toggle.active { background: #266a3c; color: #b8ffcb; border-color: #4eff86; }
.touch-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  gap: 6px;
}
.touch-btn {
  height: 46px;
  background: rgba(24, 21, 32, 0.86);
  color: #fff;
  border: 2px solid #09080c;
  box-shadow: 2px 2px 0 #09080c;
  font-size: 12px;
  font-weight: 900;
  border-radius: 8px;
}
.touch-btn:active { background: #ffb82e; color: #000; }
.touch-btn.skill { background: #4b235c; border-color: #ea66ff; }
.touch-btn.interact { background: #ff9b1a; color: #000; grid-column: span 3; height: 38px; }

/* ===== FFYL & New-U ===== */
#ffylOverlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(160, 10, 20, 0.08) 35%, rgba(160, 0, 15, 0.65) 100%);
  pointer-events: none;
  z-index: 18;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 90px;
}
.ffyl-banner {
  background: rgba(22, 8, 12, 0.92);
  border: 3px solid #ff3344;
  padding: 10px 20px;
  text-align: center;
  box-shadow: 4px 4px 0 #000;
}
.ffyl-title { font-size: 18px; font-weight: 900; color: #ff4757; letter-spacing: 1px; }
.ffyl-sub { font-size: 12px; color: #ffd4d8; margin: 3px 0 6px; }
.ffyl-bar-wrap { width: 220px; height: 10px; background: #331016; border: 1.5px solid #000; margin: 0 auto 4px; }
#ffylBarFill { width: 100%; height: 100%; background: #ff3b4e; }
#ffylTimerText { font-size: 14px; font-weight: 900; color: #ffd74a; }

#newUOverlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.newu-card {
  max-width: 460px;
  width: 100%;
  background: #171c29;
  border: 3.5px solid #42d4ff;
  box-shadow: 6px 6px 0 #000;
  padding: 20px;
  text-align: center;
}
.newu-badge { font-size: 11px; color: #42d4ff; font-weight: 900; letter-spacing: 1px; }
.newu-title { font-size: 22px; font-weight: 900; color: #fff; margin: 6px 0; }
.newu-fee { font-size: 14px; font-weight: 800; color: #ff784f; margin-bottom: 12px; }
.newu-quote {
  background: #0e121b;
  border-left: 4px solid #ffb82e;
  padding: 10px 12px;
  font-size: 13px;
  color: #e6e4ec;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
}

/* ===== 开局职业选择面板 ===== */
#startOverlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, #2d2138, #120f17 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 14px;
  overflow-y: auto;
}
.start-panel {
  width: min(860px, 96vw);
  max-height: 94vh;
  overflow-y: auto;
  background: radial-gradient(circle at 80% 10%, rgba(255, 184, 46, 0.08), transparent 45%),
              repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0 6px, transparent 6px 12px),
              rgba(22, 19, 28, 0.97);
  border: 3.5px solid #09080c;
  box-shadow: 8px 8px 0 #09080c;
  padding: 16px 20px;
}
.start-kicker { font-size: 11px; font-weight: 900; color: #ffb82e; letter-spacing: 2px; }
.start-title { font-size: clamp(22px, 4vw, 32px); font-weight: 900; margin: 2px 0 4px; text-shadow: 3px 3px 0 #000; }
.start-desc { font-size: 13px; color: #c7c2d4; margin-bottom: 12px; }

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.class-card {
  background: #231f2e;
  border: 2.5px solid #0a090d;
  box-shadow: 3px 3px 0 #0a090d;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
}
.class-card.selected {
  border-color: #ffb82e;
  background: #2f283e;
  transform: translateY(-2px);
}
.class-card-name { font-size: 16px; font-weight: 900; }
.class-card-skill { font-size: 12px; font-weight: 800; color: #ffd74a; margin: 3px 0; }
.class-card-desc { font-size: 11px; color: #cfc9dc; line-height: 1.4; }

.start-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.orient-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.start-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.controls-hint { font-size: 11px; color: #8c869c; text-align: center; }

/* ===== 模态弹窗 (工坊/背包/商店/技能/传送) ===== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 14, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 10px;
}
.modal-window {
  width: min(900px, 96vw);
  height: min(620px, 92vh);
  background: #1a1722;
  border: 3.5px solid #09080c;
  box-shadow: 7px 7px 0 #09080c;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #252030;
  border-bottom: 3px solid #09080c;
}
.modal-title { font-size: 17px; font-weight: 900; color: #ffb82e; }
.modal-sub { font-size: 12px; color: #c7c2d4; flex: 1; text-align: right; padding-right: 8px; }
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.tab-bar { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel-box {
  background: #221e2c;
  border: 2px solid #0a090d;
  padding: 10px;
}
.item-list { display: flex; flex-direction: column; gap: 6px; }
.item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2a2536;
  border: 2px solid #0a090d;
  padding: 6px 8px;
}
.item-row canvas { width: 48px; height: 48px; image-rendering: pixelated; flex-shrink: 0; background: #1d1a26; border: 1.5px solid #000; }
.item-row-info { flex: 1; min-width: 0; }
.item-row-title { font-size: 13px; font-weight: 900; }
.item-row-sub { font-size: 11px; color: #c5bfd4; }
.item-row-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

/* 军械工坊专属样式 */
.ws-layout { display: grid; grid-template-columns: 300px 1fr; gap: 10px; }
.ws-gun-stage {
  background: radial-gradient(circle, #332c44, #1b1724);
  border: 2.5px solid #0a090d;
  padding: 10px;
  text-align: center;
}
#wsPreviewCanvas { width: 168px; height: 168px; image-rendering: pixelated; }
.ws-slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 8px; }
.ws-slot-btn {
  background: #2c273a;
  border: 2px solid #0a090d;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  color: #fff;
}
.ws-slot-btn.active { border-color: #ffb82e; background: #38304a; }
.ws-slot-label { font-size: 10px; color: #a7a0ba; }
.ws-slot-val { font-size: 12px; font-weight: 800; }

/* 工坊内迷你靶场 */
.dummy-box {
  margin-top: 8px;
  background: #17141f;
  border: 2px solid #ffb82e;
  padding: 8px;
}
.dummy-arena {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.dummy-target {
  width: 68px; height: 68px;
  border: 2.5px solid #000;
  background: #2f283d;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  font-weight: 900; font-size: 11px;
}
.dummy-log { flex: 1; font-size: 11px; color: #e2dfec; line-height: 1.45; }

/* ===== RPG 双栏网格背包 + 无主之地枪械详情卡 ===== */
.bag-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 10px; align-items: start; }
.bag-eq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.bag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 310px; overflow-y: auto; padding: 2px; }

.gear-tile {
  position: relative;
  background: #231f2e;
  border: 2.5px solid #09080c;
  box-shadow: 2px 2px 0 #09080c;
  padding: 4px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.08s;
}
.gear-tile:hover { transform: translateY(-1px); }
.gear-tile.selected { outline: 2.5px solid #ffd74a; background: #332c44; }
.gear-tile canvas { width: 48px; height: 48px; image-rendering: pixelated; display: block; margin: 0 auto; }
.gear-tile-icon { font-size: 26px; line-height: 48px; height: 48px; }
.gear-tile-name { font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.gear-tile-lv {
  position: absolute; top: 2px; left: 3px;
  font-size: 9px; font-weight: 900; background: rgba(10,8,14,0.85); color: #ffd74a;
  padding: 0 3px; border: 1px solid #000;
}
.gear-tile-lv.red { background: #b81c28; color: #fff; }
.gear-tile-tag {
  position: absolute; top: 2px; right: 2px;
  font-size: 9px; font-weight: 900; padding: 0 3px; border: 1px solid #000;
}

.vh-card {
  background: linear-gradient(180deg, #1b1926 0%, #12101a 100%);
  border: 3px solid #09080c;
  box-shadow: 5px 5px 0 #09080c;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.48;
}
.vh-card-top {
  display: flex; gap: 10px; align-items: center;
  border-bottom: 2px solid #2e293d; padding-bottom: 8px; margin-bottom: 8px;
}
.vh-card-top canvas {
  width: 84px; height: 84px; image-rendering: pixelated;
  background: radial-gradient(circle, #302940, #16131f);
  border: 2px solid #09080c; flex-shrink: 0;
}
.vh-card-mfr { font-size: 11px; font-weight: 900; letter-spacing: 0.5px; }
.vh-card-title { font-size: 15px; font-weight: 900; margin: 2px 0; text-shadow: 2px 2px 0 #000; }
.vh-card-sec { border-top: 1px dashed #353048; margin: 6px 0; padding-top: 5px; }
.vh-card-part { font-size: 11px; color: #d6d2e0; }
.vh-card-red { color: #ff4757; font-style: italic; font-weight: 800; margin-top: 4px; }
.vh-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 2px solid #2e293d; }

/* ===== 完整 3 系 6 层技能树 ===== */
.skill-trees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.skill-tree-col {
  background: #1a1624;
  border: 2.5px solid #09080c;
  box-shadow: 3px 3px 0 #09080c;
  padding: 8px;
}
.skill-tree-hdr {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid #2e293d; padding-bottom: 5px; margin-bottom: 6px;
}
.skill-tier-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px;
  margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px dashed #292438;
}
.skill-tier-row.capstone { grid-template-columns: 1fr; border-bottom: none; margin-bottom: 0; }
.skill-node {
  position: relative;
  background: #252033;
  border: 2px solid #09080c;
  padding: 5px 6px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.08s;
}
.skill-node:hover:not(.locked) { transform: translateY(-1px); border-color: #ffd74a; }
.skill-node.locked { opacity: 0.45; cursor: not-allowed; background: #16131f; }
.skill-node.invested { border-color: #69f076; background: #1e2d25; }
.skill-node.maxed { border-color: #ffd74a; background: #332a1c; }
.skill-node-top { display: flex; justify-content: space-between; align-items: center; gap: 3px; font-weight: 900; font-size: 11px; }
.skill-node-rank { font-size: 10px; font-weight: 900; padding: 0 4px; background: #0d0b12; border: 1px solid #000; }
.skill-node-desc { font-size: 10px; color: #cfc9dc; line-height: 1.3; margin-top: 3px; }
.skill-node-mod { color: #42d4ff; font-weight: 900; }

/* ===== 竖屏手机自适应 ===== */
@media (max-width: 720px), (orientation: portrait) {
  .hud-left { padding: 4px 6px; gap: 5px; }
  .vital-bar { width: 84px; height: 12px; }
  .hud-btn { padding: 4px 6px; font-size: 11px; }
  #bottomHud {
    bottom: 132px;
    max-width: 98vw;
    transform: translateX(-50%) scale(0.92);
    transform-origin: bottom center;
  }
  .weapon-slots { gap: 3px; }
  .weapon-slot { min-width: 62px; max-width: 72px; padding: 3px 4px; gap: 3px; }
  .weapon-slot.med-slot { min-width: 50px; max-width: 58px; }
  .weapon-slot canvas { width: 24px; height: 24px; }
  .slot-name { font-size: 9px; }
  .slot-ammo { font-size: 8px; }
  .gear-pills { display: none; }
  .loot-card { bottom: 196px; }
  .ws-layout, .grid-2, .bag-layout, .skill-trees-grid { grid-template-columns: 1fr; }
  .bag-grid { grid-template-columns: repeat(3, 1fr); }
}
