/* ============ 长春工业大学 · 全景立体地图 UI ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background: #0b1526; color: #eaf2fb;
  user-select: none; -webkit-user-select: none;
}
#c3d { position: fixed; inset: 0; display: block; touch-action: none; }

/* ---------- 加载页 ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(1200px 700px at 50% 38%, #16355c 0%, #0b1526 62%, #060b14 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .8s ease; gap: 18px;
}
#loader.hide { opacity: 0; pointer-events: none; }
#loader .logo-ring {
  width: 92px; height: 92px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.14); border-top-color: #ffd54d;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loader h1 { font-size: 30px; letter-spacing: 10px; text-indent: 10px; font-weight: 700; }
#loader .en { font-size: 11px; letter-spacing: 3px; color: #7fa3c8; }
#loader .bar { width: 260px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
#loader .bar i { display: block; height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, #ffd54d, #ff9e64); transition: width .3s; }
#loader .tip { font-size: 12px; color: #7fa3c8; }

/* ---------- 顶栏 ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px 18px; pointer-events: none;
}
#topbar > * { pointer-events: auto; }
.brand { background: rgba(8,18,34,.62); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 10px 16px 9px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.brand h1 { font-size: 19px; letter-spacing: 2.5px; display: flex; align-items: center; gap: 9px; }
.brand h1 .dot { width: 9px; height: 9px; border-radius: 50%; background: #ffd54d; box-shadow: 0 0 10px #ffd54d; }
.brand .sub { margin-top: 3px; font-size: 11px; color: #9db8d6; letter-spacing: 1px; }
.brand .addr { margin-top: 2px; font-size: 11px; color: #6e8bab; }

.campus-tabs { display: flex; gap: 8px; }
.campus-tabs button {
  appearance: none; border: 1px solid rgba(255,255,255,.14); cursor: pointer;
  background: rgba(8,18,34,.62); backdrop-filter: blur(10px); color: #cfe0f2;
  padding: 9px 16px; border-radius: 12px; font-size: 13.5px; letter-spacing: 1px;
  font-family: inherit; transition: all .2s;
}
.campus-tabs button small { display: block; font-size: 10px; color: #7fa3c8; letter-spacing: 0; margin-top: 2px; }
.campus-tabs button:hover { border-color: rgba(255,213,77,.55); color: #fff; }
.campus-tabs button.active {
  background: linear-gradient(135deg, rgba(255,213,77,.92), rgba(255,158,100,.92));
  color: #1d1206; font-weight: 700; border-color: transparent;
  box-shadow: 0 4px 18px rgba(255,180,80,.35);
}
.campus-tabs button.active small { color: rgba(40,25,5,.75); }

.top-right-group { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; max-width: 60vw; }
.top-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-top {
  appearance: none; border: 1px solid rgba(255,255,255,.16); cursor: pointer;
  background: rgba(8,18,34,.64); backdrop-filter: blur(10px); color: #cfe0f2;
  padding: 6px 11px; border-radius: 10px; font-size: 12px;
  font-family: inherit; transition: all .2s; display: flex; align-items: center; gap: 4px;
}
.btn-top:hover { border-color: rgba(255,213,77,.6); color: #ffd54d; }
.btn-top.on { background: linear-gradient(135deg, rgba(255,213,77,.9), rgba(255,158,100,.9)); color: #1a1005; font-weight: bold; border-color: transparent; }

/* ---------- 左侧建筑列表 ---------- */
#sidebar {
  position: fixed; left: 14px; top: 96px; bottom: 86px; width: 254px; z-index: 15;
  background: rgba(8,18,34,.78); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  transition: transform .3s ease, opacity .3s ease;
}
#sidebar.hidden { transform: translateX(-285px); opacity: 0; pointer-events: none; }
.sheet-grab { display: none; width: 100%; height: 18px; align-items: center; justify-content: center; cursor: pointer; }
.sheet-grab span { width: 38px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.28); }
#sidebar .hd { padding: 11px 12px 9px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-title { display: flex; justify-content: space-between; align-items: center; }
.sidebar-title b { font-size: 13.5px; letter-spacing: 1px; color: #f0f6fc; }
.sidebar-hd-right { display: flex; align-items: center; gap: 6px; }
.btn-close-sidebar {
  border: none; background: transparent; color: #9db8d6; cursor: pointer;
  font-size: 14px; padding: 2px 6px; border-radius: 4px; transition: all .15s;
}
.btn-close-sidebar:hover { background: rgba(255,255,255,.1); color: #fff; }
.count-badge { font-size: 10.5px; padding: 1px 7px; border-radius: 9px; background: rgba(255,213,77,.15); color: #ffd54d; font-weight: bold; }

.cat-filter { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.c-chip {
  appearance: none; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #b3cde7; padding: 3px 7px; border-radius: 7px; font-size: 11px; cursor: pointer;
  font-family: inherit; transition: all .16s ease;
}
.c-chip:hover { border-color: rgba(255,213,77,.5); color: #fff; }
.c-chip.active { background: linear-gradient(135deg, rgba(255,213,77,.9), rgba(255,158,100,.9)); color: #1a1005; font-weight: 700; border-color: transparent; }

#sidebar .search { margin-top: 8px; position: relative; }
#sidebar .search input {
  width: 100%; padding: 7px 26px 7px 28px; border-radius: 9px; font-size: 12px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #eaf2fb;
  outline: none; font-family: inherit; transition: border-color .2s;
}
#sidebar .search input:focus { border-color: rgba(255,213,77,.7); }
#sidebar .search svg { position: absolute; left: 9px; top: 8px; width: 13px; height: 13px; opacity: .55; }
.search-clear {
  position: absolute; right: 7px; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.16);
  color: #cfe0f2; font-size: 10px; cursor: pointer; display: none;
  align-items: center; justify-content: center; transition: background .15s;
}
.search-clear:hover { background: rgba(255,255,255,.3); color: #fff; }
.search-clear.show { display: flex; }

.hot-chips { display: flex; gap: 5px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.hot-label { font-size: 10.5px; color: #7fa3c8; font-weight: 500; }
.h-chip {
  appearance: none; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.07);
  color: #cfe0f2; padding: 2px 7px; border-radius: 6px; font-size: 11px; cursor: pointer;
  transition: all 0.16s ease; font-family: inherit;
}
.h-chip:hover {
  background: rgba(255, 213, 77, 0.22); border-color: rgba(255, 213, 77, 0.6); color: #ffd54d;
}
.h-chip:active { transform: scale(0.95); }

#blist { flex: 1; overflow-y: auto; padding: 8px 8px 12px; }
#blist::-webkit-scrollbar { width: 5px; }
#blist::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
#blist .group { margin-top: 8px; }
#blist .group:first-child { margin-top: 0; }
#blist .gname { font-size: 10.5px; color: #7fa3c8; letter-spacing: 1px; padding: 3px 6px; display: flex; align-items: center; gap: 6px; }
#blist .gname i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
#blist .item {
  padding: 7px 9px; border-radius: 9px; font-size: 12.5px; cursor: pointer; color: #d7e4f2;
  display: flex; justify-content: space-between; align-items: center; transition: background .15s;
}
#blist .item:hover { background: rgba(255,255,255,.09); color: #fff; }
#blist .item.sel { background: linear-gradient(90deg, rgba(255,213,77,.22), rgba(255,213,77,.05)); color: #ffd54d; font-weight: bold; }
#blist .item mark { background: rgba(255,213,77,.35); color: #ffd54d; border-radius: 2px; padding: 0 1px; }
#blist .empty { padding: 18px 10px; text-align: center; color: #6e8bab; font-size: 12px; }

/* ---------- 右下信息卡 ---------- */
#infoCard {
  position: fixed; right: 16px; bottom: 88px; width: 330px; max-height: 58vh; z-index: 18;
  background: rgba(8,18,34,.84); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); overflow: hidden;
  transform: translateY(16px); opacity: 0; pointer-events: none; transition: all .28s ease;
  display: flex; flex-direction: column;
}
#infoCard.show { transform: none; opacity: 1; pointer-events: auto; }
#infoCard .ic-hd { padding: 13px 15px 10px; display: flex; align-items: flex-start; gap: 10px;
  background: linear-gradient(135deg, rgba(255,213,77,.18), rgba(255,158,100,.06)); flex-shrink: 0; }
#infoCard .ic-hd .cat { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; box-shadow: 0 0 8px currentColor; }
#infoCard .ic-hd h3 { font-size: 15.5px; letter-spacing: .5px; line-height: 1.35; }
#infoCard .ic-hd .campus { font-size: 10.5px; color: #9db8d6; margin-top: 2px; }
#infoCard .ic-x { margin-left: auto; cursor: pointer; color: #9db8d6; font-size: 16px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
#infoCard .ic-x:hover { color: #fff; background: rgba(255,255,255,.1); }

.ic-pic { width: 100%; height: 140px; background: #070e1a; overflow: hidden; display: none; position: relative; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.ic-pic.has-img { display: block; }
.ic-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; cursor: pointer; }
.ic-pic:hover img { transform: scale(1.05); }
.ic-pic .pic-tag { position: absolute; right: 8px; bottom: 8px; font-size: 10px; background: rgba(8,18,34,.75); color: #ffd54d; padding: 2px 7px; border-radius: 5px; backdrop-filter: blur(4px); border: 1px solid rgba(255,213,77,.3); pointer-events: none; }

#infoCard .ic-bd { padding: 8px 15px 14px; overflow-y: auto; flex: 1; }
#infoCard .ic-bd::-webkit-scrollbar { width: 5px; }
#infoCard .ic-bd::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.ic-walk {
  display: none; margin-bottom: 6px; padding: 5px 9px; border-radius: 8px;
  background: rgba(46,204,113,.15); border: 1px solid rgba(46,204,113,.35);
  color: #55efc4; font-size: 11.5px; line-height: 1.4;
}
.ic-walk.show { display: block; }
.ic-walk b { color: #ffeaa7; font-weight: bold; }
#infoCard .stats { display: inline-block; margin: 4px 0 4px; padding: 4px 9px; border-radius: 8px;
  background: rgba(77,163,255,.14); color: #9fd0ff; font-size: 11.5px; }
#infoCard .desc { margin-top: 6px; font-size: 12.8px; line-height: 1.75; color: #d7e4f2; text-align: justify; }
#infoCard .ic-ft { margin-top: 10px; display: flex; gap: 8px; }
#infoCard .ic-ft button {
  flex: 1; padding: 7px 0; border-radius: 9px; font-size: 12px; font-family: inherit; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #eaf2fb; transition: all .2s;
}
#infoCard .ic-ft button:hover { border-color: rgba(255,213,77,.6); color: #ffd54d; background: rgba(255,213,77,.1); }
#infoCard .ic-ft #icNav {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(0, 150, 255, 0.14));
  border-color: rgba(0, 229, 255, 0.45);
  color: #72ecfc;
  font-weight: 600;
}
#infoCard .ic-ft #icNav:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.4), rgba(0, 150, 255, 0.28));
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

/* ---------- 底部控制条 ---------- */
#dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20;
  display: flex; gap: 6px; align-items: center;
  background: rgba(8,18,34,.74); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 7px 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.45); max-width: 95vw;
}
#dock button {
  appearance: none; border: none; cursor: pointer; font-family: inherit;
  background: transparent; color: #cfe0f2; font-size: 12.5px; letter-spacing: .5px;
  padding: 8px 12px; border-radius: 10px; display: flex; align-items: center; gap: 5px; transition: all .18s;
  white-space: nowrap;
}
#dock button:hover { background: rgba(255,255,255,.1); color: #fff; }
#dock button.on { background: linear-gradient(135deg, rgba(255,213,77,.9), rgba(255,158,100,.9)); color: #1d1206; font-weight: 700; }
#dock .sep { width: 1px; height: 20px; background: rgba(255,255,255,.14); margin: 0 2px; }

