/* 战雷风深色金属 UI */
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #0b0d10;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #d8dde3; -webkit-user-select: none; user-select: none;
  touch-action: none; overscroll-behavior: none;
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hud { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

#menu {
  position: absolute; inset: 0; display: none; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(52,60,70,.55), rgba(10,12,16,.96) 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px),
    #0c0f13;
}
#menu.show { display: flex; }

.wt-top { flex: 0 0 50px; display: flex; align-items: center; gap: 16px; padding: 0 18px;
  background: linear-gradient(180deg, rgba(28,33,39,.98), rgba(16,19,23,.98));
  border-bottom: 1px solid rgba(150,160,172,.22); }
.wt-brand { font-size: 17px; letter-spacing: 5px; color: #e6c07a; font-weight: 700; }
.wt-nav { display: flex; gap: 2px; margin-left: 8px; }
.wt-tab { all: unset; cursor: pointer; padding: 7px 16px; font-size: 13px; color: #9aa4b0;
  border-bottom: 2px solid transparent; letter-spacing: 1px; }
.wt-tab:hover { color: #d6dde6; background: rgba(255,255,255,.04); }
.wt-tab.active { color: #f0d49a; border-bottom-color: #c99b45; background: rgba(201,155,69,.10); }
.wt-br { margin-left: auto; font-size: 11px; color: #6c7683; letter-spacing: 1px; }

.wt-body { flex: 1 1 auto; display: flex; min-height: 0; }
.wt-side { flex: 0 0 226px; padding: 16px 14px; border-right: 1px solid rgba(150,160,172,.14);
  background: linear-gradient(180deg, rgba(18,22,27,.92), rgba(12,15,19,.92)); overflow: auto; }
.wt-side h3, .wt-right h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: 2px; color: #b28f4e; font-weight: 600; }
.wt-row { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0;
  border-bottom: 1px dashed rgba(150,160,172,.12); color: #9aa4b0; }
.wt-row b { color: #dfe6ee; font-weight: 500; }
.wt-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; padding: 14px 16px; gap: 12px; overflow: auto; }
.wt-right { flex: 0 0 220px; padding: 16px 14px; border-left: 1px solid rgba(150,160,172,.14);
  background: linear-gradient(180deg, rgba(18,22,27,.92), rgba(12,15,19,.92)); overflow: auto; }

.wt-veh { cursor: pointer; position: relative; padding: 14px 14px 12px;
  background: linear-gradient(160deg, rgba(38,44,52,.95), rgba(20,24,29,.95));
  border: 1px solid rgba(201,155,69,.72); border-radius: 3px; }
.wt-veh .nm { font-size: 14px; color: #eef2f7; letter-spacing: 1px; }
.wt-veh .sb { margin-top: 6px; font-size: 11px; color: #8b95a2; line-height: 1.6; }
.wt-veh .tag, .wt-mode .tag { display: inline-block; margin-top: 9px; padding: 2px 8px; font-size: 10px;
  color: #d8b877; border: 1px solid rgba(201,155,69,.45); border-radius: 2px; letter-spacing: 1px; }

.loadout-list { display: flex; flex-direction: column; gap: 4px; }
.loadout-item { all: unset; cursor: pointer; font-size: 12px; padding: 6px 9px; color: #9aa4b0;
  border: 1px solid rgba(150,160,172,.18); border-radius: 2px; display: flex; justify-content: space-between; }
.loadout-item:hover { color: #e2e8ef; border-color: rgba(201,155,69,.5); }
.loadout-item.active { color: #1a1207; background: linear-gradient(180deg, #d8b46a, #b98f3e); border-color: #d8b46a; }

.wt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wt-mode { all: unset; cursor: pointer; padding: 14px; border-radius: 3px;
  background: linear-gradient(160deg, rgba(36,42,50,.95), rgba(19,23,28,.95));
  border: 1px solid rgba(150,160,172,.24); transition: .14s; }
.wt-mode:hover { border-color: rgba(201,155,69,.7); transform: translateY(-2px); }
.wt-mode.active { border-color: #d8b46a; box-shadow: 0 0 0 1px rgba(216,180,106,.35) inset; }
.wt-mode .nm { font-size: 15px; color: #eef2f7; }
.wt-mode .sb { margin-top: 6px; font-size: 11.5px; color: #8b95a2; line-height: 1.6; }

.wt-info { flex: 1 1 auto; padding: 12px 14px; background: rgba(14,17,21,.86);
  border: 1px solid rgba(150,160,172,.16); border-radius: 3px; overflow: auto; font-size: 12.5px; line-height: 1.85; }
.wt-info b { color: #d9c48c; font-weight: 500; }

.wt-bottom { flex: 0 0 66px; display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: linear-gradient(180deg, rgba(16,19,23,.98), rgba(10,12,16,.98)); border-top: 1px solid rgba(150,160,172,.2); }
.wt-hint { font-size: 12px; color: #7d8794; }
.wt-go { all: unset; cursor: pointer; padding: 9px 26px; font-size: 14px; letter-spacing: 2px; color: #1a1207;
  background: linear-gradient(180deg, #e0bb6c, #b98f3e); border-radius: 2px; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.wt-go:hover { filter: brightness(1.08); }
.wt-go.big { margin-left: auto; padding: 11px 52px; font-size: 16px; }
.wt-ghost { all: unset; cursor: pointer; padding: 8px 18px; font-size: 13px; color: #c6ced8;
  border: 1px solid rgba(150,160,172,.35); border-radius: 2px; text-align: center; }
.wt-ghost:hover { border-color: #d8b46a; color: #f0d49a; }

.tab-page { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; }
.hidden { display: none !important; }

.mp-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.mp-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #8f99a6; }
.mp-form label.chk { flex-direction: row; align-items: center; gap: 8px; color: #c6ced8; }
.mp-form input[type=text], .mp-form select {
  background: rgba(8,10,13,.9); border: 1px solid rgba(150,160,172,.3); color: #e4eaf1;
  padding: 8px 10px; font-size: 13px; border-radius: 2px; outline: none; font-family: inherit; }
.mp-form input[type=text]:focus, .mp-form select:focus { border-color: #d8b46a; }
.mp-row { display: flex; gap: 10px; margin-top: 4px; }
.mp-status { font-size: 12px; color: #9aa4b0; padding: 6px 0; }
.mp-status.ok { color: #8cff9a; }
.mp-status.err { color: #ff7a6a; }
.mp-rooms { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.mp-room { display: flex; justify-content: space-between; padding: 6px 9px; background: rgba(20,24,29,.8);
  border: 1px solid rgba(150,160,172,.18); border-radius: 2px; color: #b9c3ce; }

#pause { position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(4,6,9,.72); backdrop-filter: blur(2px); }
#pause.show { display: flex; }
.pause-box { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: 260px;
  padding: 20px; background: linear-gradient(160deg, rgba(30,35,42,.98), rgba(14,17,21,.98));
  border: 1px solid rgba(201,155,69,.45); border-radius: 3px; }
.pause-box h2 { margin: 0 0 6px; font-size: 16px; letter-spacing: 3px; color: #e6c07a; text-align: center; }
.pause-box .hint { font-size: 11px; color: #7d8794; text-align: center; }

#loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #0b0d10; color: #7d8794; font-size: 13px; letter-spacing: 2px; z-index: 10; }
#loading.hide { display: none; }

@media (max-width: 820px) {
  .wt-side, .wt-right { display: none; }
  .wt-cards { grid-template-columns: 1fr; }
  .wt-brand { letter-spacing: 2px; font-size: 15px; }
  .wt-tab { padding: 6px 10px; font-size: 12px; }
  .wt-go.big { padding: 10px 26px; font-size: 15px; }
}
