/* Blackwell Modular Stylesheet: modules/hud-modern.css (merged from 10 files) */

/* --- [CSS MODULE PART] v0103.css --- */
.activity-strip-083{position:relative;display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px;min-height:118px;border:1px solid #3d4c5d;border-radius:16px;background:linear-gradient(105deg,#17110e 0%,#0c1118 58%,#111823 100%);overflow:hidden;box-shadow:0 14px 36px #0007}.activity-strip-083::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 16% 50%,#d6984e22,transparent 34%),linear-gradient(90deg,transparent 0 58%,#6daab213 100%);pointer-events:none}.activity-strip-083::after{content:"";position:absolute;left:74px;right:74px;bottom:0;height:3px;background:linear-gradient(90deg,#d99a51 var(--activity-progress,0%),#3d4b52 var(--activity-progress,0%));transition:background .35s}.activity-strip-main-083{position:relative;z-index:1;display:grid;grid-template-columns:minmax(190px,.65fr) minmax(260px,1.45fr) auto;gap:20px;align-items:center;padding:18px 12px}.activity-strip-title-083{display:grid;gap:5px}.activity-strip-title-083 small{color:#d9a15e;letter-spacing:.1em}.activity-strip-title-083 strong{font-size:20px}.activity-strip-summary-083{line-height:1.65;color:#bfd0df}.activity-strip-meta-083{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.activity-strip-switching-0103 .activity-strip-main-083{animation:activityStripIn0103 .42s ease both}@keyframes activityStripIn0103{from{opacity:.25;transform:translateX(14px)}to{opacity:1;transform:none}}.activity-strip-dots-083{position:absolute;left:50%;bottom:12px;z-index:2;transform:translateX(-50%);display:flex;gap:7px}.activity-strip-dots-083 button{width:6px;height:6px;min-height:0;border:0;border-radius:99px;padding:0;background:#475153}.activity-strip-dots-083 button.active{width:18px;height:6px;min-height:0;background:#dda15d}.has-activity-alert-0103{position:relative}.has-activity-alert-0103::after{content:"";position:absolute;right:7px;top:6px;width:8px;height:8px;border-radius:50%;background:#ee5b5b;box-shadow:0 0 0 3px #ee5b5b22}
.activity-nav-0103{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 12px}.activity-nav-0103 button{position:relative;flex:0 0 auto}.activity-nav-0103 button.selected{border-color:#6cc1c7;background:#173038;color:#eaffff}.activity-red-dot-0103,.warehouse-tab-dot-0103{position:absolute;width:8px;height:8px;border-radius:50%;background:#f05b60;box-shadow:0 0 0 3px #f05b6022}.activity-red-dot-0103{right:6px;top:5px}.activity-tab-panel-0103{display:none;min-width:0}.activity-tab-panel-0103.active{display:block}.activity-shell-0103{min-width:0}.activity-derived-card-0103{display:grid;gap:12px;border:1px solid #344557;border-radius:14px;background:#101822;padding:16px;margin-bottom:12px}.activity-derived-card-0103 header{display:flex;justify-content:space-between;gap:12px}.activity-derived-card-0103 header div{display:grid;gap:3px}.activity-task-list-0103{display:grid;gap:8px}.activity-task-list-0103>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px;border:1px solid #2d3c4c;border-radius:10px}.activity-task-list-0103>div.done{border-color:#487d6c;background:#173027}.activity-task-list-0103 span{display:grid;gap:3px}.activity-record-row-0103{display:flex;justify-content:space-between;gap:14px;padding:13px;border-bottom:1px solid #263544}.activity-record-row-0103 div{display:grid;gap:4px}.pool-probability-0103{display:grid;gap:5px;margin:10px 0;padding:10px 12px;border:1px solid #a57c4055;border-radius:10px;background:#211b12}.pool-probability-0103 span{color:#c9b894;font-size:12px}.repeat-entry-0833 small{line-height:1.4}.warehouse-tabs-0103{display:flex;gap:8px;margin:12px 0}.warehouse-tabs-0103 button{position:relative}.warehouse-tabs-0103 button.selected{border-color:#6cc1c7;background:#173038}.warehouse-tab-dot-0103{right:5px;top:4px}.item-warehouse-summary-0103{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.item-warehouse-grid-0103{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.item-card-0103{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:start;border:1px solid #334657;border-radius:13px;padding:14px;background:linear-gradient(145deg,#111b25,#0e151e)}.item-card-0103 .item-icon-0103{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#243443;font-size:24px}.item-card-0103 div:nth-child(2){display:grid;gap:4px}.item-card-0103 h3,.item-card-0103 p{margin:0}.item-card-0103 p{color:#9fb3c4;font-size:13px;line-height:1.5}.item-card-0103>b{font-size:18px;color:#e9bd76}
.liveops-row-0102,.reward-row-0102{min-width:0;max-width:100%}.reward-row-0102{grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:hidden}.reward-row-0102>*{min-width:0}.reward-row-0102>button{justify-self:start}.liveops-editor-block-0102{min-width:0;max-width:100%;overflow:hidden}.liveops-row-list-0102{min-width:0;max-width:100%}.admin-pool-probability-0103{grid-column:1/-1;padding:10px 12px;border:1px solid #a57c4055;border-radius:10px;background:#211b12;color:#d7c49c}.admin-pool-probability-0103 b{display:block;margin-bottom:4px}.activity-schedule-actions-083 .danger{border-color:#ad4e55;color:#ffb9bd}
@media(max-width:1050px){.activity-strip-main-083{grid-template-columns:1fr 1.4fr}.activity-strip-meta-083{grid-column:1/-1;justify-content:flex-start}.reward-row-0102{grid-template-columns:repeat(2,minmax(160px,1fr))!important}}@media(max-width:650px){.activity-strip-083{grid-template-columns:38px minmax(0,1fr) 38px}.activity-strip-main-083{grid-template-columns:1fr;padding:14px 6px 24px}.activity-strip-meta-083{grid-column:auto}.activity-strip-dots-083{bottom:6px}.item-warehouse-grid-0103{grid-template-columns:1fr}.activity-record-row-0103{display:grid}.reward-row-0102{grid-template-columns:1fr!important}}

/* v0.10.3.1 · 首次设备选择与活动中心独立滚动 */
#activityOverlay080i .activity-panel-083{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  box-sizing:border-box!important;
}
#activityOverlay080i .activity-panel-head-083{
  flex:0 0 auto!important;
}
#activityOverlay080i .activity-nav-0103{
  flex:0 0 auto!important;
  min-height:0!important;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}
#activityOverlay080i .activity-shell-0103{
  position:relative;
  display:block!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
}
#activityOverlay080i .activity-tab-panel-0103{
  display:none;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  box-sizing:border-box;
  padding:4px 8px 28px 2px;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  touch-action:pan-y;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
}
#activityOverlay080i .activity-tab-panel-0103.active{display:block!important}
#activityOverlay080i .activity-tab-panel-0103>*:first-child{margin-top:0}
#activityOverlay080i .activity-tab-panel-0103>*:last-child{margin-bottom:0}

.device-choice-overlay-01031{
  z-index:1200!important;
  padding:18px!important;
  overflow:auto!important;
  overscroll-behavior:contain;
}
/* 局内一律不显示设备引导：这层是全屏且 z-index 1200，会截走画布的鼠标事件，
   表现为「键盘能挖、鼠标点不动」。此处用 CSS 兜底，任何路径弹出都盖不住玩法。 */
body.in-gameplay #deviceChoiceOverlay01031,
body.in-gameplay #publicBetaSettingsOverlay090{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.device-choice-panel-01031{
  width:min(820px,calc(100vw - 32px))!important;
  max-height:calc(100dvh - 32px)!important;
  padding:26px!important;
  overflow:auto!important;
  box-sizing:border-box;
}
.device-choice-panel-01031 h2{margin:6px 0 8px;font-size:clamp(26px,4vw,38px)}
.device-choice-panel-01031 .lead{margin:0 0 20px;color:#aebdca;line-height:1.6}
.device-choice-grid-01031{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.device-choice-grid-01031 button{
  display:grid;
  gap:7px;
  min-height:112px;
  padding:18px;
  text-align:left;
  border-radius:14px;
}
.device-choice-grid-01031 button b{font-size:20px}
.device-choice-grid-01031 button small{color:#9eb0bf;line-height:1.5}
.device-choice-grid-01031 .device-choice-auto-01031{grid-column:1/-1;min-height:84px}

@media(max-width:700px){
  #activityOverlay080i .activity-panel-083{height:100dvh!important;max-height:100dvh!important}
  #activityOverlay080i .activity-panel-head-083{min-height:auto!important;margin-bottom:8px!important}
  #activityOverlay080i .activity-nav-0103{padding:2px 0 8px!important}
  #activityOverlay080i .activity-tab-panel-0103{padding:2px 4px calc(24px + env(safe-area-inset-bottom)) 0}
  .device-choice-overlay-01031{padding:0!important}
  .device-choice-panel-01031{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:18px!important}
  .device-choice-grid-01031{grid-template-columns:1fr}
  .device-choice-grid-01031 .device-choice-auto-01031{grid-column:1}
  .device-choice-grid-01031 button{min-height:86px;padding:14px}
}

/* --- [CSS MODULE PART] v0104.css --- */
.ember-ticket-shop-0104{margin:14px 0;padding:14px;border:1px solid rgba(135,209,194,.28);border-radius:14px;background:linear-gradient(135deg,rgba(10,32,36,.92),rgba(18,25,37,.92));box-shadow:inset 0 0 30px rgba(66,174,154,.06)}
.ember-ticket-head-0104,.ember-ticket-balance-0104{display:flex;justify-content:space-between;gap:12px;align-items:center}.ember-ticket-head-0104 div{display:grid;gap:2px}.ember-ticket-head-0104 span,.ember-ticket-balance-0104 span{font-size:.72rem;letter-spacing:.12em;color:#75bdb0}.ember-ticket-head-0104 strong{font-size:1.05rem}.ember-ticket-head-0104 small{max-width:62%;text-align:right;color:#9cb4b4}.ember-ticket-body-0104{margin-top:12px}.ember-ticket-balance-0104{padding:9px 11px;margin-bottom:10px;border-radius:10px;background:rgba(0,0,0,.2)}.ember-ticket-balance-0104 strong{font-size:1.25rem;color:#f0c876}.ember-ticket-grid-0104{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ember-ticket-card-0104{display:grid;gap:8px;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(7,13,20,.5)}.ember-ticket-card-0104>div:first-child{display:grid;gap:3px}.ember-ticket-card-0104 span{color:#d4eeea}.ember-ticket-card-0104 strong{font-size:1.12rem}.ember-ticket-card-0104 small,.ember-ticket-note-0104,.ember-ticket-login-0104{color:#9fb1b5}.ember-ticket-price-0104{font-weight:800;color:#efc979}.ember-ticket-actions-0104{display:flex;gap:7px;flex-wrap:wrap}.ember-ticket-actions-0104 button{flex:1;min-width:92px}.upgrade-pips-0104{grid-template-columns:repeat(10,1fr)!important}.ember-ticket-note-0104{margin:10px 0 0;font-size:.78rem;line-height:1.55}
@media(max-width:720px){.ember-ticket-grid-0104{grid-template-columns:1fr}.ember-ticket-head-0104{align-items:flex-start}.ember-ticket-head-0104 small{max-width:48%}.upgrade-pips-0104{grid-template-columns:repeat(10,minmax(4px,1fr))!important}}

/* --- [CSS MODULE PART] v01043.css --- */
/* 黑井撤离 v0.10.4.3 · 手机触控命中区与顶部按钮稳定层 */
body.device-handheld .right-actions,
body.ui-handheld .right-actions{
  pointer-events:auto!important;
  z-index:92!important;
  isolation:isolate;
}
body.device-handheld #taskToggleBtn,
body.ui-handheld #taskToggleBtn,
body.device-handheld #mobileUtilityBtn,
body.ui-handheld #mobileUtilityBtn{
  pointer-events:auto!important;
  touch-action:manipulation!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-tap-highlight-color:transparent!important;
  z-index:94!important;
  min-width:72px!important;
  min-height:48px!important;
}
body.device-handheld #taskToggleBtn::before,
body.ui-handheld #taskToggleBtn::before,
body.device-handheld #mobileUtilityBtn::before,
body.ui-handheld #mobileUtilityBtn::before{
  content:"";
  position:absolute;
  inset:-6px;
}
body.device-handheld .mobile-controls,
body.ui-handheld .mobile-controls{z-index:52!important;}
body.device-handheld #actionButton,
body.ui-handheld #actionButton,
body.device-handheld #mineButton,
body.ui-handheld #mineButton{
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  min-width:104px!important;
  min-height:76px!important;
}
body.device-handheld #actionButton::before,
body.ui-handheld #actionButton::before,
body.device-handheld #mineButton::before,
body.ui-handheld #mineButton::before{
  content:"";
  position:absolute;
  inset:-5px;
}
body.device-handheld #stick,
body.ui-handheld #stick{touch-action:none!important;}
body.device-handheld #mobileUtilityPanel,
body.ui-handheld #mobileUtilityPanel{z-index:96!important;pointer-events:auto!important;}
@media (orientation:landscape) and (max-height:520px){
  body.device-handheld #taskToggleBtn,
  body.ui-handheld #taskToggleBtn,
  body.device-handheld #mobileUtilityBtn,
  body.ui-handheld #mobileUtilityBtn{min-height:46px!important;height:46px!important;}
  body.device-handheld #actionButton,
  body.ui-handheld #actionButton,
  body.device-handheld #mineButton,
  body.ui-handheld #mineButton{width:104px!important;height:76px!important;}
}

/* --- [CSS MODULE PART] v0305-ui.css --- */
/* v0.30.5 Stage 3 · 1.0 前夜 UI 收口层
   只重排信息层级 / 密度 / 可访问性，不改变游戏数值与交互协议。 */
:root{
  --ui0305-surface:rgba(7,13,20,.86);
  --ui0305-line:rgba(143,183,199,.2);
  --ui0305-focus:#aee7df;
  --ui0305-muted:#91a6b2;
}

/* 键盘可见焦点：不再用 hover 代替可访问反馈。 */
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--ui0305-focus)!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 5px rgba(174,231,223,.12)!important;
}