#hint {
  position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%); z-index: 10;
  font-size: 11.5px; color: #d0e4f7; letter-spacing: 0.6px; pointer-events: none;
  background: rgba(8, 18, 34, 0.68); backdrop-filter: blur(8px);
  padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); transition: opacity 0.8s ease, transform 0.8s ease;
  white-space: nowrap; max-width: 90vw; text-overflow: ellipsis; overflow: hidden;
}
#hint.fade { opacity: 0; transform: translateX(-50%) translateY(8px); }

/* ---------- 指北针 ---------- */
#compass {
  position: fixed; right: 16px; top: 130px; z-index: 15; width: 62px; height: 62px;
  border-radius: 50%; background: rgba(8,18,34,.68); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
}
#compass:hover {
  background: rgba(14,28,50,.85); border-color: rgba(255,213,77,.6);
  box-shadow: 0 0 16px rgba(255,213,77,.35); transform: scale(1.05);
}
#compass:active { transform: scale(0.96); }
#compass .ring { position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.2); }
#compass svg { transition: transform 0s linear; }

/* ---------- 校区简介条 ---------- */
#campusIntro {
  position: fixed; top: 130px; right: 92px; z-index: 14; width: 300px;
  background: rgba(8,18,34,.68); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 13px; padding: 11px 13px;
  font-size: 12px; line-height: 1.7; color: #b9cee6;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
