/* ============================================================
   Gram Hero · 布局与屏幕（桌面横屏 / 手机竖屏双形态）
   ============================================================ */

.app { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }

/* ---------- 启动页 ---------- */
.boot-splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.boot-logo {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #ffe9ad, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.boot-sub { color: var(--text-faint); animation: boot-blink 1.6s ease infinite; }
@keyframes boot-blink { 50% { opacity: 0.4; } }

/* ---------- 登录 ---------- */
.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
}
.login-card {
  width: min(400px, 100%);
  padding: 30px 28px 26px;
  backdrop-filter: blur(6px);
}
.login-card h1 {
  text-align: center;
  font-size: 34px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  background: linear-gradient(180deg, #ffe9ad, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-card .sub { text-align: center; color: var(--text-dim); margin-bottom: 24px; font-size: 13px; letter-spacing: .3em; }

/* ---------- 应用外壳 ---------- */
.shell { flex: 1; display: flex; min-height: 0; }

.nav-rail {
  width: 176px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  gap: 4px;
  background: var(--panel-strong);
  border-right: 1px solid var(--line-soft);
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 4px 10px 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
  position: relative;
}
.nav-item:hover { color: var(--text); background: rgba(45, 68, 100, 0.25); }
.nav-item.active { color: var(--gold); background: linear-gradient(90deg, rgba(232,193,90,.12), transparent); }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.nav-item .ico { font-size: 17px; width: 22px; text-align: center; }
.nav-item .badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  padding-top: calc(10px + var(--safe-top));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 13, 22, 0.85);
  backdrop-filter: blur(8px);
}
.topbar .who { display: flex; flex-direction: column; line-height: 1.25; }
.topbar .who .name { font-weight: 700; font-size: 14px; }
.topbar .who .lv { font-size: 12px; color: var(--moon); }
.currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 99px;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  font-size: 13.5px;
  font-weight: 700;
}
.currency .ico { font-size: 15px; }
.currency.gold { color: var(--gold); }
.currency.yb { color: #8ecbff; }
.currency.mt { color: #a5e8d0; }

/* ---------- 内容区 ---------- */
.screen-host { flex: 1; overflow-y: auto; padding: 18px; }
.screen { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.screen-title { font-size: 20px; font-weight: 800; letter-spacing: 0.06em; }
.screen-title small { font-size: 13px; color: var(--text-faint); font-weight: 400; margin-left: 10px; }

/* ---------- 底部导航（移动端） ---------- */
.tabbar {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 13, 22, 0.96);
  backdrop-filter: blur(10px);
  padding-bottom: var(--safe-bottom);
}
.tabbar .tb-item {
  flex: 1;
  padding: 8px 0 7px;
  border: none;
  background: none;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
}
.tabbar .tb-item .ico { font-size: 20px; line-height: 1.1; }
.tabbar .tb-item.active { color: var(--gold); }
.tabbar .tb-item .badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   主页 · 远征
   ============================================================ */
.home-grid { display: grid; grid-template-columns: 330px 1fr; gap: 16px; align-items: start; }

.route-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  transition: all 0.14s;
  overflow: hidden;
}
.route-card:hover { border-color: #3a5273; transform: translateY(-1px); }
.route-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232,193,90,.35), var(--shadow); }
.route-card.locked { opacity: 0.55; }
.route-card img.thumb {
  width: 86px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.route-card .r-name { font-weight: 700; font-size: 14.5px; }
.route-card .r-meta { font-size: 12px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; }
.route-card .lock-tip {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 11px;
  color: var(--danger-bright);
}

.console-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05080d;
}
.console-stage canvas { display: block; width: 100%; height: auto; }
.stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  pointer-events: none;
}
.stage-overlay .top-row { display: flex; justify-content: space-between; align-items: flex-start; }
.stage-status {
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(5, 9, 14, 0.72);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.stage-status.running { color: var(--primary-bright); border-color: rgba(94,203,132,.4); }
.stage-status.finished { color: var(--gold); border-color: rgba(232,193,90,.5); animation: pulse-gold 1.6s infinite; }
.stage-timer {
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(5, 9, 14, 0.72);
  border: 1px solid var(--line);
  font-size: 13px;
  font-family: var(--mono);
  backdrop-filter: blur(4px);
}
.stage-kpis { display: flex; gap: 8px; }
.stage-kpi {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(5, 9, 14, 0.72);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--text-dim);
  backdrop-filter: blur(4px);
}
.stage-kpi b { color: var(--text); font-family: var(--mono); }

.capacity-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cap-box { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel-soft); }
.cap-box .cb-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.cap-box .cb-head b { color: var(--text); font-family: var(--mono); }

.battle-log {
  height: 190px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
}
.battle-log .ev { color: var(--text-dim); animation: fade-in 0.3s; }
.battle-log .ev.kill { color: #ffb59f; }
.battle-log .ev.loot { color: var(--primary-bright); }
.battle-log .ev.safe { color: var(--gold); }
.battle-log .ev.fail { color: var(--danger-bright); font-weight: 700; }
.battle-log .ev.success { color: var(--gold); font-weight: 700; }
.battle-log .ev time { color: var(--text-faint); font-size: 11px; margin-right: 8px; font-family: var(--mono); }

/* 结算弹窗 */
.settle-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-top: 10px; }
.settle-banner {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.settle-banner.win { background: linear-gradient(180deg, rgba(232,193,90,.16), transparent); color: var(--gold); border: 1px solid rgba(232,193,90,.35); }
.settle-banner.lose { background: linear-gradient(180deg, rgba(224,85,63,.14), transparent); color: var(--danger-bright); border: 1px solid rgba(224,85,63,.35); }

/* ============================================================
   仓库
   ============================================================ */
.wh-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.equip-panel .slot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.equip-panel .slot-row:last-child { border-bottom: none; }
.equip-panel .slot-cell { width: 46px; flex-shrink: 0; }
.equip-panel .slot-name { font-size: 12px; color: var(--text-faint); }
.equip-panel .slot-item { font-size: 13px; font-weight: 600; }
.gear-score { text-align: center; padding: 10px; font-size: 13px; color: var(--text-dim); }
.gear-score b { color: var(--moon); font-size: 18px; font-family: var(--mono); }

.wh-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.carry-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.carry-strip .item-cell { width: 56px; }

/* 物品详情 */
.detail-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.detail-head .item-cell { width: 72px; cursor: default; }
.detail-head .item-cell:hover { transform: none; }
.detail-stats { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.detail-stats .st { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); }
.detail-stats .st span:first-child { color: var(--text-dim); }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* ============================================================
   市场
   ============================================================ */
.market-list { display: flex; flex-direction: column; gap: 8px; }
.listing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  transition: border-color 0.12s;
}
.listing-row:hover { border-color: #3a5273; }
.listing-row .item-cell { width: 46px; flex-shrink: 0; cursor: default; }
.listing-row .item-cell:hover { transform: none; box-shadow: none; }
.listing-row .li-name { font-weight: 700; font-size: 14px; }
.listing-row .li-sub { font-size: 12px; color: var(--text-faint); }
.listing-row .li-price { margin-left: auto; text-align: right; }
.listing-row .li-price .p { color: var(--gold); font-weight: 800; font-family: var(--mono); font-size: 15px; }
.listing-row .li-price .u { font-size: 11px; color: var(--text-faint); }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.fee-table { font-size: 13px; color: var(--text-dim); display: flex; flex-direction: column; gap: 6px; background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 10px; }
.fee-table .fr { display: flex; justify-content: space-between; }
.fee-table .fr b { font-family: var(--mono); }

/* ============================================================
   打造
   ============================================================ */
.craft-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.recipe-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s;
}
.recipe-item:hover { background: rgba(45, 68, 100, 0.2); }
.recipe-item.active { border-color: var(--gold); background: rgba(232, 193, 90, 0.07); }
.recipe-item img { width: 40px; height: 40px; object-fit: contain; }
.recipe-item .rc-name { font-weight: 700; font-size: 14px; }
.recipe-item .rc-time { font-size: 12px; color: var(--text-faint); }
.mat-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.mat-row .item-cell { width: 38px; cursor: default; }
.mat-row .item-cell:hover { transform: none; }
.mat-row .have { margin-left: auto; font-family: var(--mono); font-weight: 700; }
.mat-row .have.ok { color: var(--primary-bright); }
.mat-row .have.lack { color: var(--danger-bright); }