.pre1-ui-toolbar-v0305{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;
  margin:14px 0 0;padding:11px 13px;border:1px solid var(--ui0305-line);border-radius:13px;
  background:linear-gradient(110deg,rgba(17,29,39,.86),rgba(8,14,21,.78));
}
.pre1-ui-toolbar-copy-v0305{display:grid;gap:3px;min-width:0}.pre1-ui-toolbar-copy-v0305 span{font-size:8px;letter-spacing:.17em;color:#82b8bb;font-weight:850}.pre1-ui-toolbar-copy-v0305 b{font-size:12px;color:#e8f1f2}.pre1-ui-toolbar-copy-v0305 small{font-size:9px;color:var(--ui0305-muted)}
.pre1-ui-toolbar-actions-v0305{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.pre1-ui-toolbar-actions-v0305 button{min-height:38px;padding:7px 10px;font-size:10px;box-shadow:none}
.pre1-briefing-v0305{margin:8px 0 0;padding:12px;border:1px solid rgba(185,164,110,.23);border-radius:13px;background:linear-gradient(115deg,rgba(42,32,20,.5),rgba(8,14,20,.76))}
.pre1-briefing-head-v0305{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}.pre1-briefing-head-v0305>div{display:grid;gap:2px}.pre1-briefing-head-v0305 span{font-size:8px;letter-spacing:.16em;color:#c6a96f}.pre1-briefing-head-v0305 b{font-size:13px}.pre1-briefing-head-v0305 button{min-height:34px;padding:6px 9px;font-size:9px;box-shadow:none}
.pre1-briefing-grid-v0305{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pre1-briefing-grid-v0305 article{display:flex;gap:9px;min-width:0;padding:9px;border:1px solid rgba(190,179,141,.13);border-radius:10px;background:rgba(5,10,15,.42)}.pre1-briefing-grid-v0305 i{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:8px;background:rgba(199,168,108,.12);color:#d3b87e;font-size:9px;font-style:normal;font-weight:900}.pre1-briefing-grid-v0305 div{display:grid;gap:3px}.pre1-briefing-grid-v0305 b{font-size:11px}.pre1-briefing-grid-v0305 small{font-size:9px;line-height:1.45;color:#96a7af}

/* 标准 / 紧凑 HUD：紧凑只减少冗余信息，不移除生命、背包、压力、目标等关键状态。 */
body[data-hud-density="compact"] .topbar .stat{padding:7px 9px!important;border-radius:10px!important}
body[data-hud-density="compact"] .topbar .label{margin-bottom:3px!important;font-size:8px!important}
body[data-hud-density="compact"] .topbar .value{font-size:11px!important}
body[data-hud-density="compact"] .topbar .bar{height:4px!important;margin-top:4px!important}
body[data-hud-density="compact"] .run-context-080i{width:min(310px,calc(100vw - 20px));grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-hud-density="compact"] .run-context-brand-080i,body[data-hud-density="compact"] .run-context-item-080i.event-slot-080i{display:none!important}
body[data-hud-density="compact"] .run-context-item-080i{padding:7px 8px}
body[data-hud-density="compact"] .objective:not(.tasks-user-open){max-height:104px!important;overflow:hidden!important;mask-image:linear-gradient(#000 0 78%,transparent 100%)}
body[data-hud-density="compact"] .boss-hud{padding:8px 11px!important}
body.ui-desktop[data-hud-density="compact"] .topbar{width:min(900px,calc(100vw - 360px))!important;gap:6px!important}
body.ui-desktop[data-hud-density="compact"] .objective{width:min(430px,calc(100vw - 300px))!important}

/* 手机默认使用紧凑密度，但仍给主要触摸交互保留 44px 目标。 */
body.ui-handheld .pre1-ui-toolbar-v0305{grid-template-columns:1fr;gap:8px;padding:9px}.ui-handheld .pre1-ui-toolbar-actions-v0305{justify-content:stretch}.ui-handheld .pre1-ui-toolbar-actions-v0305 button{flex:1 1 120px;min-height:44px}.ui-handheld .pre1-briefing-grid-v0305{grid-template-columns:1fr}.ui-handheld .pre1-briefing-head-v0305 button{min-height:44px}.ui-handheld .mode-card-actions button,.ui-handheld .terminal-group button,.ui-handheld #mobileUtilityPanel button{min-height:44px!important}
body.ui-handheld[data-hud-density="compact"] .topbar{gap:4px!important}.ui-handheld[data-hud-density="compact"] .topbar .label{display:none!important}.ui-handheld[data-hud-density="compact"] .topbar .value span:nth-child(2){font-size:8px!important;opacity:.72}.ui-handheld[data-hud-density="compact"] .run-context-080i{grid-template-columns:repeat(3,minmax(0,1fr))!important}

/* 桌面标题页：主路径和次级终端更容易扫读。 */
body.ui-desktop #menuOverlay>.panel{scrollbar-gutter:stable}.ui-desktop .launch-section{margin-top:15px}.ui-desktop .terminal-dashboard{margin-top:11px}.ui-desktop .gameplay-guide{margin-top:10px}.ui-desktop .mode-launch-card{min-height:152px}.ui-desktop .terminal-group button{min-height:42px!important}

/* 低动效模式既可由系统偏好触发，也可在标题页手动开启。 */
.ui-reduced-motion-v0305 *, .ui-reduced-motion-v0305 *::before, .ui-reduced-motion-v0305 *::after{
  animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important;
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

@media(max-width:900px){
  .pre1-briefing-grid-v0305{grid-template-columns:1fr}.pre1-ui-toolbar-v0305{grid-template-columns:1fr}.pre1-ui-toolbar-actions-v0305{justify-content:flex-start}
}
@media(max-width:560px){
  .pre1-ui-toolbar-copy-v0305 small{display:none}.pre1-ui-toolbar-actions-v0305{display:grid;grid-template-columns:1fr 1fr}.pre1-ui-toolbar-actions-v0305 [data-ui0305-guide]{grid-column:1/-1}.pre1-briefing-v0305{padding:9px}
}

/* --- [CSS MODULE PART] v100-rc3-stage1.css --- */
/* 黑井撤离 v1.0 RC3 Stage 1 · 主界面信息架构 / 活动侧栏 / Typography tokens */
:root{
  --bw-font-ui:"Noto Sans SC","Source Han Sans SC","Microsoft YaHei UI","PingFang SC","Segoe UI",system-ui,sans-serif;
  --bw-type-display:clamp(40px,4.2vw,72px);
  --bw-type-heading:clamp(24px,2.1vw,34px);
  --bw-type-subheading:18px;
  --bw-type-body:15px;
  --bw-type-label:13px;
  --bw-type-meta:11px;
  --bw-line-body:1.62;
  --bw-shell-gap:18px;
  --bw-sidebar:214px;
  --bw-surface:rgba(8,13,20,.82);
  --bw-surface-strong:rgba(11,17,26,.96);
  --bw-border:rgba(143,179,195,.16);
  --bw-border-strong:rgba(132,199,199,.35);
  --bw-accent:#8fc9c9;
  --bw-muted:#8ea0ad;
}
html,body,button,input,select,textarea{font-family:var(--bw-font-ui)!important}
#menuOverlay>.panel{width:min(1480px,calc(100vw - 36px))!important;max-width:1480px!important}
.menu-brand-v080i h1{font-family:var(--bw-font-ui)!important;font-size:var(--bw-type-display)!important;letter-spacing:-.04em!important}
.menu-brand-v080i .lead,.rc3-copy{font-size:var(--bw-type-body)!important;line-height:var(--bw-line-body)!important}
.rc3-meta{font-size:var(--bw-type-meta)!important;color:var(--bw-muted)}
.rc3-home-shell{display:grid;grid-template-columns:var(--bw-sidebar) minmax(0,1fr);gap:var(--bw-shell-gap);margin-top:18px;min-height:510px}
.rc3-primary-nav{display:flex;flex-direction:column;gap:7px;padding:10px;border:1px solid var(--bw-border);border-radius:18px;background:linear-gradient(180deg,rgba(8,13,20,.9),rgba(5,9,14,.74));align-self:start;position:sticky;top:0}
.rc3-primary-nav-header{padding:9px 10px 12px;border-bottom:1px solid var(--bw-border);margin-bottom:3px}
.rc3-primary-nav-header small{display:block;color:#6f8794;font-size:10px;letter-spacing:.15em}.rc3-primary-nav-header b{display:block;margin-top:4px;font-size:15px;color:#dce8e8}
.rc3-nav-button{display:grid!important;grid-template-columns:26px 1fr!important;align-items:center!important;gap:10px!important;min-height:50px!important;text-align:left!important;padding:9px 10px!important;background:transparent!important;border:1px solid transparent!important;border-radius:12px!important;color:#aab8c2!important}
.rc3-nav-button i{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:rgba(136,185,192,.08);font-style:normal;color:#8dbbc0}.rc3-nav-button span{display:grid;gap:1px}.rc3-nav-button b{font-size:13px}.rc3-nav-button small{font-size:9px;color:#667986}
.rc3-nav-button.selected{background:linear-gradient(135deg,rgba(73,132,136,.2),rgba(43,78,88,.08))!important;border-color:var(--bw-border-strong)!important;color:#f0f7f6!important}.rc3-nav-button.selected i{background:rgba(126,199,194,.18);color:#d5f2ee}
.rc3-home-content{min-width:0;padding:2px}
.rc3-pane{display:none;min-width:0}.rc3-pane.selected{display:block}
.rc3-pane-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin:0 0 14px;padding:0 2px 13px;border-bottom:1px solid var(--bw-border)}
.rc3-pane-head h2{margin:0;font-size:var(--bw-type-heading)!important}.rc3-pane-head p{max-width:680px;margin:5px 0 0;color:#91a2ae;font-size:13px;line-height:1.55}
.rc3-pane-head .rc3-kicker{font-size:10px;letter-spacing:.15em;color:#79979c}
.rc3-home-shell .launch-section,.rc3-home-shell #activityStrip083{margin-top:0!important}
.rc3-home-shell .mode-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rc3-home-shell .mode-launch-card{min-height:156px!important}.rc3-home-shell #expeditionLaunch0300{grid-column:1/-1}
.rc3-shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rc3-shortcut-card{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-height:142px;padding:16px;border:1px solid var(--bw-border);border-radius:16px;background:linear-gradient(145deg,rgba(15,22,31,.9),rgba(8,12,18,.82));box-shadow:0 14px 30px rgba(0,0,0,.16)}
.rc3-shortcut-card strong{font-size:17px;color:#edf5f3}.rc3-shortcut-card p{margin:0;color:#80939e;font-size:12px;line-height:1.5}.rc3-shortcut-card button{align-self:flex-start;min-width:116px}
.rc3-activity-callout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:20px;border:1px solid rgba(174,145,92,.28);border-radius:18px;background:linear-gradient(120deg,rgba(70,53,27,.18),rgba(16,20,26,.86))}
.rc3-activity-callout h3{margin:4px 0 7px;font-size:24px!important}.rc3-activity-callout p{margin:0;color:#a79b84;line-height:1.55}.rc3-activity-callout button{min-width:150px}
/* v1.0.13：这一行把整个旧终端区（战令/排行榜/永久强化/档案/标本/设置…）全设成 display:none，
   结果这些按钮永远 0×0、玩家点不到，反馈就是「战令界面是死的」。
   rc3 新首页只补了部分快捷卡，没有替代入口，所以这里恢复显示，作为「全部功能」区。 */
#menuOverlay .terminal-dashboard{display:grid!important;margin-top:16px!important}
#menuOverlay .gameplay-guide{margin-top:12px!important}
#menuOverlay.rc3-menu-ready .gameplay-guide{display:none!important}
/* Activity center gets a true grouped sidebar. */
#activityOverlay080i .activity-nav-0103,#activityOverlay080i .activity-nav-090{padding:12px!important;background:linear-gradient(180deg,rgba(7,12,19,.95),rgba(5,9,14,.88))!important;border:1px solid var(--bw-border)!important;border-radius:14px!important}
#activityOverlay080i .activity-nav-0103 .rc3-activity-nav-label,#activityOverlay080i .activity-nav-090 .rc3-activity-nav-label{padding:12px 9px 5px;color:#647986;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
#activityOverlay080i .activity-nav-0103 .rc3-activity-nav-label:first-child,#activityOverlay080i .activity-nav-090 .rc3-activity-nav-label:first-child{padding-top:4px}
#activityOverlay080i .activity-nav-0103 button,#activityOverlay080i .activity-nav-090 button{min-height:44px!important;border-radius:10px!important;font-size:12px!important;text-align:left!important}
#activityOverlay080i .activity-nav-0103 button.selected,#activityOverlay080i .activity-nav-090 button.selected{box-shadow:inset 3px 0 0 #87c4c2}
@media(min-width:701px){
  #activityOverlay080i .activity-panel-083{display:grid!important;grid-template-columns:242px minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;gap:14px 18px!important;overflow:hidden!important}
  #activityOverlay080i .activity-panel-head-083{grid-column:1/-1!important;grid-row:1!important}
  #activityOverlay080i .activity-nav-0103,#activityOverlay080i .activity-nav-090{grid-column:1!important;grid-row:2!important;display:flex!important;flex-direction:column!important;gap:5px!important;margin:0!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important}
  #activityOverlay080i .activity-shell-0103,#activityOverlay080i .activity-shell-090{grid-column:2!important;grid-row:2!important;display:block!important;height:100%!important;min-height:0!important;overflow:hidden!important}
  #activityOverlay080i .activity-tab-panel-0103.active{height:100%!important;overflow:auto!important;padding-right:4px!important}
}
.activity-panel-head-083 h2{font-size:var(--bw-type-heading)!important}.activity-panel-head-083 .lead{font-size:13px!important;line-height:1.55!important}
/* UI density and typography convergence */
.panel h2{font-family:var(--bw-font-ui)!important;font-weight:760!important;letter-spacing:-.025em}.panel h3{font-family:var(--bw-font-ui)!important;font-weight:720!important}.panel p,.panel label,.panel .lead{font-family:var(--bw-font-ui)!important}.eyebrow{font-family:var(--bw-font-ui)!important;font-size:10px!important;letter-spacing:.15em!important}
@media(max-width:1050px){
  :root{--bw-sidebar:180px;--bw-shell-gap:12px}.rc3-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rc3-home-shell .mode-launch-grid{grid-template-columns:1fr!important}.rc3-home-shell #expeditionLaunch0300{grid-column:auto}.rc3-nav-button small{display:none}
}
@media(max-width:700px){
  :root{--bw-type-body:14px}.rc3-home-shell{display:block;min-height:0}.rc3-primary-nav{position:sticky;top:0;z-index:4;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:-3px 0 12px;padding:6px;overflow-x:auto}.rc3-primary-nav-header{display:none}.rc3-nav-button{display:flex!important;justify-content:center!important;min-height:44px!important;padding:6px 4px!important;text-align:center!important}.rc3-nav-button i{display:none}.rc3-nav-button b{font-size:10px}.rc3-nav-button small{display:none}.rc3-pane-head{display:block;margin-bottom:10px;padding-bottom:10px}.rc3-pane-head h2{font-size:22px!important}.rc3-pane-head p{font-size:11px}.rc3-shortcut-grid{grid-template-columns:1fr}.rc3-shortcut-card{min-height:112px;padding:13px}.rc3-activity-callout{grid-template-columns:1fr;padding:14px}.rc3-activity-callout h3{font-size:20px!important}.rc3-home-shell .mode-launch-card{min-height:125px!important}#activityOverlay080i .activity-shell-0103,#activityOverlay080i .activity-shell-090{display:block!important}#activityOverlay080i .activity-nav-0103,#activityOverlay080i .activity-nav-090{display:flex!important;flex-direction:row!important;gap:5px!important;margin-bottom:10px!important;overflow-x:auto!important;padding:2px 0 8px!important;border:0!important;background:transparent!important}#activityOverlay080i .activity-nav-0103 .rc3-activity-nav-label,#activityOverlay080i .activity-nav-090 .rc3-activity-nav-label{display:none!important}#activityOverlay080i .activity-nav-0103 button,#activityOverlay080i .activity-nav-090 button{flex:0 0 auto!important;width:auto!important;min-height:40px!important;padding:7px 10px!important;text-align:center!important}.activity-shell-090>[data-public-beta-tab]{height:auto!important;max-height:calc(100dvh - 270px)!important}
}
@media(prefers-reduced-motion:reduce){.rc3-nav-button,.rc3-shortcut-card{transition:none!important}}

/* --- [CSS MODULE PART] v100-rc3-stage2.css --- */
:root{--rc3-role-permanent:#78cdbd;--rc3-role-limited:#d6b06f}.rc3-acquisition-tag{position:absolute;top:7px;right:7px;z-index:4;padding:3px 7px;border:1px solid rgba(124,205,190,.35);border-radius:999px;background:rgba(8,19,23,.88);font:700 9px/1.2 var(--bw-font-ui);letter-spacing:.04em;color:#a8e7dc}.limited-locked-0833 .rc3-acquisition-tag{border-color:rgba(214,176,111,.38);color:#efd4a2}.rc3-permanent-locked{box-shadow:inset 0 0 0 1px rgba(120,205,189,.18)}.rc3-permanent-roster{display:grid;grid-template-columns:auto auto;gap:7px;margin:9px 0;padding:10px;border:1px solid rgba(120,205,189,.18);border-radius:10px;background:rgba(33,85,80,.08)}.rc3-permanent-roster b,.rc3-permanent-roster small{grid-column:1/-1}.rc3-permanent-roster span{padding:6px 8px;border-radius:7px;background:rgba(120,205,189,.08)}.rc3-training-overlay{z-index:160}.rc3-training-panel{width:min(850px,94vw);max-height:90vh;overflow:auto}.rc3-training-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.rc3-training-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.rc3-training-tabs button{min-height:36px}.rc3-training-tabs button.active{border-color:rgba(224,172,100,.72);background:rgba(118,74,28,.22)}.rc3-training-body{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:stretch}.rc3-training-target{position:relative;min-height:260px;border:1px solid rgba(215,172,107,.22);border-radius:16px;background:radial-gradient(circle at 50% 42%,rgba(160,65,38,.18),transparent 40%),linear-gradient(180deg,rgba(11,21,25,.92),rgba(5,10,12,.96));display:grid;place-items:center;overflow:hidden}.rc3-training-target span{width:92px;height:132px;border:2px solid rgba(229,186,126,.7);border-radius:44% 44% 35% 35%;box-shadow:0 0 35px rgba(202,101,59,.15)}.rc3-training-target i{position:absolute;width:150px;height:150px;border:2px dashed rgba(220,121,73,.38);border-radius:50%}.rc3-training-target b{position:absolute;bottom:18px}.rc3-training-target.pulse i{animation:rc3TrainPulse .7s ease-out}.rc3-training-copy{padding:14px;border:1px solid rgba(126,178,182,.16);border-radius:14px;background:rgba(17,29,32,.55)}.rc3-training-copy p{display:grid;gap:4px}.rc3-training-copy p b{font-size:11px;letter-spacing:.06em;color:#d8c199}.rc3-training-status{margin-top:10px;min-height:22px;color:#9fb8bb}@keyframes rc3TrainPulse{0%{transform:scale(.75);opacity:.9}100%{transform:scale(1.45);opacity:0}}@media(max-width:700px){.rc3-training-body{grid-template-columns:1fr}.rc3-training-target{min-height:180px}.rc3-training-head{align-items:center}.rc3-permanent-roster{grid-template-columns:1fr}}

/* --- [CSS MODULE PART] v100-rc3-stage3.css --- */
/* v1.0 RC3 Stage 3 · 终止月与活动重制 */
.activity-rc3-meta{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.activity-rc3-meta span{font-size:10px;padding:3px 7px;border-radius:999px;border:1px solid rgba(207,171,128,.2);color:#cab394;background:rgba(111,73,43,.12)}.activity-rc3-meta span+span{border-style:dashed;color:#aeb9b9;background:transparent}.rc3-activity-revision{display:block;width:max-content;margin-bottom:3px;font-size:8px!important;letter-spacing:.11em;color:#a9805b!important}.activity-card-083.rc3-activity-featured{border-color:rgba(190,86,77,.55);background:linear-gradient(145deg,rgba(43,18,17,.92),rgba(10,14,17,.9))}.activity-card-083.rc3-activity-theme{border-color:rgba(183,132,78,.35)}.activity-card-083.rc3-activity-archive{border-color:rgba(123,105,173,.35)}
.rc3-termination-panel{margin:0 0 18px;padding:16px;border:1px solid rgba(185,77,70,.52);border-radius:14px;background:radial-gradient(circle at 84% 4%,rgba(133,39,39,.22),transparent 38%),linear-gradient(145deg,rgba(37,14,15,.97),rgba(9,14,18,.96));box-shadow:0 18px 48px rgba(0,0,0,.18)}.rc3-term-hero{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:18px;align-items:start}.rc3-term-hero span{font-size:9px;letter-spacing:.15em;color:#d18f84}.rc3-term-hero h2{font-size:28px;margin:4px 0 5px}.rc3-term-hero p{margin:0;color:#c8c0bd;line-height:1.6}.rc3-term-progress{padding:10px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(0,0,0,.18)}.rc3-term-progress small{display:block;color:#baaaa6}.rc3-term-progress b{display:block;font-size:22px;margin:4px 0}.rc3-term-progress i{display:block;height:5px;background:rgba(255,255,255,.08);border-radius:9px;overflow:hidden}.rc3-term-progress em{display:block;height:100%;background:#b85f55}.rc3-term-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.rc3-term-missions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:10px 0 14px}.rc3-term-missions>div{padding:8px;border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(255,255,255,.025)}.rc3-term-missions>div.done{border-color:rgba(113,197,157,.42);background:rgba(49,103,78,.15)}.rc3-term-missions b,.rc3-term-missions span{display:block;font-size:10px}.rc3-term-missions span{margin-top:4px;color:#978f8c}.rc3-term-operations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.rc3-term-operations article{padding:10px;border-left:2px solid rgba(184,91,79,.55);background:rgba(98,35,32,.11)}.rc3-term-operations small,.rc3-term-operations b{display:block}.rc3-term-operations small{font-size:9px;color:#b38e87}.rc3-term-operations b{margin:3px 0;font-size:12px}.rc3-term-operations p{font-size:10px;line-height:1.5;margin:0;color:#aaa4a2}.rc3-term-timeline-title{margin:16px 0 7px}.rc3-term-timeline{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(180px,230px);gap:7px;overflow:auto;padding:3px 2px 8px;scroll-snap-type:x proximity}.rc3-term-timeline article{scroll-snap-align:start;min-height:126px;padding:10px;border:1px solid rgba(255,255,255,.09);border-radius:9px;background:rgba(4,9,12,.55)}.rc3-term-timeline article.locked{filter:saturate(.2);opacity:.46}.rc3-term-timeline small{display:block;color:#ca776d;font-weight:700}.rc3-term-timeline b{display:block;margin:5px 0;font-size:12px}.rc3-term-timeline p{font-size:10px;line-height:1.6;margin:0;color:#aaa}.rc3-termination-panel footer{margin-top:10px;padding-top:8px;border-top:1px solid rgba(255,255,255,.07);font-size:9px;color:#827b79}@media(max-width:850px){.rc3-term-hero{grid-template-columns:1fr}.rc3-term-missions{grid-template-columns:repeat(2,1fr)}.rc3-term-operations{grid-template-columns:1fr 1fr}}@media(max-width:520px){.rc3-term-missions,.rc3-term-operations{grid-template-columns:1fr}.rc3-term-hero h2{font-size:23px}}

/* Stage C · v1.0 / v1.1 / v1.2 版本活动统一视觉层 */
.activity-version-badge{font-weight:900!important;border-style:solid!important;letter-spacing:.08em}
.rc3-version-switcher{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:7px;align-items:stretch;margin:-2px 0 14px}
.rc3-version-switcher>span{display:flex;align-items:center;padding:8px 10px;font-size:9px;letter-spacing:.12em;color:#958d88;font-weight:700}
.rc3-version-switcher button[data-version-event]{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(255,255,255,.02);text-align:left;transition:all .15s ease}
.rc3-version-switcher button[data-version-event]:hover{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.05)}
.rc3-version-switcher button[data-version-event].active{border-color:rgba(207,171,128,.54);background:rgba(150,107,71,.15);box-shadow:0 0 12px rgba(207,171,128,.15)}
.rc3-version-switcher b{font-size:11px}
.rc3-version-switcher small{font-size:9px;color:#9e9790}
.rc3-version-character{display:inline-flex;margin-top:9px;padding:4px 10px;border:1px solid rgba(255,255,255,.11);border-radius:999px;font-size:9px;color:#c8b8a4;background:rgba(0,0,0,.22)}
.rc3-version-mechanic{margin:13px 0 8px;padding:10px 12px;border-left:2px solid rgba(207,171,128,.5);background:rgba(255,255,255,.025)}
.rc3-version-mechanic b{display:block;font-size:10px}
.rc3-version-mechanic p{margin:4px 0 0;font-size:10px;line-height:1.6;color:#aaa}
.rc3-version-panel.accent-echo{border-color:rgba(92,171,178,.48);background:radial-gradient(circle at 84% 4%,rgba(50,128,137,.18),transparent 38%),linear-gradient(145deg,rgba(11,30,33,.97),rgba(8,13,17,.96))}
.rc3-version-panel.accent-echo .rc3-term-progress em{background:#62aeb5}
.rc3-version-panel.accent-echo .rc3-term-timeline small{color:#78c7cd}
.rc3-version-panel.accent-archive{border-color:rgba(126,103,174,.52);background:radial-gradient(circle at 84% 4%,rgba(83,61,135,.2),transparent 38%),linear-gradient(145deg,rgba(25,19,40,.97),rgba(9,13,18,.96))}
.rc3-version-panel.accent-archive .rc3-term-progress em{background:#8e77bd}
.rc3-version-panel.accent-archive .rc3-term-timeline small{color:#ad99da}
@media(max-width:720px){.rc3-version-switcher{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.rc3-version-switcher{grid-template-columns:1fr}}

/* v1.0.8 / v1.0.12 · 1.0 - 1.2 活动内容与交互扩展 */
.v104-content-section{margin-top:16px}.v104-content-section>h3{margin:0 0 8px;font-size:13px;letter-spacing:.04em}
.v104-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.v104-content-grid article{min-width:0;padding:11px;border:1px solid rgba(255,255,255,.085);border-radius:9px;background:rgba(4,9,12,.42);transition:all .15s ease}
.v104-content-grid article:hover{border-color:rgba(255,255,255,.18);background:rgba(6,12,16,.52)}
.v104-content-grid small,.v104-content-grid b{display:block}
.v104-content-grid small{font-size:10px;line-height:1.4;color:#aa9d94}
.v104-content-grid b{margin:4px 0;font-size:13px;line-height:1.45}
.v104-content-grid p{margin:0;font-size:11px;line-height:1.65;color:#aaa;overflow-wrap:anywhere}
.v104-phase-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.v104-phase-grid article{position:relative;min-width:0;padding:10px 9px 11px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(0,0,0,.18);transition:all .15s ease}
.v104-phase-grid article>span{position:absolute;right:8px;top:7px;font-size:18px;font-weight:900;color:rgba(255,255,255,.09)}
.v104-phase-grid small,.v104-phase-grid b{display:block;position:relative}
.v104-phase-grid small{font-size:9px;color:#bd8179}
.v104-phase-grid b{margin:4px 0;font-size:12px;padding-right:18px}
.v104-phase-grid p{position:relative;margin:0;font-size:10px;line-height:1.55;color:#a9a3a0}
.v104-minigame-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.v104-minigame-grid>button{display:flex;min-width:0;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;padding:12px;border:1px solid rgba(207,171,128,.22);border-radius:10px;background:linear-gradient(145deg,rgba(117,82,51,.1),rgba(5,10,13,.5));white-space:normal;cursor:pointer;transition:all .2s ease}
.v104-minigame-grid>button:hover{border-color:rgba(207,171,128,.5);background:rgba(128,91,57,.16);transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.25)}
.v104-minigame-grid>button.completed{border-color:rgba(96,180,143,.48);background:rgba(39,93,69,.13)}
.v104-minigame-card-header{display:flex;justify-content:space-between;align-items:center;width:100%}
.v104-minigame-type-badge{font-size:8px;padding:2px 5px;border-radius:3px;background:rgba(255,255,255,.08);color:#cbd5e1;letter-spacing:.06em}
.v104-minigame-grid small{font-size:9px;letter-spacing:.1em;color:#a98c6f}
.v104-minigame-grid b{font-size:14px}
.v104-minigame-grid span{font-size:11px;line-height:1.6;color:#aaa;overflow-wrap:anywhere}
.v104-minigame-grid em{margin-top:4px;font-size:10px;font-style:normal;color:#d0baa1}
.rc3-term-actions button.completed{border-color:rgba(96,180,143,.4);color:#a8d9bf}
.v104-epilogue{padding-top:2px;border-top:1px solid rgba(255,255,255,.06)}

/* 小游戏模态框全案样式 */
.v104-minigame-overlay{position:fixed;inset:0;z-index:25000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.82);backdrop-filter:blur(6px)}
.v104-minigame-overlay.hidden{display:none!important}
.v104-minigame-overlay>section{width:min(720px,100%);max-height:min(780px,94vh);overflow:auto;padding:20px;border:1px solid rgba(207,171,128,.36);border-radius:14px;background:linear-gradient(150deg,#11191d,#080c0f);box-shadow:0 24px 80px rgba(0,0,0,.65)}
.v104-minigame-overlay header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid rgba(255,255,255,.07);padding-bottom:10px}
.v104-minigame-overlay header small{font-size:10px;letter-spacing:.12em;color:#aa8766}
.v104-minigame-overlay header h2{margin:3px 0 0;font-size:23px}
.v104-minigame-overlay header button{min-width:38px;font-size:22px;border-radius:6px;cursor:pointer}
.v104-mini-intro{margin:12px 0;color:#b6b1ad;font-size:12px;line-height:1.65}
.v104-mini-clue,.v104-mini-limit{padding:10px 12px;border-left:2px solid rgba(207,171,128,.5);background:rgba(255,255,255,.025);font-size:12px;line-height:1.6;display:flex;align-items:center;justify-content:space-between}

/* 示波器与终端样式 */
.v104-mini-oscilloscope{width:100%;height:88px;border-radius:8px;border:1px solid rgba(92,171,178,.35);background:#050c0e;margin:10px 0;display:block;box-shadow:inset 0 0 16px rgba(0,0,0,.6),0 0 14px rgba(92,171,178,.15)}
.v104-mini-terminal{background:#070e0a;border:1px solid rgba(75,185,115,.4);border-radius:9px;padding:12px;margin:10px 0;font-family:monospace;position:relative;overflow:hidden;box-shadow:inset 0 0 20px rgba(0,0,0,.8),0 0 15px rgba(50,150,80,.15)}
.v104-mini-terminal::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(18,16,16,0) 50%,rgba(0,0,0,.28) 50%);background-size:100% 4px;pointer-events:none}
.v104-terminal-header{font-size:10px;color:#5ddc86;letter-spacing:.1em;margin-bottom:6px;font-weight:700}
.v104-terminal-buffer{font-size:13px;color:#aef5c5;margin:6px 0;line-height:1.5}
.v104-cursor{display:inline-block;animation:v104Blink 1s infinite;color:#5ddc86;font-weight:900}
@keyframes v104Blink{0%,49%{opacity:1}50%,100%{opacity:0}}

/* 脉冲序列按钮 */
.v104-mini-sequence{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}
.v104-mini-sequence button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(255,255,255,.03);cursor:pointer;transition:all .15s ease}
.v104-mini-sequence button small{font-size:8px;color:#8fa3a3;letter-spacing:.08em}
.v104-mini-sequence button b{font-size:17px;font-weight:800}
.v104-mini-sequence button:hover{border-color:rgba(92,171,178,.6);background:rgba(92,171,178,.15);transform:translateY(-1px)}
.v104-mini-sequence button.selected{border-color:#5ccbb2;background:rgba(92,203,178,.25);color:#fff;box-shadow:0 0 12px rgba(92,203,178,.35)}
.v104-terminal-keys button:hover{border-color:#5ddc86;background:rgba(93,220,134,.16)}
.v104-terminal-keys button.selected{border-color:#5ddc86;background:rgba(93,220,134,.28);color:#fff;box-shadow:0 0 12px rgba(93,220,134,.4)}
.v104-mini-current{font-size:12px;color:#aaa;margin-top:8px}
.v104-mini-current b{color:#eee;letter-spacing:.04em}

/* 标本分类卡片与快捷标签 */
.v104-mini-classification{display:grid;gap:10px}
.v104-specimen-card{padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:9px;background:rgba(4,9,12,.48);transition:border-color .2s}
.v104-specimen-card.classified{border-color:rgba(92,171,178,.45);background:rgba(14,28,32,.45)}
.v104-specimen-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.v104-specimen-header b{font-size:13px}
.v104-specimen-badge{font-size:9px;padding:2px 7px;border-radius:4px;background:rgba(255,255,255,.07);color:#9ca3af;letter-spacing:.06em}
.v104-specimen-badge.locked{background:rgba(92,171,178,.25);color:#78c7cd;border:1px solid rgba(92,171,178,.4);font-weight:700}
.v104-specimen-card p{margin:4px 0 8px;font-size:11px;line-height:1.55;color:#aaa}
.v104-mini-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.v104-category-chip{padding:5px 11px;font-size:11px;border:1px solid rgba(255,255,255,.12);border-radius:6px;background:rgba(255,255,255,.03);color:#cbd5e1;cursor:pointer;transition:all .15s ease}
.v104-category-chip:hover{border-color:rgba(92,171,178,.6);background:rgba(92,171,178,.15);color:#fff}
.v104-category-chip.active{border-color:#5ccbb2;background:rgba(92,203,178,.28);color:#fff;font-weight:700;box-shadow:0 0 8px rgba(92,203,178,.35)}
.v104-specimen-select{display:none}

/* 调度防御与阀门卡片 */
.v104-lock-status{font-size:11px;color:#d46055}
.v104-mini-priority{display:grid;gap:8px;margin-top:10px}
.v104-valve-card{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:9px;background:rgba(4,9,12,.48);cursor:pointer;transition:all .2s ease}
.v104-valve-card:hover{border-color:rgba(212,96,85,.55);background:rgba(35,16,18,.5)}
.v104-valve-card.locked{border-color:rgba(212,96,85,.85);background:rgba(65,22,25,.55);box-shadow:0 0 14px rgba(212,96,85,.25)}
.v104-valve-card input{margin-top:4px}
.v104-valve-content{flex:1}
.v104-valve-content header{display:flex;justify-content:space-between;align-items:center;border:none;padding:0;margin-bottom:4px}
.v104-valve-content b{font-size:12px}
.v104-valve-content small{display:block;margin-top:3px;font-size:10px;line-height:1.55;color:#aaa}
.v104-valve-badge{font-size:8px;padding:2px 6px;border-radius:4px;letter-spacing:.08em;font-weight:700}
.v104-valve-badge.standby{background:rgba(255,255,255,.08);color:#a1a1aa}
.v104-valve-badge.isolated{background:#b85f55;color:#fff;box-shadow:0 0 8px rgba(184,95,85,.6)}

.v104-mini-result{min-height:24px;margin-top:10px;padding:8px 12px;border-radius:7px;font-size:11px;line-height:1.5;transition:all .2s ease}
.v104-mini-result.good{color:#a9dbc3;background:rgba(48,111,80,.2);border:1px solid rgba(48,111,80,.4);box-shadow:0 0 10px rgba(48,111,80,.2)}
.v104-mini-result.bad{color:#deb0a9;background:rgba(121,55,48,.2);border:1px solid rgba(121,55,48,.4);box-shadow:0 0 10px rgba(121,55,48,.2)}
.v104-minigame-overlay footer{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.06)}

@media(max-width:1000px){.v104-phase-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.v104-content-grid,.v104-minigame-grid{grid-template-columns:1fr}.v104-phase-grid{grid-template-columns:1fr 1fr}.v104-minigame-overlay{padding:10px}.v104-minigame-overlay>section{max-height:94vh}.v104-mini-sequence{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:460px){.v104-phase-grid{grid-template-columns:1fr}.v104-mini-sequence{grid-template-columns:repeat(2,minmax(0,1fr))}.v104-minigame-overlay header h2{font-size:20px}}

/* v1.0.8 · 本地活动印记 / 阅读进度 */
.v104-local-progress{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin:12px 0;padding:10px 14px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(0,0,0,.22)}
.v104-progress-header{display:flex;align-items:center;gap:10px}
.v104-progress-header>span{font-size:10px;letter-spacing:.08em;color:#ae9d8d}
.v104-progress-header>b{font-size:16px;color:#eee}
.v104-progress-bar{width:60px;height:5px;background:rgba(255,255,255,.08);border-radius:6px;overflow:hidden}
.v104-progress-bar em{display:block;height:100%;background:linear-gradient(90deg,#5cabb2,#71c59d)}
.v104-local-progress>small{font-size:10px;line-height:1.45;color:#89827d}
.v104-done-chip{font-size:10px;color:#71c59d;font-weight:700}
.v104-content-grid article.completed,.v104-phase-grid article.completed{border-color:rgba(96,180,143,.32);background:rgba(39,93,69,.09)}
.v104-journal-btn{margin-top:9px;min-height:32px;padding:5px 9px;font-size:10px;white-space:normal;cursor:pointer}
.v104-journal-btn.completed{border-color:rgba(96,180,143,.4);color:#a8d9bf;background:rgba(39,93,69,.12)}
.v104-mark-all-btn{margin-top:0;min-height:28px;padding:4px 10px;font-size:10px}
@media(max-width:620px){.v104-local-progress{grid-template-columns:1fr auto}.v104-local-progress>small{grid-column:1/-1}}

/* --- [CSS MODULE PART] v100-rc3-stage4.css --- */
/* 黑井撤离 v1.0 RC3 Stage 4 · In-run HUD / UX stabilization
   只重排显示与触摸层级，不修改战斗、经济、角色数值。 */
:root{
  --rc3s4-surface:rgba(6,11,16,.88);
  --rc3s4-surface-strong:rgba(5,9,14,.94);
  --rc3s4-line:rgba(145,184,196,.22);
  --rc3s4-line-strong:rgba(151,211,207,.34);
  --rc3s4-text:#edf3f3;
  --rc3s4-muted:#8fa3ac;
  --rc3s4-accent:#9ed9d1;
}
body.rc3-stage4-ready .hud{font-variant-numeric:tabular-nums}
body.rc3-stage4-ready .topbar{
  top:auto!important;right:auto!important;bottom:max(16px,env(safe-area-inset-bottom))!important;left:max(16px,env(safe-area-inset-left))!important;
  transform:none!important;width:min(430px,calc(100vw - 32px))!important;max-width:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;z-index:9!important;
}
body.rc3-stage4-ready .topbar .stat{min-height:0!important;height:auto!important;padding:7px 9px!important;border-radius:10px!important;background:linear-gradient(180deg,rgba(12,20,27,.92),rgba(5,9,14,.88))!important;border-color:var(--rc3s4-line)!important;box-shadow:0 8px 28px rgba(0,0,0,.24)!important}
body.rc3-stage4-ready .topbar .stat[data-rc3-stat="hp"]{border-color:rgba(221,96,116,.32)}
body.rc3-stage4-ready .topbar .stat[data-rc3-stat="noise"]{border-color:rgba(171,127,226,.28)}
body.rc3-stage4-ready .topbar .label{font-size:8px!important;letter-spacing:.14em!important;margin-bottom:3px!important;color:#82949d!important}
body.rc3-stage4-ready .topbar .value{font-size:11px!important;line-height:1.2!important}
body.rc3-stage4-ready .topbar .bar{height:4px!important;margin-top:5px!important}
body.rc3-stage4-ready #objective{
  top:max(16px,env(safe-area-inset-top))!important;left:max(16px,env(safe-area-inset-left))!important;right:auto!important;bottom:auto!important;
  width:min(390px,calc(100vw - 32px))!important;max-height:min(47vh,440px)!important;z-index:8!important;
}
body.rc3-stage4-ready #objective::before{
  content:"FIELD OBJECTIVES";display:block;margin:0 8px 6px;color:#789aa0;font-size:8px;font-weight:850;letter-spacing:.16em;pointer-events:none
}
body.rc3-stage4-ready #runContext080i{
  display:grid!important;top:max(16px,env(safe-area-inset-top))!important;right:max(16px,env(safe-area-inset-right))!important;left:auto!important;bottom:auto!important;
  width:min(430px,calc(100vw - 32px))!important;min-height:0!important;z-index:8!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  background:linear-gradient(180deg,rgba(8,15,21,.9),rgba(5,9,14,.86))!important;border-color:var(--rc3s4-line)!important
}
body.rc3-stage4-ready #runContext080i .run-context-brand-080i{display:block!important;grid-column:1/-1!important}
body.rc3-stage4-ready #bossHud{
  top:max(18px,env(safe-area-inset-top))!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  width:min(560px,calc(100vw - 860px))!important;min-width:340px!important;z-index:13!important;background:rgba(8,10,15,.94)!important;border-color:rgba(215,118,139,.32)!important
}
body.rc3-stage4-ready.rc3-boss-active #objective:not(.tasks-user-open){max-height:150px!important;overflow:hidden!important;opacity:.84;mask-image:linear-gradient(#000 0 74%,transparent)}
body.rc3-stage4-ready.rc3-boss-active #runContext080i{opacity:.82}
body.rc3-stage4-ready .right-actions{top:auto!important;left:auto!important;right:max(16px,env(safe-area-inset-right))!important;bottom:max(16px,env(safe-area-inset-bottom))!important;width:auto!important;z-index:12!important}
body.rc3-stage4-ready .right-actions button{min-width:68px!important;min-height:40px!important;padding:8px 11px!important;background:rgba(7,13,19,.9)!important;box-shadow:0 8px 24px rgba(0,0,0,.26)!important}
body.rc3-stage4-ready #interact{bottom:max(74px,calc(env(safe-area-inset-bottom) + 74px));z-index:16}
body.rc3-stage4-ready .interaction-detail-v067{bottom:max(108px,calc(env(safe-area-inset-bottom) + 108px));z-index:15}
body.rc3-stage4-ready #toast{bottom:max(22px,env(safe-area-inset-bottom));z-index:40}
body.rc3-stage4-ready .team-chat{bottom:max(145px,calc(env(safe-area-inset-bottom) + 145px));z-index:17}
body.rc3-stage4-ready #coopRescueV029{right:max(16px,env(safe-area-inset-right))!important;bottom:max(78px,calc(env(safe-area-inset-bottom) + 78px))!important}

/* 紧凑 HUD 继续保留，但 Stage 4 不再通过挤压顶栏实现，而是缩短左下状态区。 */
body.rc3-stage4-ready[data-hud-density="compact"] .topbar{width:min(360px,calc(100vw - 32px))!important;gap:4px!important}
body.rc3-stage4-ready[data-hud-density="compact"] .topbar .stat{padding:5px 7px!important}
body.rc3-stage4-ready[data-hud-density="compact"] .topbar .label{display:none!important}
body.rc3-stage4-ready[data-hud-density="compact"] .topbar .value{font-size:10px!important}
body.rc3-stage4-ready[data-hud-density="compact"] #runContext080i{width:min(360px,calc(100vw - 32px))!important}

/* 移动端：主信息与触摸动作分层，避免历史按钮互相遮挡。 */
@media (hover:none),(pointer:coarse),(any-pointer:coarse){
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .topbar{
    top:max(7px,env(safe-area-inset-top))!important;right:auto!important;bottom:auto!important;left:max(8px,env(safe-area-inset-left))!important;
    width:min(42vw,360px)!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important
  }
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .topbar .stat{padding:4px 6px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .topbar .stat[data-rc3-stat="bag"],body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .topbar .stat[data-rc3-stat="xp"]{display:none!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .topbar .label{display:none!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .topbar .value{font-size:9px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .topbar .bar{height:3px!important;margin-top:3px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #runContext080i{
    display:grid!important;top:max(7px,env(safe-area-inset-top))!important;right:max(8px,env(safe-area-inset-right))!important;left:auto!important;bottom:auto!important;width:min(42vw,360px)!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px!important
  }
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #runContext080i .run-context-brand-080i,body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #runContext080i .event-slot-080i{display:none!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #runContext080i .run-context-item-080i{padding:4px 6px!important;min-height:0}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #runContext080i .run-context-item-080i span{font-size:7px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #runContext080i .run-context-item-080i b{font-size:9px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #runContext080i .run-context-item-080i small{font-size:7px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #objective{
    top:max(56px,calc(env(safe-area-inset-top) + 52px))!important;left:max(8px,env(safe-area-inset-left))!important;right:auto!important;bottom:auto!important;width:min(39vw,360px)!important;
    max-height:31vh!important;padding:0!important
  }
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #objective::before{display:none}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #bossHud{top:max(54px,calc(env(safe-area-inset-top) + 50px))!important;width:min(52vw,500px)!important;min-width:270px!important;padding:4px 8px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait).rc3-boss-active #objective:not(.tasks-user-open){max-height:82px!important;opacity:.72}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .right-actions{right:max(8px,env(safe-area-inset-right))!important;bottom:auto!important;top:max(58px,calc(env(safe-area-inset-top) + 54px))!important;gap:4px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .right-actions #pauseBtn,body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .right-actions .utility-only{display:none!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .right-actions #taskToggleBtn{min-width:54px;min-height:36px;padding:6px 8px;font-size:9px}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .mobile-cargo-080i2{top:max(8px,env(safe-area-inset-top));bottom:auto;left:50%;transform:translateX(-50%);font-size:8px;padding:4px 8px}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .stick{left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));width:108px;height:108px}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .mine-button{right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:88px;height:88px;border-radius:50%}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .action-button{right:max(116px,calc(env(safe-area-inset-right) + 116px));bottom:max(28px,calc(env(safe-area-inset-bottom) + 28px));width:72px;height:58px}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .ability-mobile{right:max(28px,calc(env(safe-area-inset-right) + 28px));bottom:max(116px,calc(env(safe-area-inset-bottom) + 116px));width:76px;height:54px}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .melee-attack-v010{right:max(108px,calc(env(safe-area-inset-right) + 108px))!important;bottom:max(104px,calc(env(safe-area-inset-bottom) + 104px))!important;width:78px!important;height:58px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .bag-mobile-button{right:max(196px,calc(env(safe-area-inset-right) + 196px));bottom:max(26px,calc(env(safe-area-inset-bottom) + 26px));min-height:42px}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .mobile-utility-button{right:max(8px,env(safe-area-inset-right));top:max(98px,calc(env(safe-area-inset-top) + 94px));min-width:58px;min-height:40px;display:flex!important;align-items:center;justify-content:center}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .mobile-utility-panel{right:max(8px,env(safe-area-inset-right));top:max(142px,calc(env(safe-area-inset-top) + 138px));bottom:auto;display:grid;grid-template-columns:1fr 1fr;gap:5px;width:178px;padding:6px;background:var(--rc3s4-surface-strong);border:1px solid var(--rc3s4-line);border-radius:12px;z-index:25}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .mobile-utility-panel.hidden{display:none!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .mobile-utility-panel button{position:static!important;display:block!important;width:auto!important;height:auto!important;min-height:40px!important;padding:6px!important;font-size:9px!important}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .interaction-detail-v067{bottom:max(120px,calc(env(safe-area-inset-bottom) + 120px));max-width:44vw;font-size:9px}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) #interact{bottom:max(90px,calc(env(safe-area-inset-bottom) + 90px));font-size:10px}
  body.rc3-stage4-ready:is(.device-handheld,.ui-handheld,.force-handheld-081,.layout-portrait) .team-chat{left:max(8px,env(safe-area-inset-left));bottom:max(138px,calc(env(safe-area-inset-bottom) + 138px));width:min(38vw,360px)}
}
@media (max-width:900px) and (hover:hover){
  body.rc3-stage4-ready #bossHud{min-width:300px;width:min(48vw,460px)}
  body.rc3-stage4-ready #objective{width:min(340px,42vw)}
  body.rc3-stage4-ready #runContext080i{width:min(340px,42vw)}
  body.rc3-stage4-ready .topbar{width:min(360px,44vw)}
}

/* --- [CSS MODULE PART] v100-stageA.css --- */
.stage-a-person-identity{display:block;margin-top:.18rem;font-size:var(--font-meta,11px);line-height:1.35;letter-spacing:.02em;color:var(--muted,#8da1a8);font-weight:500}
.stage-a-economy-note{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.48rem .6rem;margin:0 0 .55rem;border:1px solid rgba(137,203,209,.22);background:rgba(14,27,31,.56);font-size:12px}
.stage-a-economy-note b{letter-spacing:.06em;color:#cceff0}.stage-a-economy-note span{color:#99adb3}
@media(max-width:760px){.stage-a-economy-note{align-items:flex-start;flex-direction:column;gap:.15rem}.stage-a-person-identity{font-size:10px}}

/* --- [CSS MODULE PART] v102-ui.css --- */
/* 黑井撤离 v1.0.8 · 公测 UI 收口：可读性、防截断、今日异常与联机 */
:root{
  --v102-font-ui: Inter,"Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Noto Sans SC",system-ui,sans-serif;
  --v102-fs-meta:12px;
  --v102-fs-body:14px;
  --v102-fs-control:14px;
  --v102-fs-title:20px;
  --v102-safe:16px;
}
html,body,button,input,select,textarea{font-family:var(--v102-font-ui)!important}
button,input,select,textarea{font-size:var(--v102-fs-control);line-height:1.35}
.panel p,.panel label,.panel small,.panel .muted{overflow-wrap:anywhere}

/* ---------- 井下 HUD：地图优先、文字完整、无裁切 ---------- */
body.ui-desktop .topbar{
  top:16px!important;left:16px!important;right:auto!important;transform:none!important;
  width:min(720px,calc(100vw - 560px))!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important
}
body.ui-desktop .topbar .stat{min-height:70px!important;padding:9px 11px!important}
body.ui-desktop .topbar .label{font-size:12px!important;line-height:1.2!important;letter-spacing:.05em!important;margin-bottom:5px!important;white-space:normal!important}
body.ui-desktop .topbar .value{font-size:14px!important;line-height:1.25!important;gap:7px!important;min-width:0}
body.ui-desktop .topbar .value>*{min-width:0;overflow-wrap:anywhere}
body.ui-desktop .topbar .bar{height:4px!important;margin-top:6px!important}

body.ui-desktop #runContext080i{
  top:16px!important;right:16px!important;left:auto!important;width:min(500px,calc(100vw - 780px))!important;min-width:430px!important;
  min-height:70px!important;grid-template-columns:1fr 1fr 1fr 1.15fr!important;border-radius:12px!important
}
body.ui-desktop #runContext080i .run-context-brand-080i{display:none!important}
body.ui-desktop #runContext080i .run-context-item-080i{min-width:0;padding:9px 10px!important}
body.ui-desktop #runContext080i span{font-size:11px!important;line-height:1.2!important;letter-spacing:.04em!important;text-transform:none!important;white-space:normal!important}
body.ui-desktop #runContext080i b{font-size:13px!important;line-height:1.3!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
body.ui-desktop #runContext080i small{font-size:11px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere}

body.ui-desktop .objective{
  top:100px!important;left:16px!important;width:min(410px,31vw)!important;max-width:410px!important;
  padding:0!important;font-size:14px!important;line-height:1.45!important
}
/* 旧版折叠高度小于 header 本身，导致任务名被切掉。v1.0.8 以完整 header 为折叠单位。 */
body.ui-desktop:not(.tasks-user-open):not(.tasks-open) .objective:not(:hover):not(:focus-within){
  height:auto!important;max-height:92px!important;overflow:hidden!important
}
body.ui-desktop .objective-header-v067{
  min-height:88px!important;height:auto!important;padding:12px 14px!important;gap:10px!important;align-items:center!important
}
body.ui-desktop .objective-header-v067>div:first-child{min-width:0;flex:1}
body.ui-desktop .objective-header-v067 span,body.ui-desktop .objective-header-v067 small{font-size:11px!important;line-height:1.25!important;letter-spacing:.04em!important}
body.ui-desktop .objective-header-v067 strong{
  display:block!important;margin-top:4px!important;font-size:18px!important;line-height:1.28!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere
}
body.ui-desktop .objective-header-v067>div:last-child{flex:0 0 auto;min-width:58px}
body.ui-desktop .objective-header-v067>div:last-child b{font-size:18px!important;line-height:1.2!important}
body.ui-desktop .objective-copy-v067 b{font-size:14px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere}
body.ui-desktop .objective-copy-v067 small{font-size:12px!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
body.ui-desktop .objective-danger-inline-v068{font-size:11px!important;line-height:1.2!important;max-width:120px;white-space:normal!important;text-align:center}

body.ui-desktop .right-actions{
  top:auto!important;bottom:16px!important;right:16px!important;width:auto!important;display:flex!important;gap:7px!important;
  grid-template-columns:none!important;align-items:center
}
body.ui-desktop .right-actions button{min-width:88px!important;min-height:42px!important;padding:9px 12px!important;font-size:13px!important;line-height:1.2!important;white-space:nowrap}
body.ui-desktop .right-actions .utility-only{display:none!important}
body.ui-desktop #interact{bottom:16px!important;min-height:46px!important;padding:11px 16px!important;font-size:15px!important;line-height:1.25!important}
body.ui-desktop .toast{top:100px!important;max-width:min(460px,42vw)!important;font-size:13px!important;line-height:1.4!important;white-space:normal!important}

/* 首次教程不允许靠极小字号换空间。 */
body.ui-desktop .tutorial-panel-v0682{width:min(330px,28vw)!important;max-height:210px!important;padding:11px 13px!important;overflow:auto!important}
body.ui-desktop .tutorial-panel-v0682 header{font-size:11px!important;line-height:1.3!important}
body.ui-desktop .tutorial-panel-v0682 h3{font-size:16px!important;line-height:1.3!important;margin:5px 0!important}
body.ui-desktop .tutorial-panel-v0682 p{font-size:12px!important;line-height:1.45!important}
body.ui-desktop .tutorial-panel-v0682 button{font-size:12px!important;min-height:36px!important}

/* 联机中的通讯与救援提示：限制宽度，避免叠到核心交互与右下菜单。 */
body.network-room-active #teamChat{width:min(340px,29vw)!important;left:16px!important;bottom:112px!important}
body.network-room-active #teamChat .team-chat-log{max-height:116px!important;padding:8px 10px!important}
body.network-room-active #teamChat .chat-message{font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere}
body.network-room-active #teamChatState{font-size:11px!important;line-height:1.35!important}
body.network-room-active #teamChat input,body.network-room-active #teamChat button{min-height:38px!important;font-size:12px!important}
body.coop-room-active #coopRescueV029{max-width:300px!important;font-size:12px!important;line-height:1.4!important;right:16px!important;bottom:70px!important}

/* ---------- 今日异常 ---------- */
#dailyOverlay{padding:18px!important;background:rgba(1,4,7,.86)!important}
#dailyOverlay .daily-panel-v102{width:min(920px,calc(100vw - 36px));max-width:920px;max-height:calc(100dvh - 36px)!important;padding:24px!important;overflow:auto!important;border-radius:18px;background:linear-gradient(145deg,rgba(19,24,31,.99),rgba(6,10,15,.99));border-color:rgba(205,100,119,.30)}
.daily-header-v102{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid rgba(211,114,132,.18)}
.daily-header-v102>div{min-width:0}.daily-header-v102 h2{margin:4px 0 8px!important;font-size:28px!important;line-height:1.2!important}.daily-header-v102 .lead{max-width:730px;margin:0!important;font-size:14px!important;line-height:1.65!important;color:#aeb9c3}
.daily-header-v102>button{flex:0 0 auto;min-width:76px}
.daily-facts-v102{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.daily-facts-v102 article{min-width:0;padding:14px;border:1px solid rgba(146,166,181,.18);border-radius:12px;background:rgba(5,10,15,.56)}
.daily-facts-v102 span{display:block;font-size:11px;letter-spacing:.06em;color:#8295a2}.daily-facts-v102 b{display:block;margin-top:5px;font-size:16px;line-height:1.35;color:#edf1f4}.daily-facts-v102 small{display:block;margin-top:5px;font-size:12px;line-height:1.45;color:#98a8b2}
#dailyStatus.daily-status-v102{margin:0;padding:14px 16px!important;min-height:56px;border-color:rgba(110,202,183,.22);background:rgba(19,60,54,.18);font-size:14px!important;line-height:1.5!important;overflow-wrap:anywhere}
.daily-policy-v102{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.daily-policy-v102 span{padding:7px 10px;border:1px solid rgba(205,126,143,.20);border-radius:999px;background:rgba(75,31,42,.15);font-size:12px;line-height:1.25;color:#d5c4c8}
.daily-actions-v102{display:flex!important;justify-content:flex-end;gap:8px!important;margin:0!important}.daily-actions-v102 button{min-width:138px!important;min-height:46px!important;font-size:14px!important}

/* ---------- 联机中心 ---------- */
#coopOverlay{padding:18px!important;background:rgba(1,4,7,.86)!important}
#coopOverlay .coop-panel-v090{width:min(1320px,calc(100vw - 36px))!important;max-width:1320px!important;max-height:calc(100dvh - 36px)!important;padding:22px!important;overflow:auto!important;border-radius:18px!important}
#coopOverlay .coop-panel-head-v090{gap:18px!important;padding-bottom:14px;border-bottom:1px solid rgba(126,173,184,.16)}
#coopOverlay .coop-panel-head-v090>div{min-width:0}
#coopOverlay .coop-panel-head-v090 h2{font-size:28px!important;line-height:1.2!important;margin:3px 0 6px!important}
#coopOverlay .coop-panel-head-v090 .lead{font-size:14px!important;line-height:1.55!important;max-width:940px!important;overflow-wrap:anywhere}
#coopOverlay .coop-panel-head-v090>button{flex:0 0 auto;min-width:76px!important}
#coopOverlay .coop-nav-v090{gap:6px!important;margin:14px 0 12px!important;padding:6px!important;overflow-x:auto;scrollbar-width:thin}
#coopOverlay .coop-nav-v090 button{min-height:38px!important;padding:8px 12px!important;font-size:13px!important;white-space:nowrap!important}
#coopOverlay .coop-setup-v090{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)!important;gap:12px!important}
#coopOverlay .coop-create-card-v090,#coopOverlay .coop-join-card-v090{min-width:0;padding:16px!important}
#coopOverlay .coop-create-card-v090 h3,#coopOverlay .coop-join-card-v090 h3{font-size:20px!important;line-height:1.3!important}
#coopOverlay .coop-create-card-v090>p,#coopOverlay .coop-join-card-v090>p{font-size:13px!important;line-height:1.5!important}
#coopOverlay .coop-create-card-v090 label{font-size:13px!important;line-height:1.35!important;min-width:0}
#coopOverlay .coop-create-card-v090 select{min-width:0;max-width:100%;font-size:13px!important}
#coopOverlay .coop-rule-summary-v090{font-size:13px!important;line-height:1.45!important}.coop-rule-summary-v090>*{overflow-wrap:anywhere}
#coopOverlay .coop-join-card-v090 input{font-size:18px!important;letter-spacing:.10em!important;min-width:0}
#coopOverlay .coop-join-errors-v090{font-size:12px!important;line-height:1.55!important;overflow-wrap:anywhere}
#coopOverlay .coop-lobby-grid-v090{grid-template-columns:minmax(220px,.8fr) minmax(380px,1.25fr) minmax(280px,.9fr)!important;min-height:460px!important}
#coopOverlay .coop-room-info-v090,#coopOverlay .coop-members-v090,#coopOverlay .coop-actions-v090{min-width:0!important;padding:16px!important}
#coopOverlay .coop-room-info-v090 .room-head b{font-size:30px!important;line-height:1.2!important;letter-spacing:.12em!important;overflow-wrap:anywhere}
#coopOverlay .coop-room-rules-v090{font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere}
#coopOverlay .coop-members-v090 h3{font-size:20px!important}
#coopOverlay .coop-member-card-v090{min-width:0;min-height:96px!important;padding:12px!important}.coop-member-card-v090 b{font-size:14px!important;overflow-wrap:anywhere}.coop-member-card-v090 small,.coop-member-card-v090 span{font-size:12px!important;line-height:1.35!important;overflow-wrap:anywhere}
#coopOverlay .coop-actions-v090>#coopConnectionState{font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere}
#coopOverlay .coop-chat-mount-v090{min-height:220px!important}.coop-chat-mount-v090 .team-chat-log{min-height:130px!important;max-height:220px!important}
#coopOverlay .coop-primary-actions-v090 button{min-height:42px!important;font-size:13px!important}
#coopOverlay #coopStartReasonV090{font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere}
#coopOverlay #coopMessage{font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere}

/* ---------- 1366 / 中等桌面 ---------- */
@media (min-width:701px) and (max-width:1500px){
  body.ui-desktop .topbar{width:min(630px,calc(100vw - 520px))!important}
  body.ui-desktop #runContext080i{width:450px!important;min-width:450px!important}
  body.ui-desktop .objective{top:98px!important;width:min(380px,32vw)!important;max-width:380px!important}
  body.ui-desktop .tutorial-panel-v0682{width:min(310px,27vw)!important}
  #coopOverlay .coop-panel-v090{padding:16px!important}
  #coopOverlay .coop-lobby-grid-v090{grid-template-columns:210px minmax(320px,1fr)!important}
  #coopOverlay .coop-actions-v090{grid-column:1/-1!important;border-left:0!important;border-top:1px solid var(--line)!important}
  #coopOverlay .coop-chat-mount-v090{min-height:170px!important}
}

/* ---------- 手持/窄屏：可辨认优先，不使用 7–9px 字号 ---------- */
@media (max-width:700px){
  :root{--v102-safe:10px;--v102-fs-meta:12px;--v102-fs-body:13px;--v102-fs-control:13px}
  #dailyOverlay,#coopOverlay{padding:0!important}
  #dailyOverlay .daily-panel-v102,#coopOverlay .coop-panel-v090{width:100vw!important;max-width:none!important;max-height:100dvh!important;border-radius:0!important;padding:14px!important}
  .daily-header-v102 h2,#coopOverlay .coop-panel-head-v090 h2{font-size:23px!important}
  .daily-header-v102 .lead,#coopOverlay .coop-panel-head-v090 .lead{font-size:13px!important;line-height:1.5!important}
  .daily-facts-v102{grid-template-columns:1fr!important;gap:7px!important}.daily-facts-v102 article{padding:10px 12px}.daily-facts-v102 b{font-size:14px}.daily-facts-v102 small{font-size:12px}
  .daily-actions-v102{position:sticky;bottom:0;padding:8px 0 calc(8px + env(safe-area-inset-bottom));background:linear-gradient(180deg,transparent,rgba(6,10,15,.98) 25%);display:grid!important;grid-template-columns:1fr 1fr!important}.daily-actions-v102 button{min-width:0!important;width:100%}
  #coopOverlay .coop-panel-head-v090{align-items:flex-start!important}.coop-panel-head-v090>button{min-width:64px!important;padding:8px!important}
  #coopOverlay .coop-nav-v090{position:sticky;top:-14px;z-index:5;background:rgba(5,9,14,.97)}
  #coopOverlay .coop-setup-v090,#coopOverlay .coop-create-card-v090{grid-template-columns:1fr!important}
  #coopOverlay .coop-lobby-grid-v090{display:block!important;min-height:0!important}
  #coopOverlay .coop-room-info-v090,#coopOverlay .coop-members-v090,#coopOverlay .coop-actions-v090{padding:12px!important;border:0!important;border-top:1px solid var(--line)!important}
  #coopOverlay .coop-members-v090 .social-list{grid-template-columns:1fr!important}
  #coopOverlay .coop-primary-actions-v090{position:sticky!important;bottom:0!important;z-index:4!important;padding:7px!important;background:rgba(5,9,14,.97)!important}
  body.ui-handheld .objective-header-v067 strong,body.layout-portrait .objective-header-v067 strong{font-size:13px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere}
  body.ui-handheld .objective-header-v067 span,body.ui-handheld .objective-header-v067 small,body.layout-portrait .objective-header-v067 span,body.layout-portrait .objective-header-v067 small{font-size:12px!important;line-height:1.25!important}
  body.ui-handheld .objective-copy-v067 b,body.layout-portrait .objective-copy-v067 b{font-size:13px!important;line-height:1.3!important}
  body.ui-handheld .objective-copy-v067 small,body.layout-portrait .objective-copy-v067 small{font-size:11px!important;line-height:1.35!important;white-space:normal!important}
  body.network-room-active #teamChat{width:min(330px,calc(100vw - 20px))!important;left:10px!important;bottom:max(136px,calc(env(safe-area-inset-bottom) + 136px))!important}
}

/* 宣传/截图模式：F10 循环 normal -> clean -> cinematic。 */
body.v102-promo-clean .tutorial-panel-v0682,body.v102-promo-clean .toast,body.v102-promo-clean .team-chat,body.v102-promo-clean .right-actions{display:none!important}
body.v102-promo-cinematic .hud,body.v102-promo-cinematic .mobile-controls,body.v102-promo-cinematic .tutorial-panel-v0682,body.v102-promo-cinematic .team-chat{display:none!important}
/* v1.0.8 final collision reset: later RC3 styles pinned the status strip to the viewport bottom.
   Explicitly release bottom/height so top + bottom cannot stretch each stat into a full-height column. */
body.ui-desktop .topbar{
  position:fixed!important;
  bottom:auto!important;
  height:auto!important;
  align-items:start!important;
}
body.ui-desktop .topbar .stat{height:auto!important;align-self:start!important}
#coopOverlay .coop-panel-v090 .eyebrow{font-size:11px!important;line-height:1.3!important;letter-spacing:.08em!important}
/* ID-level override is required because RC3's final HUD used #objective with !important. */
body.ui-desktop #objective{
  top:100px!important;
  left:16px!important;
  right:auto!important;
  bottom:auto!important;
  width:min(410px,31vw)!important;
  max-width:410px!important;
  max-height:min(44vh,420px)!important;
}
@media (min-width:701px) and (max-width:1500px){
  body.ui-desktop #objective{top:98px!important;width:min(380px,32vw)!important;max-width:380px!important}
}

/* Meta overlays must sit above handheld controls. The old meta-overlay z-index (42) was lower
   than mobile utility controls (52/96), which let gameplay controls bleed through dialogs. */
#dailyOverlay,#coopOverlay{z-index:3200!important}
@media (max-width:700px){
  #coopOverlay .coop-nav-v090{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    overflow:visible!important;
    gap:6px!important;
  }
  #coopOverlay .coop-nav-v090 button{min-width:0!important;width:100%!important;white-space:normal!important;line-height:1.25!important}
}
body.ui-desktop #objective{top:108px!important}
@media (min-width:701px) and (max-width:1500px){body.ui-desktop #objective{top:112px!important}}
body.ui-desktop #objective::before{font-size:10px!important;line-height:1.2!important;letter-spacing:.12em!important}
body.ui-desktop #fogMinimapV0130{top:360px!important;width:132px!important;height:132px!important}
@media (min-width:701px) and (max-width:1500px){body.ui-desktop #fogMinimapV0130{top:360px!important;width:116px!important;height:116px!important}}
@media (min-width:701px) and (max-height:780px){body.ui-desktop #fogMinimapV0130{top:auto!important;bottom:24px!important;left:16px!important}}
@media (max-width:700px){.daily-actions-v102{grid-template-columns:1fr!important}}

/* ============================================================
   v1.0.8 · UI 修复包
   1) 大厅态（in-main-menu）彻底隐藏局内 HUD：冲刺/副武器、迷雾小地图、
      菜单按钮、右侧行动区、虚拟摇杆与触控层——修复"局内控件漏进大厅"
      与隐形触控层吃掉大厅按钮点击的问题。
   2) 好友/房间招募弹窗（socialOverlay）：面板改为可滚动，顶部补关闭按钮
      （标记在 index/game.html 的 .social-close-v107），修复"无法退出此页面"。
   注：本块位于全链最后加载，所有 !important 同特异性规则以本块为准。
   ============================================================ */

/* --- 1) 大厅态隐藏局内 HUD --- */
body.in-main-menu #v0130ActionGroup{display:none!important;pointer-events:none!important}
body.in-main-menu #fogMinimapV0130{display:none!important}
body.in-main-menu #pauseBtn{display:none!important}
body.in-main-menu .right-actions{visibility:hidden!important;pointer-events:none!important}
body.touch-device.mobile-entry-complete.landscape-ready.in-main-menu .mobile-controls{display:none!important;visibility:hidden!important;pointer-events:none!important}
@media (orientation: portrait) and (max-width: 680px){
  body.ui-handheld.portrait-ready.in-main-menu .hud,
  body.ui-handheld.portrait-ready.in-main-menu .mobile-controls{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
}

/* --- 2) 好友/房间招募弹窗：可滚动 + 顶部关闭按钮 --- */
.social-panel-080e{position:relative;overflow:auto!important}
.social-close-v107{position:absolute;top:16px;right:16px;z-index:6;min-height:40px}
@media (max-width:700px){.social-close-v107{top:10px;right:10px;min-height:44px}}

/* --- 3) 选构筑/升级三选一页面高度收口（v1.0.8 round2） ---
   出发确认的 9 张构筑卡与升级三选一在短屏/手机上会把面板撑出屏幕；
   这里统一钳制面板高度并让卡片区内滚。 */
#upgradeOverlay > .panel,
#deploymentOverlay > .panel {
  max-height: min(94dvh, 900px) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}
#upgradeOverlay > .panel .upgrade-list,
#deploymentOverlay > .panel #loadoutGrid {
  max-height: 62dvh;
  overflow: auto;
  scrollbar-gutter: stable;
  padding-right: 4px;
}
@media (max-height: 860px) {
  .upgrade-card { min-height: 150px; padding: 13px 14px; }
  .upgrade-card small { margin-top: 10px; }
  .upgrade-list { gap: 9px; margin-top: 12px; }
}

/* --- 4) 单人房间聊天遮挡 + 构筑卡挤压（v1.0.8 round2） --- */
/* v1.0.8：应用户要求恢复今日异常局内互动框（solo-room 不再隐藏聊天窗） */
#loadoutGrid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important}

/* --- 5) 局内教程面板不得进入大厅（v1.0.8 round2） --- */
body.in-main-menu #tutorialPanelV0682,
body.in-main-menu #edgeGuideV0682{display:none!important}

/* --- 6) 局内运行时 UI 全量大厅门控（v1.0.8 round3） ---
   救援面板/远征 HUD/低语/观战面板/交互图例/战术轮盘：大厅态一律隐藏，
   与各子系统自身显隐逻辑互为兜底。 */
body.in-main-menu #coopRescueV029,
body.in-main-menu #expeditionRuntimeHud0300,
body.in-main-menu .horror-whisper,
body.in-main-menu #spectatorPanelV065,
body.in-main-menu #interactionLegend081,
body.in-main-menu #tacticalWheelV0291{display:none!important}

/* 勘测战令大厅高亮通栏横幅 */
.survey-hero-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(34, 48, 62, 0.85), rgba(46, 32, 64, 0.85));
  border: 1px solid rgba(220, 185, 120, 0.45);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), inset 0 0 16px rgba(220, 185, 120, 0.12);
  border-radius: 14px;
  padding: 12px 20px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.survey-hero-banner:hover {
  border-color: rgba(245, 205, 125, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(220, 185, 120, 0.22);
}
.survey-hero-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #d4af37, #aa7c11);
  color: #120e06;
  white-space: nowrap;
}
.survey-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.survey-hero-text strong {
  font-size: 14px;
  color: #f7e6c4;
  letter-spacing: 0.5px;
}
.survey-hero-text span {
  font-size: 12px;
  color: #b0c0cb;
}
.survey-hero-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(220, 185, 120, 0.2);
  border: 1px solid rgba(220, 185, 120, 0.5);
  color: #fce8c3;
  cursor: pointer;
}
.survey-hero-btn:hover {
  background: rgba(220, 185, 120, 0.4);
}


/* ================================================================
   v1.0.12 · 竖屏底部三键防叠压
   历史遗留：v090 的竖屏偏移是按下表设计的 82px 宽度（right 8 / 96 / 184，间隙 6px），
   但 v01043 第 38 行给这几个键加了 min-width:104px，实际宽度被撑到 104，
   偏移没跟着改，于是 action 左右各被压 16px
   （390×844 实测：与 mine 叠 16×76、与 ability 叠 16×58，约 15% 的边缘会误触到相邻键）。

   排查记录（避免后来人重复踩）：
   - 只改 width 无效，因为 min-width 才是瓶颈；
   - 只改 width+min-width 仍无效，因为这批键同时带 left 与 right（over-constrained），
     浏览器会用两端锚点反推宽度（390−190−96=104），必须 left:auto。
   两项都补上后，原有偏移重新自洽：
     ability 124–206 / action 212–294 / mine 300–382，间隙 6px，距摇杆右缘 18px。
   不移动按钮位置，也不改变一排三键的布局意图。
   ================================================================ */
@media (orientation: portrait) {
  html body.ui-handheld.portrait-ready #mineButton,
  html body.layout-portrait.portrait-ready #mineButton {
    left: auto !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    width: 82px !important;
    min-width: 82px !important;
  }
  html body.ui-handheld.portrait-ready #actionButton,
  html body.layout-portrait.portrait-ready #actionButton {
    left: auto !important;
    right: max(96px, calc(env(safe-area-inset-right) + 96px)) !important;
    width: 82px !important;
    min-width: 82px !important;
  }
  html body.ui-handheld.portrait-ready #abilityMobile,
  html body.layout-portrait.portrait-ready #abilityMobile {
    left: auto !important;
    right: max(184px, calc(env(safe-area-inset-right) + 184px)) !important;
    width: 82px !important;
    min-width: 82px !important;
  }
}

/* 超窄屏（<340px）再收一档，避免 ability 压到摇杆 */
@media (orientation: portrait) and (max-width: 339px) {
  html body.ui-handheld.portrait-ready #mineButton,
  html body.layout-portrait.portrait-ready #mineButton { left: auto !important; right: max(6px, env(safe-area-inset-right)) !important; width: 72px !important; min-width: 72px !important; }
  html body.ui-handheld.portrait-ready #actionButton,
  html body.layout-portrait.portrait-ready #actionButton { left: auto !important; right: max(84px, calc(env(safe-area-inset-right) + 84px)) !important; width: 72px !important; min-width: 72px !important; }
  html body.ui-handheld.portrait-ready #abilityMobile,
  html body.layout-portrait.portrait-ready #abilityMobile { left: auto !important; right: max(162px, calc(env(safe-area-inset-right) + 162px)) !important; width: 72px !important; min-width: 72px !important; }
}

/* v1.0.12 · 摇杆手势不被页面滚动抢走
   原规则只给 .mobile-controls button 加了 touch-action:none，摇杆是 div 未覆盖：
   拖动时浏览器可能按页面平移处理并抛 pointercancel，摇杆提前归零（按住却只走一小段）。 */
.mobile-controls .stick,
.mobile-controls .stick-knob,
#stick,
#stickKnob {
  touch-action: none !important;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ================= v1.0.13 · 横屏手持端 HUD 收口 =================
   实测 844×390 横屏：顶栏与 #runContext080i 重叠，#mobileCargo080i2 又压在它上面，
   小地图与摇杆相撞，.run-identity 直接盖住摇杆热区。
   注意：本项目还有若干运行时注入的构造样式表（document.adoptedStyleSheets），
   它们排在所有 <link> 之后，同权重 !important 会赢。这里用 html + 重复类名抬高权重，
   不去改那些动态样式本身。 */
@media (orientation: landscape) {
  html body.ui-handheld.ui-handheld .topbar,
  html body.force-handheld-081.force-handheld-081 .topbar {
    left: max(8px, env(safe-area-inset-left)) !important;
    right: auto !important;
    width: min(320px, 38vw) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  html body.ui-handheld.ui-handheld #runContext080i,
  html body.force-handheld-081.force-handheld-081 #runContext080i {
    position: fixed !important;
    transform: none !important;
    left: calc(max(8px, env(safe-area-inset-left)) + min(320px, 38vw) + 8px) !important;
    right: auto !important;
    width: min(250px, 28vw) !important;
    top: max(7px, env(safe-area-inset-top)) !important;
    height: 50px !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 9px !important;
    overflow: hidden !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }
  html body.ui-handheld.ui-handheld #runContext080i > *,
  html body.force-handheld-081.force-handheld-081 #runContext080i > * {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* 密封装载在 #runContext080i 里已经有一份，这个浮动小条属于重复信息 */
  html body.ui-handheld.ui-handheld #mobileCargo080i2,
  html body.force-handheld-081.force-handheld-081 #mobileCargo080i2 {
    display: none !important;
  }
  html body.ui-handheld.ui-handheld #fogMinimapV0130,
  html body.force-handheld-081.force-handheld-081 #fogMinimapV0130 {
    top: calc(max(7px, env(safe-area-inset-top)) + 90px) !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    width: 92px !important;
    height: 92px !important;
  }
  /* 装饰性身份标签原本压在摇杆热区上；横屏隐藏，信息在任务面板里已有 */
  html body.ui-handheld.ui-handheld .run-identity,
  html body.force-handheld-081.force-handheld-081 .run-identity { display: none !important; }
  html body.ui-handheld.ui-handheld #abilityMobile,
  html body.force-handheld-081.force-handheld-081 #abilityMobile {
    right: max(108px, calc(env(safe-area-inset-right) + 108px)) !important;
    bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    width: 88px !important;
    height: 46px !important;
    font-size: 12px !important;
    overflow: hidden !important;
  }
}

/* 弹层里的长内容必须能用手指滑：body 默认 touch-action:none，
   活动中心/仓库/战令在横屏手持端会完全滑不动。 */
html body.ui-handheld.ui-handheld.modal-open-080f,
html body.ui-handheld.ui-handheld.modal-open-080f .overlay:not(.hidden),
html body.ui-handheld.ui-handheld.modal-open-080f .overlay:not(.hidden) .panel,
html body.ui-handheld.ui-handheld.modal-open-080f .overlay:not(.hidden) .activity-panel-083 {
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
html body.ui-handheld.ui-handheld.modal-open-080f .overlay:not(.hidden) .panel,
html body.ui-handheld.ui-handheld.modal-open-080f .overlay:not(.hidden) .activity-panel-083 {
  overflow-y: auto !important;
  max-height: calc(100dvh - 16px) !important;
}

/* 横屏手持端活动中心：把说明性长文收掉，给可滚动的页签内容留出高度
   （实测 844×390 时内容区只剩 101px，滚起来像一条缝）。 */
@media (orientation: landscape) {
  html body.ui-handheld.ui-handheld #activityOverlay080i .activity-panel-head-083 .lead,
  html body.ui-handheld.ui-handheld #activityOverlay080i .activity-panel-head-083 .eyebrow,
  html body.force-handheld-081.force-handheld-081 #activityOverlay080i .activity-panel-head-083 .lead,
  html body.force-handheld-081.force-handheld-081 #activityOverlay080i .activity-panel-head-083 .eyebrow {
    display: none !important;
  }
  html body.ui-handheld.ui-handheld #activityOverlay080i .activity-panel-head-083,
  html body.force-handheld-081.force-handheld-081 #activityOverlay080i .activity-panel-head-083 {
    padding-bottom: 4px !important;
  }
  html body.ui-handheld.ui-handheld #activityOverlay080i .activity-panel-head-083 h2,
  html body.force-handheld-081.force-handheld-081 #activityOverlay080i .activity-panel-head-083 h2 {
    font-size: 17px !important;
    margin: 0 !important;
  }
}

@media (orientation: landscape) {
  /* 底部中央的 #interact 不是按钮，是「正在撤离 40%」这类状态/进度显示。
     直接 display:none 会把撤离进度一起藏掉（行动键只显示「撤离」两个字）。
     正确做法：抬到行动键上方，做成不可点的状态条，既不再冒充第二个「撤离」，也保留进度。 */
  html body.ui-handheld.ui-handheld #interact,
  html body.force-handheld-081.force-handheld-081 #interact {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    width: auto !important;
    max-width: min(260px, 58vw) !important;
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    background: rgba(5, 12, 9, 0.55) !important;
    border-color: rgba(105, 208, 163, 0.16) !important;
    color: #a9d8c6 !important;
    border-radius: 6px !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* 能力键的小字副标题在 88px 宽里会溢到按钮外，压住旁边的冲刺/撤离 */
  html body.ui-handheld.ui-handheld #abilityMobile small,
  html body.force-handheld-081.force-handheld-081 #abilityMobile small {
    display: none !important;
  }
}

/* ================= v1.0.13 · 竖屏手持端 HUD 收口 =================
   实测 390×844：顶栏(8..172) 与运行信息(136..300) 重叠 36px，密封装载小条再压一层；
   小地图(196..300) 盖住教程卡(78..224) 的「跳过教程」；干员标签压在摇杆热区。 */
@media (orientation: portrait) {
  html body.ui-handheld.ui-handheld #mobileCargo080i2,
  html body.force-handheld-081.force-handheld-081 #mobileCargo080i2 {
    display: none !important;
  }
  html body.ui-handheld.ui-handheld .topbar,
  html body.force-handheld-081.force-handheld-081 .topbar {
    left: max(8px, env(safe-area-inset-left)) !important;
    right: auto !important;
    width: min(170px, 44vw) !important;
  }
  html body.ui-handheld.ui-handheld #runContext080i,
  html body.force-handheld-081.force-handheld-081 #runContext080i {
    position: fixed !important;
    transform: none !important;
    left: auto !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    top: max(7px, env(safe-area-inset-top)) !important;
    width: min(196px, 50vw) !important;
    height: 64px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 10px !important;
    padding: 6px 9px !important;
    overflow: hidden !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }
  html body.ui-handheld.ui-handheld #runContext080i > *,
  html body.force-handheld-081.force-handheld-081 #runContext080i > * {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* 小地图下移到教程卡下沿之外，避免盖住「跳过教程」 */
  html body.ui-handheld.ui-handheld #fogMinimapV0130,
  html body.force-handheld-081.force-handheld-081 #fogMinimapV0130 {
    top: calc(max(7px, env(safe-area-inset-top)) + 226px) !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    width: 96px !important;
    height: 96px !important;
  }
  html body.ui-handheld.ui-handheld .run-identity,
  html body.force-handheld-081.force-handheld-081 .run-identity {
    display: none !important;
  }
}

@media (orientation: portrait) {
  /* 竖屏顶部只有 390px。整块隐藏会把「当前层 / 活动规则」一起丢掉，
     而这两条在任务面板里没有；压力与密封载荷则和顶栏、背包重复。
     折中：保留窄条，只留当前层与活动规则，放到顶栏右侧。 */
  html body.ui-handheld.ui-handheld #runContext080i,
  html body.force-handheld-081.force-handheld-081 #runContext080i {
    position: fixed !important;
    transform: none !important;
    left: auto !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    top: max(7px, env(safe-area-inset-top)) !important;
    width: min(190px, 48vw) !important;
    height: 32px !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    background: rgba(7, 12, 16, 0.62) !important;
    border: 1px solid rgba(125, 229, 220, 0.12) !important;
    border-radius: 7px !important;
  }
  html body.ui-handheld.ui-handheld #runContext080i .run-context-brand-080i,
  html body.ui-handheld.ui-handheld #runContext080i #pressureBadge080i,
  html body.ui-handheld.ui-handheld #runContext080i #cargoBadge080i2,
  html body.force-handheld-081.force-handheld-081 #runContext080i .run-context-brand-080i,
  html body.force-handheld-081.force-handheld-081 #runContext080i #pressureBadge080i,
  html body.force-handheld-081.force-handheld-081 #runContext080i #cargoBadge080i2 {
    display: none !important;
  }
  html body.ui-handheld.ui-handheld #runContext080i .run-context-item-080i,
  html body.force-handheld-081.force-handheld-081 #runContext080i .run-context-item-080i {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    min-width: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
  }
  html body.ui-handheld.ui-handheld #runContext080i .run-context-item-080i > span,
  html body.force-handheld-081.force-handheld-081 #runContext080i .run-context-item-080i > span {
    font-size: 10px !important;
    opacity: 0.62 !important;
  }
  html body.ui-handheld.ui-handheld #runContext080i .run-context-item-080i > b,
  html body.force-handheld-081.force-handheld-081 #runContext080i .run-context-item-080i > b {
    font-size: 11px !important;
    max-width: 92px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* 竖屏同理：保留为状态条，不隐藏（撤离进度只在这里显示） */
  html body.ui-handheld.ui-handheld #interact,
  html body.force-handheld-081.force-handheld-081 #interact {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(112px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    width: auto !important;
    max-width: min(240px, 62vw) !important;
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    background: rgba(5, 12, 9, 0.55) !important;
    border-color: rgba(105, 208, 163, 0.16) !important;
    color: #a9d8c6 !important;
    border-radius: 6px !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html body.ui-handheld.ui-handheld #abilityMobile small,
  html body.force-handheld-081.force-handheld-081 #abilityMobile small {
    display: none !important;
  }
}

/* 手持端任务面板：实测 390×844 下内容 470px、可见区只有 262px，且 overflow:hidden，
   导致「守卫 / 威胁 / 目标尾部」直接被裁掉，展开也看不到。改为可滚动。 */
html body.ui-handheld.ui-handheld #objective,
html body.force-handheld-081.force-handheld-081 #objective {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* 展开态只有 31vh 高（约 262px），内容要 470px，即便能滚也太局促 */
html body.ui-handheld.ui-handheld.tasks-user-open #objective,
html body.force-handheld-081.force-handheld-081.tasks-user-open #objective {
  max-height: calc(100dvh - 190px) !important;
}
/* body 默认 touch-action:none，展开任务面板时放行纵向手势 */
html body.ui-handheld.ui-handheld.tasks-user-open,
html body.force-handheld-081.force-handheld-081.tasks-user-open {
  touch-action: pan-y !important;
}

/* 展开任务面板时，教程卡片（top:78 高 146）会压住面板顶部内容。
   玩家主动展开任务，就先让教程让位。 */
html body.ui-handheld.ui-handheld.tasks-user-open #tutorialPanelV0682,
html body.force-handheld-081.force-handheld-081.tasks-user-open #tutorialPanelV0682 {
  display: none !important;
}

/* 竖屏 390px 时 #objective 只有 39vw≈152px，中文标题被压成竖排（"工业复位" 一行一个字）。
   展开态是玩家主动查看，直接放宽到接近满宽。 */
@media (orientation: portrait) {
  html body.ui-handheld.ui-handheld.tasks-user-open #objective,
  html body.force-handheld-081.force-handheld-081.tasks-user-open #objective {
    width: min(86vw, 360px) !important;
    /* 顶栏占到 y≈71，展开面板从 56 起会被压住标题 */
    top: max(80px, calc(env(safe-area-inset-top) + 76px)) !important;
  }
}

/* 展开态不需要底部渐隐（那是收起态用来暗示"还有内容"的），
   否则最后一条任务看起来像被禁用。 */
html body.ui-handheld.ui-handheld.tasks-user-open #objective,
html body.force-handheld-081.force-handheld-081.tasks-user-open #objective {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  opacity: 1 !important;
}

/* 局内活动中心：手指常落在页签外壳的留白上而不是内容里，
   给外壳也放行纵向手势，避免"按着不动"的错觉。 */
html body.ui-handheld.ui-handheld #activityOverlay080i .activity-shell-0103,
html body.ui-handheld.ui-handheld #activityOverlay080i .activity-shell-090,
html body.ui-handheld.ui-handheld #activityOverlay080i .activity-tab-panel-0103,
html body.force-handheld-081.force-handheld-081 #activityOverlay080i .activity-shell-0103,
html body.force-handheld-081.force-handheld-081 #activityOverlay080i .activity-shell-090,
html body.force-handheld-081.force-handheld-081 #activityOverlay080i .activity-tab-panel-0103 {
  touch-action: pan-y !important;
  overscroll-behavior: contain;
}

/* 未解锁图鉴条目现在画的是真实轮廓剪影（按科属区分），
   用灰度+提对比让形状清楚，同时保留「尚未确认」的褪色感。 */
#archiveContent .codex-unknown .codex-model {
  filter: grayscale(0.9) brightness(0.92) contrast(1.18);
}
#archiveContent .codex-unknown .codex-info h3 {
  color: #8d97a6 !important;
}

/* 局内主界面 · 活动中心直达入口
   原来只能「菜单 → 活动 → 查看活动」，手机上三层深且菜单不会自动关闭，
   实测主界面可见活动入口数为 0。这里给一个常驻悬浮键。 */
.hud-activity-btn {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  top: 46%;
  z-index: 62;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(125, 229, 220, 0.26);
  background: rgba(7, 16, 18, 0.66);
  color: #9fe3d5;
  font: 700 12px/1 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: 0.5px;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hud-activity-btn:active { transform: scale(0.94); background: rgba(12, 30, 32, 0.86); }
body.in-gameplay .hud-activity-btn { display: flex; }
@media (orientation: landscape) {
  /* 只对触屏横屏生效：桌面 16:9 也命中 landscape，会把按钮挪到左侧压住目标面板。 */
  body.ui-handheld .hud-activity-btn,
  body.force-handheld-081 .hud-activity-btn {
    top: calc(max(7px, env(safe-area-inset-top)) + 192px);
    right: auto;
    left: max(8px, env(safe-area-inset-left));
    width: 42px;
    height: 42px;
    font-size: 11px;
  }
}

/* 负重系统说明：玩家反馈「不理解负重是干嘛的」。
   顶栏只有「0 / 20」和进度条，没有任何解释；这里在背包面板顶部补一段。
   纯 CSS 实现，不改引擎（引擎余量只剩约 21KB）。 */
#inventoryOverlay .inventory-panel::before {
  content: "负重：每种矿物按重量占背包（如虚琥珀 2、黑髓核 3）。背包满后无法再拾取，需要返回升降台撤离或按 B 丢弃部分矿物。撤离失败会掉落普通矿物；保险匣只保贵重品，不保这些矿物。";
  display: block;
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(125, 229, 220, 0.18);
  background: rgba(9, 20, 22, 0.72);
  color: #a9cfc8;
  font-size: 11.5px;
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
}

/* ================= v1.0.13 · 旧版开局界面的角色卡专精 =================
   角色卡本身是 grid（图标 + 名称/定位），专精数组挂在卡片底部，独占一行。 */
.v0302-spec-wrap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(125, 229, 220, 0.12);
}
.v0302-spec-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 2px;
  border: 1px solid rgba(125, 229, 220, 0.18);
  background: rgba(125, 229, 220, 0.05);
  color: #a9cfc8;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.v0302-spec-btn:hover { border-color: rgba(125, 229, 220, 0.45); background: rgba(125, 229, 220, 0.12); color: #e6fbf7; }
.v0302-spec-btn b { font-weight: 600; font-size: 12px; }
.v0302-spec-btn em { font-style: normal; font-family: var(--mono, monospace); font-size: 10.5px; color: rgba(127, 230, 214, 0.8); }
.v0302-spec-btn.is-picked {
  border-color: rgba(125, 229, 220, 0.72);
  background: rgba(125, 229, 220, 0.16);
  color: #f2fffd;
  box-shadow: inset 0 0 0 1px rgba(125, 229, 220, 0.22);
}
.v0302-spec-btn.is-picked em { color: #7fe6d6; font-weight: 700; }
@media (max-width: 900px) {
  .v0302-spec-wrap { gap: 4px; margin-top: 6px; padding-top: 6px; }
  .v0302-spec-btn { padding: 5px 7px; font-size: 11.5px; }
}

/* v1.0.14 · 本局协议增益：字号放大一档，窄屏自动降列 */
#buffShopOverlay .prep-options-v068 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; gap: 10px !important; }
#buffShopOverlay .prep-category-v068 > header strong { font-size: 17px !important; letter-spacing: .01em; }
#buffShopOverlay .prep-category-v068 > header small { font-size: 14.5px !important; line-height: 1.5; color: #93a9af !important; }
#buffShopOverlay .prep-buff-card-v068 { min-height: 128px; padding: 12px 13px; gap: 8px; }
#buffShopOverlay .prep-buff-card-v068 b { font-size: 16px !important; line-height: 1.35; }
#buffShopOverlay .prep-buff-card-v068 span { font-size: 14px !important; line-height: 1.55 !important; color: #b7c8cc !important; text-wrap: pretty; }
#buffShopOverlay .prep-buff-card-v068 small { font-size: 14.5px !important; font-weight: 700; }
@media (max-width: 720px) {
  #buffShopOverlay .prep-buff-card-v068 { min-height: 0; padding: 11px 12px; }
  #buffShopOverlay .prep-buff-card-v068 b { font-size: 15px !important; }
  #buffShopOverlay .prep-buff-card-v068 span { font-size: 13.5px !important; }
}

/* v1.0.14 · 井口功能折叠区：常用入口留在 rc3 导航，全量入口收进一条摘要行 */
#menuOverlay .terminal-fold {
  margin-top: 16px;
  border: 1px solid rgba(144, 177, 197, .16);
  border-radius: 14px;
  background: rgba(7, 12, 19, .55);
  overflow: hidden;
}
#menuOverlay .terminal-fold-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer; list-style: none;
  color: #cfe2e6; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  transition: background .16s ease;
}
#menuOverlay .terminal-fold-summary::-webkit-details-marker { display: none; }
#menuOverlay .terminal-fold-summary::marker { content: ""; }
#menuOverlay .terminal-fold-summary:hover { background: rgba(125, 229, 220, .07); }
#menuOverlay .terminal-fold-title { font-size: 15px; color: #dfeef0; }
#menuOverlay .terminal-fold-count {
  font-style: normal; font-weight: 600; font-size: 12px; color: #8ea6ad;
  padding: 2px 9px; border: 1px solid rgba(144, 177, 197, .24); border-radius: 999px;
}
#menuOverlay .terminal-fold-arrow {
  margin-left: auto; width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 2px solid #8ea6ad; border-bottom: 2px solid #8ea6ad;
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
#menuOverlay .terminal-fold[open] .terminal-fold-arrow { transform: rotate(-135deg) translateY(-2px); }
#menuOverlay .terminal-fold:not([open]) > .terminal-dashboard { display: none !important; }
#menuOverlay .terminal-fold[open] > .terminal-dashboard { display: grid !important; margin-top: 0 !important; padding: 14px; border-top: 1px solid rgba(144, 177, 197, .14); }
body.ui-handheld #menuOverlay .terminal-fold-summary { padding: 10px 12px; }
body.ui-handheld #menuOverlay .terminal-fold-title { font-size: 13px; }
body.ui-handheld #menuOverlay .terminal-fold-count { font-size: 11px; }
body.ui-handheld #menuOverlay .terminal-fold[open] > .terminal-dashboard { padding: 10px; }
@media (min-width: 900px) {
  #menuOverlay .terminal-fold[open] > .terminal-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
#menuOverlay .terminal-fold[open] > .terminal-dashboard > .terminal-group > span { order: -1; }

/* v1.0.14 · 手持端数值可读性：竖屏 9px 且被省略号吃掉血量，横屏也偏小
   竖屏 390px 下顶栏只有 170px（两列 83px），"112 / 112" + "Lv.1" 挤不进 69px。
   加宽到 184px（右侧 runContext 从 195px 起，留 3px 间隙），字号抬到 11.5px 并允许换行。 */
@media (orientation: portrait) {
  html body.ui-handheld.ui-handheld .topbar,
  html body.force-handheld-081.force-handheld-081 .topbar {
    width: min(184px, 48vw) !important;
  }
  html body.ui-handheld.ui-handheld .topbar .stat,
  html body.force-handheld-081.force-handheld-081 .topbar .stat {
    padding: 6px 7px !important;
  }
  html body.ui-handheld.ui-handheld .topbar .value,
  html body.force-handheld-081.force-handheld-081 .topbar .value {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    gap: 1px 6px !important;
  }
  html body.ui-handheld.ui-handheld .topbar .value > *,
  html body.force-handheld-081.force-handheld-081 .topbar .value > * {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  html body.ui-handheld.ui-handheld .topbar .value #levelText,
  html body.force-handheld-081.force-handheld-081 .topbar .value #levelText,
  html body.ui-handheld.ui-handheld .topbar .value #timeText,
  html body.force-handheld-081.force-handheld-081 .topbar .value #timeText {
    font-size: 10px !important;
    font-weight: 600 !important;
    opacity: .82;
  }
}
@media (orientation: landscape) {
  html body.ui-handheld.ui-handheld .topbar .value,
  html body.force-handheld-081.force-handheld-081 .topbar .value {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}

/* v1.0.14 · 手持端展开任务面板时，小地图(40)与活动键(62)会压在面板文字上
   面板本身 z-index 34，低于两者；展开时抬到 70，并让右侧按钮组浮在面板之上，
   同时收起「菜单」（面板已近满宽，没有它的位置，收起任务后再点）。 */
html body.ui-handheld.tasks-open #objective,
html body.force-handheld-081.tasks-open #objective { z-index: 70 !important; }
html body.ui-handheld.tasks-open .right-actions,
html body.force-handheld-081.tasks-open .right-actions { z-index: 71 !important; }
html body.ui-handheld.ui-handheld.tasks-open .right-actions #pauseBtn,
html body.force-handheld-081.force-handheld-081.tasks-open .right-actions #pauseBtn { display: none !important; }
/* 活动键 62 低于面板，被压住一半；展开任务时直接收起，避免露出半个按钮 */
html body.ui-handheld.ui-handheld.tasks-open #hudActivityBtn,
html body.force-handheld-081.force-handheld-081.tasks-open #hudActivityBtn { display: none !important; }
/* 移动端「菜单」键（#mobileUtilityBtn）在面板右侧露出半个字，展开任务时一并收起 */
html body.ui-handheld.ui-handheld.tasks-open #mobileUtilityBtn,
html body.force-handheld-081.force-handheld-081.tasks-open #mobileUtilityBtn { display: none !important; }
/* PVP 决斗键（#dailyPvpBtn）：塞进右上按钮列，任务展开时一并收起，避免被面板遮挡残留 */
html body.ui-handheld.ui-handheld.tasks-open #dailyPvpBtn,
html body.force-handheld-081.force-handheld-081.tasks-open #dailyPvpBtn,
html body.ui-handheld.ui-handheld.tasks-user-open #dailyPvpBtn,
html body.force-handheld-081.force-handheld-081.tasks-user-open #dailyPvpBtn { display: none !important; }
/* 横屏 844×390：展开的任务面板一路盖到摇杆（x18..120 / y274..376），小地图也仍有残留层级。
   展开时收起小地图，并把面板高度压到摇杆上沿之上，内容内部滚动。 */
html body.ui-handheld.ui-handheld.tasks-open #fogMinimapV0130,
html body.force-handheld-081.force-handheld-081.tasks-open #fogMinimapV0130 { display: none !important; }
@media (orientation: landscape) {
  html body.ui-handheld.ui-handheld.tasks-open #objective,
  html body.force-handheld-081.force-handheld-081.tasks-open #objective {
    max-height: calc(100dvh - 200px) !important;
    overflow: auto !important;
  }
}
/* 局内弹层打开时（body.modal-open-080f）活动键 z-index 62 仍浮在弹层上，压住背包/活动中心标题 */
html body.modal-open-080f .hud-activity-btn { display: none !important; }
/* 弹层打开时整层 HUD 退场：之前只设 visibility:hidden，被手持端「visible !important」规则反超，
   摇杆/冲刺组(z 52)与活动键(z 62)会浮在弹层(z 20)之上。直接 display:none 最可靠。 */
html body.modal-open-080f.modal-open-080f .hud { display: none !important; }
/* 「更多」面板(z 15)被冲刺组(60)与活动键(62)压住，横竖屏都会漏出按钮盖在面板上 */
html body.ui-handheld.ui-handheld .mobile-utility-panel,
html body.force-handheld-081.force-handheld-081 .mobile-utility-panel { z-index: 66 !important; }
/* 冲刺组(#v0130ActionGroup z60) 与活动键(z62) 在 .mobile-controls(z40~52) 之上，
   面板作为其子元素无论怎么抬 z 都翻不上去；直接把控制层整体抬到 70。 */
html body.ui-handheld.ui-handheld.ui-handheld .mobile-controls,
html body.force-handheld-081.force-handheld-081.force-handheld .mobile-controls { z-index: 70 !important; }
/* 冲刺/副武器组在 body 下 z 60，而整个 .hud 只有 20，导致 .mobile-controls 内部的
   「更多」面板无论怎么抬都被它压住。把它放回 .hud 之下（弹层 z 20 也能正常盖住它）。 */
html body #v0130ActionGroup { z-index: 10 !important; }