#campusIntro b { color: #ffd54d; font-size: 13px; }
#campusIntro .warn { color: #ffb36b; }
#campusIntro.hide { display: none; }

/* ---------- 截屏/分享 Toast ---------- */
.snap-toast {
  position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: rgba(8,18,34,.92); backdrop-filter: blur(12px);
  border: 1px solid #ffd54d; color: #ffd54d; padding: 10px 22px; border-radius: 12px;
  font-size: 13px; font-weight: bold; letter-spacing: 1px; z-index: 9999;
  box-shadow: 0 8px 30px rgba(0,0,0,.6); opacity: 0; pointer-events: none;
  transition: all .3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.snap-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 使用帮助弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,9,18,.72); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  opacity: 1; pointer-events: auto; transition: opacity .25s ease;
}
.modal-overlay.hide { opacity: 0; pointer-events: none; }
.modal-card {
  background: rgba(11,21,38,.92); border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; width: 540px; max-width: 94vw; max-height: 86vh;
  box-shadow: 0 16px 50px rgba(0,0,0,.65); overflow: hidden;
  display: flex; flex-direction: column;
}
.modal-hd {
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(135deg, rgba(255,213,77,.18), rgba(255,158,100,.06));
}
.modal-hd h3 { font-size: 16px; color: #ffd54d; letter-spacing: .5px; }
.modal-x { cursor: pointer; color: #9db8d6; font-size: 18px; padding: 2px 6px; border-radius: 6px; }
.modal-x:hover { color: #fff; background: rgba(255,255,255,.1); }
.modal-bd { padding: 16px 20px; overflow-y: auto; flex: 1; font-size: 12.5px; color: #d0e1f3; line-height: 1.7; }
.modal-bd::-webkit-scrollbar { width: 5px; }
.modal-bd::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.help-sec { margin-bottom: 16px; }
.help-sec:last-child { margin-bottom: 0; }
.help-sec h4 { font-size: 13.5px; color: #ffd54d; margin-bottom: 6px; }
.help-sec ul { list-style: disc; padding-left: 20px; }
.help-sec li { margin-bottom: 4px; }
.kbd-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; margin-top: 6px;
}
kbd {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px; padding: 1px 6px; font-size: 11px; font-family: monospace; color: #ffd54d;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.modal-ft {
  padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: #7fa3c8;
}
.modal-btn {
  appearance: none; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ffd54d, #ff9e64);
  color: #1a1005; font-weight: bold; padding: 7px 18px; border-radius: 8px;
  font-size: 12px; font-family: inherit; transition: opacity .2s;
}
.modal-btn:hover { opacity: .9; }

/* ---------- 响应式与移动端适配 ---------- */
@media (max-width: 960px) {
  #sidebar { width: 230px; }
  #dock button { padding: 7px 9px; font-size: 11.5px; }
}

@media (max-width: 768px) {
  #sidebar {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 56vh;
    border-radius: 20px 20px 0 0; transform: translateY(0); opacity: 1; pointer-events: auto;
    box-shadow: 0 -8px 30px rgba(0,0,0,.6);
  }
  #sidebar.hidden {
    transform: translateY(105%); opacity: 0; pointer-events: none;
  }
  .sheet-grab { display: flex; }
  #infoCard {
    left: 12px; right: 12px; width: auto; bottom: 74px; max-height: 48vh;
  }
  #topbar { padding: 10px 12px; }
  .brand h1 { font-size: 14px; letter-spacing: 1px; }
  .brand .sub, .brand .addr { display: none; }
  .top-right-group { gap: 4px; }
  .top-actions { gap: 4px; }
  .btn-top { padding: 4px 8px; font-size: 11px; }
  .campus-tabs button { padding: 6px 10px; font-size: 12px; }
  .campus-tabs button small { display: none; }
  #dock {
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 5px 8px; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  #dock::-webkit-scrollbar { display: none; }
  #dock button { padding: 6px 9px; font-size: 11px; }
  #compass { width: 48px; height: 48px; top: 110px; right: 12px; }
  #compass svg { width: 42px; height: 42px; }
  #campusIntro { display: none; }
  #hint { display: none; }
  .kbd-grid { grid-template-columns: 1fr; }
}

/* 第一人称游戏 UI */
#crosshair {
  position: absolute; top: 50%; left: 50%; width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.8); border-radius: 50%;
  transform: translate(-50%, -50%); display: none; pointer-events: none; z-index: 1000;
  box-shadow: 0 0 4px rgba(0,0,0,0.8);
  transition: transform 0.1s;
}
.game-mode-active #crosshair { display: block; }
.game-mode-active:active #crosshair { transform: translate(-50%, -50%) scale(0.8); }