.job-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}
.job-card .jc-name { font-weight: 700; }
.job-card .jc-timer { font-family: var(--mono); font-size: 13px; color: var(--moon); }

/* ============================================================
   图鉴 · 挖矿
   ============================================================ */
.mining-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.mining-hero canvas { display: block; width: 100%; }
.mining-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat-tile { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel-soft); }
.stat-tile .st-label { font-size: 12px; color: var(--text-faint); }
.stat-tile .st-value { font-size: 20px; font-weight: 800; font-family: var(--mono); color: var(--gold); margin-top: 2px; }
.stat-tile .st-value.moon { color: var(--moon); }

.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.coll-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel-soft);
  cursor: pointer;
  transition: transform 0.1s;
  position: relative;
}
.coll-card:hover { transform: translateY(-2px); }
.coll-card img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; }
.coll-card .cc-name { font-size: 12px; font-weight: 700; text-align: center; padding: 0 6px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-card .cc-sub { font-size: 11px; color: var(--text-faint); text-align: center; padding-bottom: 8px; }
.coll-card .lv-stars { position: absolute; top: 6px; right: 8px; color: var(--gold); font-size: 12px; text-shadow: 0 1px 3px #000; }

/* ============================================================
   邮件 / 任务 / 赛季
   ============================================================ */
.mail-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}
.mail-row.unclaimed { border-color: rgba(232, 193, 90, 0.35); }
.mail-row .m-title { font-weight: 700; font-size: 14px; }
.mail-row .m-sub { font-size: 12px; color: var(--text-faint); }
.mail-row .m-attach { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

.mission-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}
.mission-row .ms-name { font-weight: 700; }
.mission-row .ms-desc { font-size: 12.5px; color: var(--text-dim); }
.mission-row .ms-progress { width: 130px; }

/* ---- 赛季 v2 ---- */
.season-hero { position: relative; overflow: hidden; }
.season-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 200px at 85% 0%, rgba(232, 193, 90, 0.14), transparent 60%),
    radial-gradient(400px 220px at 8% 100%, rgba(88, 166, 255, 0.10), transparent 60%);
  pointer-events: none;
}
.season-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  flex-wrap: wrap;
}
.season-ring { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.season-ring-lv {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(232, 193, 90, 0.4);
}
.season-ring-lv small { font-size: 13px; margin-right: 2px; color: var(--text-dim); }
.season-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe9ad, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.season-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
}
.sn2 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 96px;
  flex-shrink: 0;
  scroll-snap-align: center;
  opacity: 0.55;
}
.sn2.reached { opacity: 1; }
.sn2.current .sn2-lv {
  background: linear-gradient(180deg, #8a6a20, #6b5117);
  color: #ffe9ad;
  box-shadow: 0 0 10px rgba(232, 193, 90, 0.4);
}
.sn2-lv {
  text-align: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  padding: 3px 0;
  border-radius: 5px;
  background: var(--panel-soft);
  color: var(--text-dim);
  border: 1px solid var(--line-soft);
}
.sn2-chip {
  position: relative;
  height: 58px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--panel-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  text-align: center;
}
.sn2-chip.premium { border-color: rgba(232, 193, 90, 0.3); background: linear-gradient(160deg, rgba(232,193,90,.08), var(--panel-soft)); }
.sn2-chip-label { font-size: 11.5px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sn2-chip.claimed { opacity: 0.45; }
.sn2-chip.locked { opacity: 0.5; filter: saturate(0.5); }
.sn2-chip.claimable {
  cursor: pointer;
  border-color: rgba(232, 193, 90, 0.65);
  animation: pulse-gold 1.8s infinite;
}
.sn2-chip.claimable:hover { transform: translateY(-2px); }
.sn2-chip.empty { opacity: 0.25; color: var(--text-faint); }
.sn2-mark {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #24344a;
  color: var(--text-dim);
}
.sn2-mark.glow { background: var(--gold); color: #201502; box-shadow: 0 0 8px rgba(232, 193, 90, 0.7); }

.genesis-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.genesis-card {
  min-width: 92px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 8px 6px 6px;
  flex-shrink: 0;
  text-align: center;
}
.genesis-icon { position: relative; width: 60px; height: 60px; margin: 0 auto; }
.genesis-icon img, .genesis-icon > div { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.genesis-name { font-size: 11px; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   大地图 PK · 搜打撤
   ============================================================ */
.pvp-stage { position: relative; }
.pvp-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  border-radius: var(--radius);
}
.pvp-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 10px 12px;
}
.pvp-topbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pvp-hp {
  position: relative;
  width: 190px;
  height: 20px;
  border-radius: 99px;
  background: rgba(5, 9, 14, 0.8);
  border: 1px solid var(--line);
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.pvp-hp-fill { height: 100%; border-radius: 99px; transition: width 0.4s ease; }
.pvp-hp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--mono);
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.rule-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  font-size: 12.5px;
  color: var(--text-dim);
}
.rule-tile b { color: var(--gold); font-size: 14px; }

.pvp-minimap {
  position: absolute;
  top: 44px;
  right: 12px;
  /* 覆盖 .console-stage canvas 的 100% 宽度通配，固定为真实小地图尺寸 */
  width: 132px !important;
  height: 108px !important;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  opacity: 0.92;
}
.pvp-canvas { image-rendering: pixelated; }

/* 虚拟摇杆（仅触屏显示） */
.vjoy {
  display: none;
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 32, 50, 0.55), rgba(10, 16, 26, 0.75));
  border: 2px solid rgba(127, 212, 193, 0.35);
  touch-action: none;
  z-index: 5;
}
.vjoy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(160, 230, 210, 0.9), rgba(60, 120, 105, 0.9));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.05s linear;
}
@media (pointer: coarse) {
  .vjoy { display: block; }
}

