/* 微信小游戏右上角胶囊（本地/截图用；现网默认隐藏）
   必须挂在 body 下、position:fixed，才能压过 #app 外的 .mask 弹窗
   当前弹窗最高约 260（.wx-share-tip），胶囊/截图 = 261 / 262 */

/* 【临时全局关闭】截图按钮 + 右上角胶囊不显示（保留样式与 DOM，以后要用删掉本段即可） */
#wx-shot-btn,
#wx-capsule,
.wx-shot-btn,
.wx-capsule,
.wx-shot-btn.is-on,
.wx-capsule.is-on{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

.wx-capsule{
  display:none;
  position:fixed;
  top:calc(8px + env(safe-area-inset-top,0px));
  right:8px;
  z-index:261;
  width:87px;
  height:32px;
  box-sizing:border-box;
  margin:0;
  padding:0;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(0,0,0,.12);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  backdrop-filter:saturate(180%) blur(12px);
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  align-items:stretch;
  overflow:hidden;
}
.wx-capsule.is-on{display:flex}
.wx-cap-btn{
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:100%;
}
.wx-cap-divider{
  flex:0 0 1px;
  width:1px;
  align-self:center;
  height:18.5px;
  background:rgba(0,0,0,.22);
}
.wx-cap-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3.5px;
}
.wx-cap-dot{
  display:block;
  width:3.6px;
  height:3.6px;
  border-radius:50%;
  background:#0a0a0a;
}
.wx-cap-dot.is-mid{
  width:4.6px;
  height:4.6px;
}
.wx-cap-ring{
  position:relative;
  display:block;
  width:16px;
  height:16px;
  border-radius:50%;
  box-sizing:border-box;
  border:2.15px solid #0a0a0a;
  background:transparent;
}
.wx-cap-ring::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:5.4px;
  height:5.4px;
  margin:-2.7px 0 0 -2.7px;
  border-radius:50%;
  background:#0a0a0a;
}
body.in-battle .wx-capsule,
body.fake-land .wx-capsule{
  top:calc(6px + env(safe-area-inset-top,0px));
  right:6px;
}
body.in-battle .wx-capsule{
  background:rgba(255,255,255,.86);
  border-color:rgba(0,0,0,.14);
}

/* 左上角截图按钮：仅本地工具，截图时会临时隐藏自身；层级比胶囊再高一级 */
.wx-shot-btn{
  display:none;
  position:fixed;
  top:calc(8px + env(safe-area-inset-top,0px));
  left:8px;
  z-index:262;
  margin:0;
  padding:0 12px;
  height:32px;
  border-radius:16px;
  border:2px solid #17102e;
  background:#ffef3a;
  color:#17102e;
  font:800 13px/30px "PingFang SC","Microsoft YaHei",sans-serif;
  letter-spacing:.04em;
  box-shadow:2px 2px 0 rgba(23,16,46,.85);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  pointer-events:auto;
}
.wx-shot-btn.is-on{display:inline-flex;align-items:center;justify-content:center}
.wx-shot-btn:active{transform:translate(1px,1px);box-shadow:1px 1px 0 rgba(23,16,46,.85)}
.wx-shot-btn.is-busy{opacity:.55;pointer-events:none}
.wx-shot-btn.is-capturing{display:none!important}
body.in-battle .wx-shot-btn,
body.fake-land .wx-shot-btn{
  top:calc(6px + env(safe-area-inset-top,0px));
  left:6px;
}