#gameOverlay {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(8px);
  padding: 12px 24px;
  border-radius: 30px;
  color: white;
  text-align: center;
  pointer-events: none;
  z-index: 10000;
  display: none;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.go-title {
  font-size: 13px; font-weight: 600; color: #7dffa8; margin-bottom: 6px;
}
.go-keys {
  font-size: 12px; opacity: 0.8;
}
.go-keys span {
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.game-mode-active #crosshair, .game-mode-active #gameOverlay {
  display: block;
}

#radarMap {
  position: fixed; bottom: 24px; right: 24px; width: 170px; height: 170px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(8, 18, 34, 0.72); backdrop-filter: blur(10px);
  z-index: 1000; box-shadow: 0 0 24px rgba(0, 255, 255, 0.25);
  pointer-events: none; display: none;
}
@media (max-width: 768px) {
  #radarMap { width: 120px; height: 120px; bottom: 84px; right: 14px; }
}

/* 移动端触控虚拟摇杆 */
.mobile-joy-overlay {
  position: fixed; inset: 0; z-index: 10001; pointer-events: none; display: none;
}
.joy-stick-zone {
  position: absolute; bottom: 28px; left: 24px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(8, 18, 34, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px);
  pointer-events: auto; touch-action: none;
}
.joy-thumb {
  position: absolute; top: 35px; left: 35px; width: 50px; height: 50px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe680, #ffb300);
  box-shadow: 0 0 14px rgba(255, 213, 77, 0.55); pointer-events: none;
  transform: translate(0px, 0px);
}
.joy-actions {
  position: absolute; bottom: 28px; right: 24px; display: flex; flex-direction: column;
  gap: 12px; pointer-events: auto;
}
.joy-btn {
  appearance: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(8, 18, 34, 0.72);
  color: #ffd54d; font-size: 17px; font-weight: bold; backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  touch-action: none; user-select: none; box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  transition: all 0.15s ease;
}
.joy-btn small { font-size: 9.5px; color: #b3cde7; margin-top: -2px; font-weight: normal; }
.joy-btn:active, .joy-btn.active {
  background: linear-gradient(135deg, rgba(255, 213, 77, 0.9), rgba(255, 158, 100, 0.9));
  color: #1a1005; transform: scale(0.94);
}

@media (max-width: 960px), (pointer: coarse) {
  .game-mode-active #gameOverlay { display: none !important; }
  .game-mode-active .mobile-joy-overlay { display: block; }
}