/* 匹配雷达 */
.match-panel { border-color: rgba(232, 193, 90, 0.35); }
.match-radar {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid rgba(127, 212, 193, 0.5);
  margin-bottom: 6px;
}
.match-radar::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 212, 193, 0.7), transparent 70%);
  animation: radar-core 1.6s ease-in-out infinite;
}
.match-radar i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(127, 212, 193, 0.55);
  animation: radar-ring 2.4s ease-out infinite;
}
.match-radar i:nth-child(2) { animation-delay: 0.8s; }
.match-radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar-ring {
  from { transform: scale(0.4); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}
@keyframes radar-core { 50% { opacity: 0.4; } }

/* ============================================================
   CSGO 式开箱
   ============================================================ */
.case-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 6, 10, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  animation: fade-in 0.25s ease;
}
.case-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 193, 90, 0.4);
}
.case-viewport {
  position: relative;
  width: min(920px, 94vw);
  height: 170px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #33507a;
  background: linear-gradient(180deg, #0b1220, #070c14);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
  transition: opacity 0.4s;
}
.case-viewport.dimmed { opacity: 0.25; }
.case-track {
  display: flex;
  gap: 10px;
  padding: 16px 0;
  will-change: transform;
}
.case-card {
  flex: 0 0 128px;
  height: 138px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  background: linear-gradient(160deg, rgba(38, 56, 82, 0.5), rgba(10, 16, 26, 0.8));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px 8px;
}
.case-card-icon { position: relative; width: 78px; height: 78px; }
.case-card-icon img, .case-card-icon > div { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.case-card-name {
  margin-top: auto;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.case-pointer {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2.5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold), rgba(232, 193, 90, 0.25), var(--gold));
  box-shadow: 0 0 12px rgba(232, 193, 90, 0.8);
  z-index: 3;
}
.case-pointer::before, .case-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
}
.case-pointer::before { top: -2px; border-top-color: var(--gold); }
.case-pointer::after { bottom: -2px; border-bottom-color: var(--gold); }
.case-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.case-shade.left { left: 0; background: linear-gradient(90deg, rgba(7, 12, 20, 0.95), transparent); }
.case-shade.right { right: 0; background: linear-gradient(-90deg, rgba(7, 12, 20, 0.95), transparent); }
.case-viewport.ticking .case-pointer { animation: pointer-tick 0.22s ease; }
@keyframes pointer-tick { 30% { transform: translateX(-50%) scaleY(0.96); } }

.case-reveal {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 52px;
  border-radius: 20px;
  background: rgba(3, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(150, 190, 235, 0.15);
  animation: reveal-pop 0.5s cubic-bezier(0.2, 1.5, 0.35, 1);
}
.case-viewport.dimmed { opacity: 0.12; }
.case-reveal-burst {
  position: absolute;
  top: 40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--reveal-color, #e8c15a) 0%, transparent 65%);
  opacity: 0.35;
  animation: reveal-burst 1.4s ease-out infinite;
  pointer-events: none;
}
.case-reveal-icon { position: relative; width: 150px; height: 150px; filter: drop-shadow(0 0 24px var(--reveal-color, #e8c15a)); }
.case-reveal-icon img, .case-reveal-icon > div { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.case-reveal-name { font-size: 24px; font-weight: 800; letter-spacing: 0.06em; }
.case-reveal-sub { color: var(--text-dim); font-size: 13px; letter-spacing: 0.2em; }
@keyframes reveal-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes reveal-burst { 0% { transform: scale(0.9); opacity: 0.4; } 100% { transform: scale(1.35); opacity: 0.05; } }

/* ============================================================
   响应式：手机竖屏（Telegram MiniApp）
   ============================================================ */
@media (max-width: 900px) {
  .nav-rail { display: none; }
  .tabbar { display: flex; }

  /* 远征：路线改为横滑卡带，控制台占满主画面 */
  .home-grid > .col:first-child > .col {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .home-grid > .col:first-child > .col::-webkit-scrollbar { display: none; }
  .route-card {
    min-width: 158px;
    max-width: 158px;
    flex-direction: column;
    scroll-snap-align: start;
    padding: 8px;
  }
  .route-card img.thumb { width: 100%; height: 62px; }
  .route-card .r-name { font-size: 13px; }
  .route-card .r-meta { font-size: 11px; gap: 2px 8px; }
  .route-card .lock-tip { top: 6px; right: 6px; font-size: 10px; }

  /* 打造：配方横滑卡带 */
  .recipe-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .recipe-list::-webkit-scrollbar { display: none; }
  .recipe-list .recipe-item {
    min-width: 132px;
    flex-direction: column;
    text-align: center;
    scroll-snap-align: start;
    border: 1px solid var(--line-soft);
  }
  .recipe-list .recipe-item img { width: 46px; height: 46px; }

  /* 仓库：装备面板折叠态（摘要条），展开显示完整装备栏 */
  .equip-panel > :not(.equip-summary) { display: none; }
  .equip-panel.expanded > :not(.equip-summary) { display: revert; }
  .equip-summary { display: flex !important; }
  .screen-host { padding: 12px; padding-bottom: 8px; }
  .topbar { gap: 8px; padding: 8px 12px; padding-top: calc(8px + var(--safe-top)); flex-wrap: wrap; }
  .currency { padding: 3px 9px 3px 7px; font-size: 12px; }

  .home-grid { grid-template-columns: 1fr; }
  .wh-layout { grid-template-columns: 1fr; }
  .craft-layout { grid-template-columns: 1fr; }
  .capacity-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .cap-box { padding: 8px; }
  .wh-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
  .battle-log { height: 150px; }
  .detail-actions { grid-template-columns: 1fr 1fr; }
  .screen-title { font-size: 17px; }
  .modal { max-height: 88vh; }
  .stage-kpis { flex-wrap: wrap; }
}

/* ---- 动作技能栏 ---- */
.skillbar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}
.skill-cell {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 1.5px solid rgba(191, 155, 70, 0.55);
  background: linear-gradient(180deg, rgba(24, 36, 54, 0.92), rgba(10, 16, 26, 0.95));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.skill-cell:hover { filter: brightness(1.2); }
.skill-cell:active { transform: scale(0.92); }
.skill-cell.cooling { filter: saturate(0.4) brightness(0.75); }
.skill-ico { font-size: 24px; line-height: 1; pointer-events: none; }
.skill-key {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 8px;
  background: #24344a;
  color: var(--text-dim);
  pointer-events: none;
  white-space: nowrap;
}
.skill-cd {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  color: #ffe9ad;
  pointer-events: none;
}
.skill-count {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #ffe9ad;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}
@media (max-width: 900px) {
  .skillbar { gap: 8px; bottom: 10px; left: auto; right: 12px; transform: none; }
  .skill-cell { width: 64px; height: 64px; }
}

/* ---- PVP 发布级打磨 ---- */
.queue-slots { display: flex; gap: 8px; margin: 4px 0 2px; }
.queue-slot {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px dashed rgba(150, 190, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-faint);
}
.queue-slot.filled {
  border-style: solid;
  border-color: rgba(127, 212, 193, 0.6);
  background: rgba(127, 212, 193, 0.1);
  color: var(--moon);
  animation: slot-pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes slot-pop { from { transform: scale(0.6); opacity: 0; } }

.deploy-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(3, 6, 10, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: fade-in 0.2s ease;
}
.deploy-overlay.leaving { animation: deploy-out 0.26s ease forwards; }
@keyframes deploy-out { to { opacity: 0; } }
.deploy-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--moon);
}
.deploy-num {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe9ad, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(232, 193, 90, 0.45));
}
.deploy-num.pop { animation: deploy-pop 0.5s cubic-bezier(0.2, 1.5, 0.35, 1); }
@keyframes deploy-pop { from { transform: scale(1.6); opacity: 0.3; } }
.deploy-sub { color: var(--text-faint); letter-spacing: 0.2em; font-size: 13px; }

.killfeed {
  position: absolute;
  top: 44px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
  pointer-events: none;
}
.killfeed-row {
  padding: 4px 12px;
  border-radius: 7px;
  background: rgba(6, 10, 16, 0.82);
  border: 1px solid rgba(255, 93, 82, 0.35);
  font-size: 12.5px;
  font-weight: 700;
  animation: feed-in 0.25s cubic-bezier(0.2, 1.3, 0.4, 1);
  backdrop-filter: blur(4px);
}
.killfeed-row.fading { transition: opacity 0.8s; opacity: 0; }
@keyframes feed-in { from { transform: translateX(-14px); opacity: 0; } }

/* ============ 配装确认页（三角洲式） ============ */
.loadout { min-width: 0; }
.ld-cols { display: grid; grid-template-columns: 1.1fr 0.9fr 1.1fr; gap: 18px; align-items: start; }
.ld-sec-title {
  font-size: 12px; letter-spacing: 2px; color: var(--gold);
  border-left: 3px solid var(--gold); padding-left: 8px; margin: 2px 0 8px;
}
.ld-slot {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; margin-bottom: 6px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(150, 180, 220, 0.10);
}
.ld-slot.empty { opacity: 0.65; border-style: dashed; }
.ld-slot-cell { position: relative; width: 40px; height: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; background: rgba(8, 12, 20, 0.6); border: 1px solid rgba(150, 180, 220, 0.14); overflow: hidden; }
.ld-slot-cell img, .ld-slot-cell canvas, .ld-slot-cell svg { width: 100%; height: 100%; object-fit: contain; }
.ld-slot-ph { opacity: 0.5; font-size: 17px; }
.ld-slot-meta { flex: 1; min-width: 0; }
.ld-slot-name { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.ld-slot-item { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-slot-score { color: var(--gold); font-size: 12px; }
.ld-value { display: flex; justify-content: space-between; padding: 8px 4px 0; border-top: 1px dashed rgba(150, 180, 220, 0.18); margin-top: 6px; }
.ld-center { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; }
.ld-hero {
  width: 168px; height: 168px; object-fit: contain; image-rendering: pixelated;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  animation: ld-breathe 3.2s ease-in-out infinite;
}
@keyframes ld-breathe { 50% { transform: translateY(-5px); } }
.ld-score { display: flex; gap: 10px; align-items: baseline; font-size: 15px;
  padding: 6px 16px; border-radius: 999px; background: rgba(232, 193, 90, 0.08); border: 1px solid rgba(232, 193, 90, 0.3); }
.ld-score b { font-size: 20px; color: var(--gold); }
.ld-cap-row { display: flex; justify-content: space-between; padding: 5px 4px; border-bottom: 1px dashed rgba(150, 180, 220, 0.12); }
.ld-warns { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.ld-warn { font-size: 12px; color: var(--danger-bright); background: rgba(255, 93, 82, 0.07);
  border: 1px solid rgba(255, 93, 82, 0.22); border-radius: 6px; padding: 5px 8px; }
.ld-warn.ok { color: var(--success-bright, #5ecb84); background: rgba(94, 203, 132, 0.07); border-color: rgba(94, 203, 132, 0.25); }

/* ============ 对局内：随身物资 / 地面拾取 ============ */
.pvp-bag {
  position: absolute; top: 42px; right: 10px; width: min(330px, calc(100% - 20px));
  max-height: calc(100% - 120px); overflow: auto; z-index: 30;
  background: rgba(10, 15, 24, 0.94); border: 1px solid rgba(150, 180, 220, 0.22);
  border-radius: 12px; padding: 10px; display: none;
  backdrop-filter: blur(6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.pvp-bag.open { display: block; animation: bag-in 0.18s ease-out; }
@keyframes bag-in { from { transform: translateX(16px); opacity: 0; } }
.pvp-loot {
  position: absolute; left: 10px; bottom: 84px; width: min(310px, calc(100% - 20px));
  max-height: 46%; overflow: auto; z-index: 29;
  background: rgba(10, 15, 24, 0.94); border: 1px solid rgba(232, 193, 90, 0.35);
  border-radius: 12px; padding: 10px; display: none;
  backdrop-filter: blur(6px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.pvp-loot.open { display: block; animation: bag-in 0.18s ease-out; }
.bag-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bag-row {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px;
  border-radius: 8px; margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(150, 180, 220, 0.08);
}
.bag-row.empty { opacity: 0.55; border-style: dashed; }
.bag-meta { flex: 1; min-width: 0; font-size: 12px; }
.bag-meta > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bag-acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.bag-acts .btn { padding: 3px 8px; font-size: 11px; }
.bag-sec { margin-bottom: 10px; }
.bag-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }

/* ============ 仓库：扩容箱页签 / 随身物资 / 未落格 ============ */
.box-tabs { display: flex; flex-direction: column; gap: 6px; }
.box-tab {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(150, 180, 220, 0.12);
  transition: border-color 0.15s, background 0.15s;
}
.box-tab:hover { border-color: rgba(232, 193, 90, 0.4); }
.box-tab.active { border-color: var(--gold); background: rgba(232, 193, 90, 0.07); }
.box-tab.add { border-style: dashed; color: var(--muted); justify-content: center; }
.box-tab-ico { font-size: 16px; width: 26px; text-align: center; }
.loose-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(232, 193, 90, 0.3); }
.carry-panel .container-block { max-width: 100%; overflow: hidden; }
.carry-panel .sgrid-scroll { overflow-x: auto; }

/* ============ 手机端深度优化 v2 ============ */
@media (max-width: 760px) {
  /* 配装页单列化 */
  .ld-cols { grid-template-columns: 1fr; gap: 12px; }
  .ld-center { order: -1; flex-direction: row; justify-content: center; }
  .ld-hero { width: 96px; height: 96px; }
  /* 对局内面板全宽底部抽屉化 */
  .pvp-bag {
    top: auto; bottom: 0; right: 0; left: 0; width: 100%;
    max-height: 62%; border-radius: 14px 14px 0 0;
  }
  .pvp-loot { left: 6px; bottom: 128px; width: min(280px, calc(100% - 12px)); }
  .bag-acts .btn { min-height: 30px; }
  /* 仓库：左栏全部纵排在上方，格子自适应 */
  .box-tab { padding: 9px 10px; }
  .carry-panel .sgrid { --cell: 30px !important; }
  /* 模态框满宽 + 大按钮 */
  .modal { width: calc(100vw - 18px) !important; max-height: 92vh; }
  .modal-body { max-height: 72vh; overflow: auto; }
  .detail-actions .btn { min-height: 40px; }
  /* 技能栏拾取/背包可达性 */
  .skillbar { gap: 6px; }
  .skill-cell { width: 52px; height: 52px; }
}

/* ============ UI 修复批次（截图反馈） ============ */
/* 网格轨道被 990px 画布撑爆 → 容量条/战报被推出屏幕（移动端远征页） */
.home-grid > .col, .home-grid > * { min-width: 0; }
.wh-layout > * { min-width: 0; }
.console-stage canvas { max-width: 100%; }

/* 细滚动条：随身物资/仓库网格容器不再出现粗滚动条 */
.sgrid-scroll { scrollbar-width: thin; scrollbar-color: rgba(150, 180, 220, 0.25) transparent; }
.sgrid-scroll::-webkit-scrollbar { height: 5px; width: 5px; }
.sgrid-scroll::-webkit-scrollbar-thumb { background: rgba(150, 180, 220, 0.22); border-radius: 4px; }
.sgrid-scroll::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 900px) {
  /* 修复：display:revert 曾把装备行/页签的 flex 布局打回 block（图标与文字上下错位） */
  .equip-panel.expanded > .slot-row { display: flex; }
  .equip-panel.expanded > .box-tabs { display: flex; }
  .equip-panel.expanded > .gear-score { display: block; }
}
@media (max-width: 760px) {
  /* 仓库空间网格：手机上格子过大 → 收敛到 34px，横向平滑滚动 */
  .warehouse-sgrid .sgrid { --cell: 34px !important; }
  .warehouse-sgrid { -webkit-overflow-scrolling: touch; }
  .sgrid-name { font-size: 9px; }
}

/* ============ 随身物资：独立中列（装备栏 ↔ 仓库之间） ============ */
.wh-layout.has-carry { grid-template-columns: 240px 262px 1fr; }
.wh-layout > .carry-panel, .wh-layout .carry-panel {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  align-self: start;
  scrollbar-width: thin;
}
.wh-layout .carry-panel::-webkit-scrollbar { width: 5px; }
.wh-layout .carry-panel::-webkit-scrollbar-thumb { background: rgba(150, 180, 220, 0.22); border-radius: 4px; }
@media (max-width: 900px) {
  /* 移动端：单列堆叠，随身物资位于装备与仓库之间，不再吸顶 */
  .wh-layout.has-carry { grid-template-columns: 1fr; }
  .wh-layout .carry-panel { position: static; max-height: none; }
}

/* ============ 排版细节精修（字距/对齐/数字） ============ */
/* 中文按钮字距：两字以上按钮呼吸感 */
.btn { letter-spacing: 0.045em; }
.btn.num, .btn .num { letter-spacing: 0; }
/* 标题层级字距统一 */
.screen-title { letter-spacing: 0.08em; }
.panel-title { letter-spacing: 0.14em; }
.ld-sec-title, .bag-sec-head .muted { letter-spacing: 0.12em; }
/* 数字统一等宽对齐（价格/容量/倒计时不跳动） */
.num, .mono, .pg-info, .stage-kpi b, .cap-box b, .jc-timer {
  font-variant-numeric: tabular-nums;
}
/* 徽章与小字号字距 */
.chip { letter-spacing: 0.03em; }
.toast { letter-spacing: 0.04em; }
.slot-name { letter-spacing: 0.1em; }
/* 战报行距：密排中文的可读性 */
.battle-log .ev { line-height: 1.6; }
/* 标题下间距在 small 移除后收紧 */
.screen-title { margin-bottom: 12px; }
/* 弹窗标题字距 */
.modal-head span { letter-spacing: 0.08em; }

/* ============ 手机端 PVP 全面重做 ============ */
@media (max-width: 900px) {
  /* 战场画布占据主视口，不再被压缩成小块 */
  .pvp-stage.console-stage {
    height: calc(100dvh - 300px);
    min-height: 360px;
    max-height: 66vh;
  }
  .pvp-stage canvas.pvp-canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
  /* 顶部 HUD 压缩为紧凑单行 */
  .pvp-topbar { flex-wrap: wrap; gap: 4px 8px; font-size: 11px; padding: 4px 6px; }
  .pvp-hp { min-width: 110px; height: 14px; }
  /* 小地图右上角缩小 */
  .pvp-minimap { width: 96px !important; height: 78px !important; top: 34px; right: 6px; }
  /* 摇杆左下 / 技能栏右下 2×3 宫格，永不重叠 */
  .vjoy { left: 10px; bottom: 14px; width: 96px; height: 96px; opacity: 0.85; }
  .skillbar {
    left: auto; right: 8px; bottom: 10px; transform: none;
    display: grid; grid-template-columns: repeat(3, 46px); gap: 6px;
  }
  .skill-cell { width: 46px !important; height: 46px !important; border-radius: 10px; }
  .skill-ico { font-size: 16px; }
  /* 物资/拾取面板抽屉化已有；战报收窄 */
  .battle-log { height: 96px; font-size: 12px; }
  .pvp-loot { bottom: 118px; max-height: 38%; }
}

/* ============ 开箱演出 v2 ============ */
.case-overlay { --suspense: 0; }
.case-rays {
  position: absolute; inset: -30%;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(232,193,90,0.05) 12deg, transparent 24deg,
    transparent 90deg, rgba(232,193,90,0.05) 102deg, transparent 114deg,
    transparent 180deg, rgba(232,193,90,0.05) 192deg, transparent 204deg,
    transparent 270deg, rgba(232,193,90,0.05) 282deg, transparent 294deg);
  animation: rays-spin 22s linear infinite;
  opacity: calc(0.4 + var(--suspense) * 0.6);
  pointer-events: none;
}
@keyframes rays-spin { to { transform: rotate(360deg); } }
.case-viewport {
  box-shadow: 0 0 calc(20px + var(--suspense) * 60px)
    color-mix(in srgb, var(--reveal-color, #e8c15a) calc(var(--suspense) * 55%), transparent);
  transition: box-shadow 0.3s;
}
.case-pointer.tick { animation: pointer-tick 0.14s ease-out; }
@keyframes pointer-tick { 40% { transform: translateX(-50%) scaleY(1.18); } }
.case-card.pass { animation: card-pass 0.22s ease-out; }
@keyframes card-pass { 30% { transform: translateY(-4px); } }
.case-card.won {
  animation: card-won 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
  box-shadow: 0 0 26px var(--reveal-color, #e8c15a);
  z-index: 3;
}
@keyframes card-won { to { transform: scale(1.12); } }
.case-overlay.shake { animation: case-shake 0.4s; }
@keyframes case-shake {
  20% { transform: translate(-5px, 3px); } 40% { transform: translate(5px, -3px); }
  60% { transform: translate(-3px, -2px); } 80% { transform: translate(2px, 2px); }
}
.case-flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 42%,
    color-mix(in srgb, var(--reveal-color, #e8c15a) 55%, white) 0%,
    color-mix(in srgb, var(--reveal-color, #e8c15a) 30%, transparent) 34%, transparent 70%);
}
.case-flash.boom { animation: case-boom 0.9s ease-out forwards; }
@keyframes case-boom { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.case-shockwave {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px;
  margin: -20px 0 0 -20px; border-radius: 50%;
  border: 3px solid var(--reveal-color, #e8c15a);
  animation: shockwave 0.7s ease-out forwards; pointer-events: none;
}
@keyframes shockwave { to { transform: scale(14); opacity: 0; border-width: 1px; } }
.case-spark {
  position: absolute; left: 50%; top: 50%;
  width: var(--sz, 3px); height: var(--sz, 3px); border-radius: 50%;
  background: var(--reveal-color, #e8c15a);
  box-shadow: 0 0 6px var(--reveal-color, #e8c15a);
  animation: spark-fly var(--dur, 800ms) cubic-bezier(0.1, 0.8, 0.4, 1) forwards;
  pointer-events: none;
}
@keyframes spark-fly {
  to { transform: translate(var(--dx), calc(var(--dy) + 60px)); opacity: 0; }
}
.case-overlay.revealed .case-title { opacity: 0.3; }
.case-reveal { animation: reveal-in 0.5s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes reveal-in { from { transform: scale(0.7) translateY(24px); opacity: 0; } }

/* 打造成果 / 一键售出 */
.craft-claim-card {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: 10px; margin-bottom: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(150,180,220,0.14);
  animation: reveal-in 0.4s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.craft-claim-icon { position: relative; width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 9px; background: rgba(8,12,20,0.6); overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.craft-claim-icon img { width: 100%; height: 100%; object-fit: contain; }
.bulk-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px;
  border-radius: 8px; cursor: pointer; }
.bulk-row:hover { background: rgba(255,255,255,0.03); }
.bulk-row input { accent-color: var(--gold); width: 15px; height: 15px; }

/* ============ 收藏室（陈列馆） ============ */
.mining-hero.hall { border: 1px solid rgba(232,193,90,0.22); border-radius: 14px; overflow: hidden; }
.hall-shelf { border: 1px solid rgba(150,180,220,0.10); border-radius: 12px; padding: 10px 12px 14px; }
.hall-shelf.red { background: linear-gradient(180deg, rgba(255,93,82,0.05), transparent); }
.hall-shelf.gold { background: linear-gradient(180deg, rgba(232,193,90,0.05), transparent); }
.hall-shelf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.hall-shelf-title { font-weight: 800; letter-spacing: 0.14em; font-size: 13px; color: var(--gold); }
.hall-shelf.red .hall-shelf-title { color: #ff8a7a; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.hall-empty { color: var(--text-faint); font-size: 12px; padding: 14px; text-align: center;
  border: 1px dashed rgba(150,180,220,0.18); border-radius: 10px; }
.hall-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px 10px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(8,12,20,0.4));
  border: 1px solid rgba(150,180,220,0.14);
  transition: transform 0.16s, box-shadow 0.16s;
}
.hall-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.45); }
.hall-card-glow {
  position: absolute; left: 50%; top: 34%; width: 84px; height: 84px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(232,193,90,0.22), transparent 70%);
  animation: hall-breathe 3s ease-in-out infinite; pointer-events: none;
}
.hall-card.rb-red .hall-card-glow { background: radial-gradient(circle, rgba(255,93,82,0.25), transparent 70%); }
@keyframes hall-breathe { 50% { opacity: 0.45; transform: translate(-50%, -50%) scale(1.15); } }
.hall-card-icon { position: relative; width: 64px; height: 64px; }
.hall-card-pedestal {
  width: 74px; height: 10px; margin-top: -3px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(150,180,220,0.30), transparent 72%);
}
.hall-card .cc-name { font-size: 12px; font-weight: 700; text-align: center; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hall-card .cc-sub { font-size: 11px; color: var(--text-faint); }
.mission-row.ob { border-left: 3px solid var(--gold); background: rgba(232,193,90,0.04); }
.hall-card-icon img, .hall-card-icon canvas { width: 100%; height: 100%; object-fit: contain; }

/* 手机端配装页底部按钮：单行主次分明 + 吸底 */
@media (max-width: 760px) {
  .loadout + .detail-actions, .modal-body .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 8px;
    position: sticky;
    bottom: -1px;
    background: linear-gradient(180deg, transparent, var(--panel, #0d1626) 32%);
    padding-top: 10px;
    margin-top: 4px;
  }
  .modal-body .detail-actions .btn { min-height: 46px; font-size: 14px; }
  .modal-body .detail-actions .spacer { display: none; }
  .ld-warns { margin-bottom: 2px; }
}

/* ---------- 远征大厅入口条 ---------- */
.hall-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 2px 0 14px;
}
.hall-entry {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(160deg, rgba(38,48,66,0.85), rgba(24,32,46,0.92));
  border: 1px solid rgba(120,150,190,0.22);
  border-radius: 12px;
  color: var(--ink, #dce6f2);
  font-size: 13.5px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.hall-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(232,193,90,0.55);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.hall-entry-ico { font-size: 17px; line-height: 1; }
.hall-entry-name { font-weight: 600; letter-spacing: 0.5px; }
.hall-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: #ff5d52; color: #fff;
  font-size: 10.5px; font-weight: 700;
  border-radius: 9px;
  border: 2px solid rgba(10,14,22,0.9);
}
@media (max-width: 720px) {
  .hall-bar { gap: 8px; }
  .hall-entry { padding: 8px 12px; font-size: 12.5px; flex: 1 1 calc(33% - 8px); justify-content: center; }
}

/* ---------- 玩法说明弹窗 ---------- */
.rules-modal { display: flex; flex-direction: column; gap: 14px; }
.rule-sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 14.5px; }
.rule-ico { font-size: 16px; }
.rule-line { color: var(--muted, #93a4b8); font-size: 13px; line-height: 1.65; padding-left: 24px; }
.btn .badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: #ff5d52; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 9px; border: 2px solid rgba(10,14,22,0.9);
}

/* ---------- 任务行：说明/奖励分行 + 奖励徽章 ---------- */
.mission-row { align-items: flex-start; }
.ms-main { flex: 1; min-width: 0; }
.ms-desc { margin-top: 2px; }
.ms-rewards { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ms-rw {
  font-size: 11px; padding: 2px 7px; border-radius: 8px;
  background: rgba(120,150,190,0.12); border: 1px solid rgba(120,150,190,0.18);
  color: var(--muted, #93a4b8); white-space: nowrap;
}
.ms-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ms-side .ms-progress { width: 120px; }
@media (max-width: 720px) {
  .mission-row { flex-direction: column; gap: 8px; }
  .ms-side { width: 100%; }
  .ms-side .ms-progress { flex: 1; width: auto; }
  .ms-side .btn { flex: 0 0 auto; }
}

/* ---------- 手机端远征大厅精简：路线改横滑卡片 ---------- */
@media (max-width: 720px) {
  .home-grid { display: flex; flex-direction: column; gap: 12px; }
  .route-list {
    flex-direction: row; overflow-x: auto; gap: 10px;
    padding-bottom: 6px; margin: 0 -4px; padding-left: 4px; padding-right: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .route-list::-webkit-scrollbar { display: none; }
  .route-list .route-card {
    flex: 0 0 216px; scroll-snap-align: start;
    flex-direction: column; align-items: stretch; gap: 6px;
  }
  .route-list .route-card .thumb { width: 100%; height: 64px; object-fit: cover; }
  .route-list .route-card .r-meta { flex-wrap: wrap; gap: 4px 8px; font-size: 11px; }
  .hall-bar { margin-bottom: 10px; }
  .hall-entry { padding: 7px 10px; font-size: 12px; }
  /* 行动战报收窄 */
  .console-stage + * + * .battle-log, .home-grid .battle-log { max-height: 96px; }
}

/* ---------- 后台管理 ---------- */
.adm-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(120,150,190,0.05);
  border: 1px solid rgba(120,150,190,0.10);
  border-radius: 10px;
  font-size: 13px;
}
.adm-cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-acts { display: flex; gap: 6px; margin-left: auto; flex: 0 0 auto; }
@media (max-width: 720px) {
  .adm-row { flex-wrap: wrap; }
  .adm-acts { width: 100%; justify-content: flex-end; }
}

/* ---------- 路线选择：手机端弹窗入口 ---------- */
.route-picker {
  display: none;
  align-items: center; gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(160deg, rgba(38,48,66,0.85), rgba(24,32,46,0.92));
  border: 1px solid rgba(232,193,90,0.35);
  border-radius: 12px;
  color: var(--ink, #dce6f2);
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.route-picker .rp-thumb { width: 72px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.route-picker .rp-meta { flex: 1; min-width: 0; }
.route-picker .rp-name { font-weight: 800; font-size: 14px; }
.route-picker .rp-arrow { color: #e8c15a; font-size: 12px; white-space: nowrap; }
.route-modal-list { max-height: 60vh; overflow: auto; gap: 8px; }
@media (max-width: 720px) {
  .route-picker { display: flex; }
  .home-grid .route-list { display: none; }
}

/* ---------- 高级通行证介绍页 ---------- */
.pp-page { display: flex; flex-direction: column; gap: 14px; max-height: 66vh; overflow: auto; }
.pp-hero {
  border-radius: 14px; padding: 22px 20px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(232,193,90,0.4);
  box-shadow: inset 0 0 60px rgba(232,193,90,0.08);
}
.pp-hero-crown { font-size: 34px; }
.pp-hero-title { font-size: 24px; font-weight: 900; color: #ffe9ad; letter-spacing: 2px; }
.pp-hero-sub { color: rgba(230,220,190,0.75); margin-top: 4px; font-size: 13px; }
.pp-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.pp-benefit {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: 12px;
  background: rgba(232,193,90,0.06);
  border: 1px solid rgba(232,193,90,0.18);
}
.pp-benefit-ico { font-size: 20px; }
.pp-benefit-title { font-weight: 800; font-size: 13.5px; color: #ffe9ad; }
.pp-benefit-desc { color: var(--muted, #93a4b8); font-size: 12.5px; line-height: 1.55; margin-top: 2px; }
.pp-specials-title { font-weight: 800; color: #e8c15a; font-size: 14px; }
.pp-specials { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-special {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(90,70,25,0.35), rgba(40,32,14,0.5));
  border: 1px solid rgba(232,193,90,0.3);
  font-size: 12.5px;
}
.pp-special-lv { color: #b78f2e; font-weight: 800; font-size: 11px; }
.pp-special-name { color: #f2e6c8; }

/* ---------- 奖励轨道：免费/高级强区分 + 领取状态强化 ---------- */
.season-track-wrap { display: flex; gap: 8px; align-items: stretch; }
.season-track-labels {
  flex: 0 0 66px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; left: 0;
}
.season-track-labels .stl-lv { height: 20px; font-size: 11px; color: var(--muted); display: flex; align-items: center; }
.season-track-labels .stl {
  flex: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 12px; font-weight: 800;
}
.season-track-labels .stl.premium {
  background: linear-gradient(160deg, rgba(200,160,60,0.28), rgba(120,90,30,0.22));
  border: 1px solid rgba(232,193,90,0.45); color: #ffe9ad;
}
.season-track-labels .stl.free {
  background: rgba(120,150,190,0.10);
  border: 1px solid rgba(120,150,190,0.22); color: var(--muted);
}
.sn2-chip.premium {
  background: linear-gradient(165deg, rgba(160,125,45,0.30), rgba(70,52,18,0.42)) !important;
  border-color: rgba(232,193,90,0.5) !important;
}
.sn2-chip.free { background: rgba(120,150,190,0.08); }
.sn2-chip.claimed { opacity: 0.45; filter: saturate(0.4); }
.sn2-chip.claimable {
  border-color: #ffe9ad !important;
  box-shadow: 0 0 12px rgba(232,193,90,0.45);
  animation: sn2pulse 1.6s ease-in-out infinite;
  cursor: pointer;
}
@keyframes sn2pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(232,193,90,0.3); }
  50% { box-shadow: 0 0 16px rgba(232,193,90,0.65); }
}
.sn2-state {
  position: absolute; right: -5px; top: -7px;
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 8px;
  border: 1px solid rgba(10,14,22,0.9);
}
.sn2-state.done { background: #2e7d4f; color: #d8ffe9; }
.sn2-state.get { background: #e8c15a; color: #3a2a08; }
.sn2-chip { position: relative; }

/* ---------- 像素货币图标 + 面板像素包边（游戏质感） ---------- */
.cur-img { width: 18px; height: 18px; image-rendering: pixelated; display: block; }
.panel, .stat-tile, .modal {
  border: 6px solid transparent;
  border-image: url("/assets/ui/panel9p_dark.png") 22 fill round;
  image-rendering: auto;
}
.panel > *, .stat-tile > *, .modal > * { image-rendering: auto; }

/* ============================================================
   全站精修 v4 · PC + 手机双端细节打磨
   ============================================================ */

/* ---------- 路线卡：弹窗内横排完整信息，主列表隐藏简介 ---------- */
.route-modal-list .route-card {
  display: flex; flex-direction: row; align-items: center;
  gap: 12px; padding: 10px 12px; width: 100%;
}
.route-modal-list .route-card .thumb {
  width: 112px; height: 66px; flex: 0 0 112px;
  object-fit: cover; border-radius: 10px;
}
.r-info { flex: 1; min-width: 0; }
.r-tagline {
  font-size: 11.5px; color: var(--muted, #93a4b8);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.route-list .r-tagline { display: none; }
.route-modal-list .r-meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-size: 11.5px; margin-top: 6px; color: var(--muted, #93a4b8);
}
.route-modal-list .route-card.active { border-color: #e8c15a; box-shadow: 0 0 12px rgba(232,193,90,0.25); }
.route-modal-list .route-card.locked { opacity: 0.55; }

/* ---------- 通用：排版一致性 ---------- */
.screen-title { letter-spacing: 3px; }
.panel-title { letter-spacing: 1.5px; }
.btn { transition: transform .1s ease, filter .12s ease; }
.btn:active { transform: scale(0.97); }
.btn:disabled { filter: saturate(0.5) brightness(0.8); }
.input:focus {
  outline: none;
  border-color: rgba(232,193,90,0.6) !important;
  box-shadow: 0 0 0 2px rgba(232,193,90,0.15);
}
.chip { line-height: 1.5; vertical-align: middle; }
.empty-state { padding: 28px 16px; opacity: 0.8; }

/* 细滚动条（全站） */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(120,150,190,0.25); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(120,150,190,0.45); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 手机端全局 ---------- */
@media (max-width: 720px) {
  .screen { padding: 10px 10px 76px; }
  .screen-title { font-size: 18px; letter-spacing: 2px; }
  .panel-body { padding: 10px; }
  /* 顶栏：货币收紧 */
  .topbar { flex-wrap: wrap; gap: 4px 8px; padding: 6px 10px; }
  .topbar .currency { padding: 3px 8px; font-size: 12px; }
  .cur-img { width: 15px; height: 15px; }
  /* 弹窗铺满可用宽度 */
  .modal { width: calc(100vw - 24px) !important; max-width: none !important; max-height: 86vh; }
  /* 分类 chips 横滑不换行 */
  .cat-chips, .tabs {
    flex-wrap: nowrap !important; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cat-chips::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .cat-chips .btn, .tabs .tab { flex: 0 0 auto; }
  /* toast 提到底部导航上方 */
  .toast-stack { bottom: 78px !important; }
  /* 市场行：价格与按钮换行右对齐 */
  .market-list .li-acts { flex-wrap: wrap; justify-content: flex-end; }
  /* 通行证介绍页手机排版 */
  .pp-hero { padding: 16px 14px; }
  .pp-hero-title { font-size: 20px; }
  .pp-benefits { grid-template-columns: 1fr; }
  /* 赛季奖励行标签收窄 */
  .season-track-labels { flex: 0 0 56px; }
  .season-track-labels .stl { font-size: 11px; }
  /* 后台表格行 */
  .adm-cell { font-size: 12px; }
  /* 设置/详情行：键值换行 */
  .detail-stats .st { flex-wrap: wrap; gap: 4px; }
}

/* ---------- PC 端 hover 反馈 ---------- */
@media (min-width: 721px) {
  .route-card { transition: transform .12s ease, border-color .12s ease; }
  .route-card:hover:not(.locked) { transform: translateX(3px); border-color: rgba(232,193,90,0.45); }
  .hall-card { transition: transform .15s ease; }
  .hall-card:hover { transform: translateY(-4px); }
  .genesis-card { transition: transform .15s ease; }
  .genesis-card:hover { transform: translateY(-4px) scale(1.03); }
  .item-cell { transition: transform .1s ease, box-shadow .12s ease; }
  .item-cell:hover { transform: scale(1.05); z-index: 2; }
  .mission-row { transition: background .12s ease; }
  .mission-row:hover { background: rgba(120,150,190,0.06); }
  .adm-row:hover { background: rgba(120,150,190,0.10); }
}

/* 路线弹窗卡片：解除旧的 max-width 限制，横排铺满 */
.route-modal-list .route-card { max-width: none !important; min-width: 0; }
.route-modal-list .route-card .r-info { display: block !important; }
.route-modal-list .route-card { height: auto !important; overflow: visible !important; align-items: center; }
.route-modal-list .r-name { line-height: 1.35; white-space: normal; }

/* ============================================================
   GAME THEME v5 · 游戏化系统级重构
   世界场景常驻背景 + 半透明浮层面板 + 鎏金游戏控件
   ============================================================ */

/* ---------- 全屏世界背景（所有页面） ---------- */
.game-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.game-bg-art {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center 30%;
  filter: saturate(0.9) brightness(0.85);
  animation: bgDrift 46s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.4%, -1%); }
}
.game-bg-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, transparent 0%, rgba(4,7,13,0.55) 68%, rgba(3,5,10,0.9) 100%),
    linear-gradient(rgba(5,8,14,0.72), rgba(4,6,11,0.86));
}
.game-bg .ember {
  position: absolute; bottom: -10px;
  width: var(--sz, 3px); height: var(--sz, 3px);
  background: radial-gradient(circle, #ffe9ad, rgba(232,193,90,0.15) 70%, transparent);
  border-radius: 50%;
  animation: emberFloat linear infinite;
  opacity: 0;
}
@keyframes emberFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.85; }
  60% { opacity: 0.5; }
  100% { transform: translateY(-105vh) translateX(38px); opacity: 0; }
}

/* 外壳浮于场景之上 */
.shell { position: relative; z-index: 1; background: transparent !important; }
body, #app { background: #04070d; }
.main-col, .screen-host { background: transparent !important; }

/* ---------- 顶栏：HUD 化 ---------- */
.topbar {
  background: linear-gradient(180deg, rgba(8,12,20,0.88), rgba(8,12,20,0.62)) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232,193,90,0.18) !important;
  box-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.topbar .currency {
  background: linear-gradient(180deg, rgba(20,28,42,0.9), rgba(10,15,24,0.9));
  border: 1px solid rgba(232,193,90,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ---------- 侧边导航：游戏主菜单 ---------- */
.nav-rail {
  background: linear-gradient(180deg, rgba(9,13,22,0.92), rgba(6,9,16,0.88)) !important;
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(232,193,90,0.14) !important;
}
.nav-rail .nav-logo {
  background: linear-gradient(180deg, #ffe9ad, #b78f2e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 22px rgba(232,193,90,0.25);
}
.nav-rail .nav-item {
  position: relative;
  border: 1px solid transparent;
  border-radius: 10px;
  margin: 2px 8px;
  transition: all .15s ease;
}
.nav-rail .nav-item:hover { background: rgba(232,193,90,0.08); }
.nav-rail .nav-item.active {
  background: linear-gradient(90deg, rgba(232,193,90,0.16), rgba(232,193,90,0.03));
  border-color: rgba(232,193,90,0.35);
  box-shadow: inset 0 0 18px rgba(232,193,90,0.08);
}
.nav-rail .nav-item.active::before {
  content: ""; position: absolute; left: -8px; top: 18%; bottom: 18%;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #ffe9ad, #b78f2e);
  box-shadow: 0 0 10px rgba(232,193,90,0.8);
}

/* ---------- 面板：浮空游戏窗 ---------- */
.panel {
  background: linear-gradient(168deg, rgba(14,20,32,0.86), rgba(8,12,20,0.9)) !important;
  backdrop-filter: blur(7px);
  box-shadow: 0 10px 34px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}
.stat-tile {
  background: linear-gradient(168deg, rgba(14,20,32,0.82), rgba(8,12,20,0.88)) !important;
  backdrop-filter: blur(6px);
}
.panel-title {
  position: relative;
  color: #ffe9ad !important;
}
.panel-title::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(232,193,90,0.5), transparent 70%);
}

/* ---------- 页面标题：鎏金饰线 ---------- */
.screen-title {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #ffe9ad, #caa64a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border: none !important;
  text-shadow: none;
}
.screen-title::before { content: "✦"; color: #b78f2e; font-size: 12px; -webkit-text-fill-color: #b78f2e; }
.screen-title::after {
  content: ""; flex: 1; height: 1px; max-width: 220px;
  background: linear-gradient(90deg, rgba(232,193,90,0.55), transparent);
}

/* ---------- 按钮：游戏化铸金/军械质感 ---------- */
.btn-gold {
  background: linear-gradient(180deg, #f4d788 0%, #d9ac4e 45%, #a87e2a 100%) !important;
  border: 1px solid #6d5316 !important;
  color: #2d1f05 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -2px 0 rgba(0,0,0,0.22), 0 3px 10px rgba(0,0,0,0.4);
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-primary {
  background: linear-gradient(180deg, #57c7a8 0%, #2e8e74 55%, #1e6ul 0, #1e6b56 100%) !important;
  background: linear-gradient(180deg, #57c7a8 0%, #2e8e74 55%, #1e6b56 100%) !important;
  border: 1px solid #14493a !important;
  color: #06231a !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.btn-danger {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0,0,0,0.25);
}

/* ---------- 底部 Dock（手机）：游戏化 ---------- */
.tabbar {
  background: linear-gradient(180deg, rgba(10,14,23,0.94), rgba(6,9,15,0.97)) !important;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(232,193,90,0.2) !important;
  box-shadow: 0 -4px 22px rgba(0,0,0,0.55);
}
.tabbar .tb-item.active {
  color: #ffe9ad !important;
}
.tabbar .tb-item.active .ico {
  filter: drop-shadow(0 0 8px rgba(232,193,90,0.8));
  transform: translateY(-2px) scale(1.12);
}
.tabbar .tb-item .ico { transition: all .18s ease; }

/* ---------- 弹窗：游戏对话框 ---------- */
.modal {
  background: linear-gradient(170deg, rgba(15,21,34,0.96), rgba(8,12,20,0.97)) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.65), 0 0 0 1px rgba(232,193,90,0.16), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.modal-mask { backdrop-filter: blur(3px); }
.modal .m-title, .modal-title { color: #ffe9ad !important; letter-spacing: 2px; }

/* ---------- Toast：战报横幅 ---------- */
.toast {
  border-left: 3px solid #e8c15a !important;
  background: linear-gradient(90deg, rgba(20,26,40,0.96), rgba(12,17,27,0.92)) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* ---------- 卡片浮层化 ---------- */
.route-card, .hall-entry, .mission-row, .adm-row, .market-list > *, .bag-row {
  background: linear-gradient(168deg, rgba(16,23,36,0.8), rgba(9,13,21,0.86)) !important;
  backdrop-filter: blur(4px);
}
.hall-entry { border-color: rgba(232,193,90,0.26) !important; }

/* 手机端背景移动性能：关掉模糊与镜头动画 */
@media (max-width: 720px) {
  .panel, .stat-tile, .topbar, .nav-rail, .tabbar, .modal,
  .route-card, .hall-entry, .mission-row, .adm-row { backdrop-filter: none; }
  .game-bg-art { animation: none; }
}

/* 验收整改：P3 网格滚动暗示 / P5 顶栏安全边距 / P6 归属高亮弱化 */
.nav-rail .nav-item.active.sub { opacity: 0.75; }
.nav-rail .nav-item.active.sub::before { opacity: 0.5; }
@media (max-width: 720px) {
  .topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .wh-grid, .grid-board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* 右缘渐隐提示可横向滚动 */
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
            mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
}
