/* ==========================================================================================
   united-mode.css — 卫戍协议Pro「经典卫戍 / 联合卫戍」模式选择器与局内三大创新机制战术界面样式
   视觉基准：罗德岛规程终端工业美学（琥珀金拉特兰战术徽章、深红斜纹危机警报、切角装甲面板）。
   兼容性护栏：
     - 全量字号统一读取 `calc(... * var(--t))`（遵守 text-scale.test.js）
     - 兼容 Safari 15+，不使用高版本实验性选择器或层级语法（遵守 client-static.test.js）
     - `backdrop-filter` 均配对 `-webkit-backdrop-filter`；`color-mix` 均前置 rgba 回退属性
   ========================================================================================== */

/* ---- 1. 联合卫戍琥珀金战术徽标 (UnitedModeBadge) ------------------------------------------- */
.ubadge {
  display: inline-flex;
  align-items: center;
  gap: .05rem;
  height: max(.28rem, 20px);
  padding: 0 .1rem 0 .07rem;
  color: #1c1202;
  background: linear-gradient(135deg, #ffd466 0%, #f6a329 68%, #e58813 100%);
  border: 1px solid #ffe49c;
  box-shadow: 0 .02rem .12rem rgba(246, 163, 41, .38);
  clip-path: polygon(.06rem 0, 100% 0, 100% calc(100% - .06rem), calc(100% - .06rem) 100%, 0 100%, 0 .06rem);
  font-size: calc(.13 * var(--t));
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.ubadge--sm {
  height: max(.24rem, 18px);
  padding: 0 .08rem 0 .06rem;
  font-size: calc(.115 * var(--t));
}
.ubadge--btn {
  cursor: var(--sp-cursor-pointer, pointer);
  transition: filter var(--t-fast), transform var(--t-fast);
}
.ubadge--btn:hover, .ubadge--btn:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.ubadge__icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  color: #231400;
}
.ubadge__name {
  font-weight: 900;
}
.ubadge__pro {
  padding: .01rem .04rem;
  font-style: normal;
  font-family: var(--font-num);
  font-size: calc(.1 * var(--t));
  font-weight: 800;
  letter-spacing: .08em;
  color: #ffd875;
  background: rgba(20, 14, 4, .88);
}

/* ---- 2. 主大厅与等待室独立「卫戍模式」选择器 (GameModeSelector) ---------------------------- */
.gmsel {
  --gm-accent: var(--mint-500);
  position: relative;
  box-sizing: border-box;
}
.gmsel.is-united {
  --gm-accent: var(--amber);
}
.gmsel.is-endless {
  --gm-accent: #c88bff;
}
.gmsel--lobby,
.gmsel--ally,
.gmsel--reg {
  display: flex;
  flex-direction: column;
  gap: .06rem;
  padding: .1rem .12rem;
  background: rgba(10, 14, 13, .88);
  border: 1px solid rgba(255, 255, 255, .14);
  border-left: 3px solid var(--gm-accent);
  box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .42);
}
.gmsel--lobby.is-united,
.gmsel--ally.is-united,
.gmsel--reg.is-united {
  background: linear-gradient(90deg, rgba(44, 29, 8, .9) 0%, rgba(14, 16, 15, .9) 72%);
  border-color: rgba(246, 163, 41, .45);
  border-left-color: #ffb938;
}
.gmsel--lobby.is-endless,
.gmsel--ally.is-endless,
.gmsel--reg.is-endless {
  background: linear-gradient(90deg, rgba(38, 18, 56, .92) 0%, rgba(14, 16, 20, .92) 72%);
  border-color: rgba(200, 139, 255, .48);
  border-left-color: #d79eff;
}
.gmsel--reg {
  padding: .06rem .1rem;
  gap: .04rem;
}
.gmsel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .08rem;
}
.gmsel__kicker {
  display: inline-flex;
  align-items: center;
  gap: .05rem;
  font-family: var(--font-display);
  font-size: calc(.12 * var(--t));
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-md);
  white-space: nowrap;
}
.gmsel__dot {
  width: .07rem;
  height: .07rem;
  background: var(--gm-accent);
  transform: rotate(45deg);
}
.gmsel__tabs {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(0, 0, 0, .48);
  border: 1px solid var(--line-2);
  padding: 2px;
  gap: 2px;
}
.gmsel__tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: max(.36rem, 28px);
  padding: .02rem .1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .05rem;
  border: 0;
  background: transparent;
  color: var(--text-lo);
  font-size: calc(.15 * var(--t));
  font-weight: 700;
  white-space: nowrap;
  cursor: var(--sp-cursor-pointer, pointer);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.gmsel__tab:hover:not(:disabled) {
  color: var(--text-hi);
  background: rgba(255, 255, 255, .05);
}
.gmsel__tab.is-on {
  color: var(--text-on-mint);
  background: var(--mint-500);
  box-shadow: 0 0 .12rem rgba(78, 216, 175, .32);
}
.gmsel__tab--united.is-on {
  color: #1c1102;
  background: linear-gradient(135deg, #ffd363, #f6a329);
  box-shadow: 0 0 .16rem rgba(246, 163, 41, .45);
}
.gmsel__tab--endless.is-on {
  color: #160922;
  background: linear-gradient(135deg, #ffe299 0%, #d896ff 56%, #9b5cff 100%);
  box-shadow: 0 0 .18rem rgba(200, 139, 255, .52);
}
.gmsel__tab-micro {
  font-family: var(--font-num);
  font-size: calc(.1 * var(--t));
  font-weight: 700;
  opacity: .78;
}
.gmsel__icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}
.gmsel__more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .04rem;
  min-height: max(.34rem, 26px);
  padding: 0 .08rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  color: var(--text-md);
  font-size: calc(.13 * var(--t));
  cursor: var(--sp-cursor-pointer, pointer);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.gmsel__more .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--amber);
}
.gmsel__more:hover, .gmsel__more:focus-visible {
  color: #ffd363;
  border-color: rgba(246, 163, 41, .65);
}
.gmsel__summary {
  margin: 0;
  font-size: calc(.125 * var(--t));
  line-height: 1.4;
  color: var(--text-md);
}
.gmsel.is-united .gmsel__summary {
  color: #f6d598;
}
.gmsel.is-endless .gmsel__summary {
  color: #ead3ff;
}
.gmsel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .05rem;
}
.gmsel__chip {
  display: inline-flex;
  align-items: center;
  padding: .02rem .07rem;
  font-size: calc(.115 * var(--t));
  font-weight: 700;
  color: #ffd982;
  background: rgba(246, 163, 41, .14);
  border: 1px solid rgba(246, 163, 41, .38);
  white-space: nowrap;
}
.gmsel__chip--endless {
  color: #f3dcff;
  background: rgba(182, 112, 255, .16);
  border-color: rgba(215, 158, 255, .44);
}

/* 同盟房间等待室底部胶囊并列样式 (variant="room") */
.gmsel--room {
  display: inline-flex;
  align-items: center;
  gap: .04rem;
  height: 78%;
}
.gmsel__seg {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 2px;
  gap: 2px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
}
.gmsel--room.is-united .gmsel__seg {
  border-color: rgba(246, 163, 41, .55);
  background: rgba(44, 28, 6, .75);
}
.gmsel--room.is-endless .gmsel__seg {
  border-color: rgba(206, 146, 255, .58);
  background: rgba(34, 16, 52, .8);
}
.gmsel__pill {
  display: inline-flex;
  align-items: center;
  gap: .05rem;
  height: 100%;
  padding: 0 .14rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-lo);
  font-size: calc(.16 * var(--t));
  font-weight: 800;
  white-space: nowrap;
  cursor: var(--sp-cursor-pointer, pointer);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.gmsel__pill:hover:not(:disabled) {
  color: var(--text-hi);
}
.gmsel__pill.is-on {
  color: #091813;
  background: var(--mint-400);
}
.gmsel__pill--united.is-on {
  color: #1f1300;
  background: linear-gradient(135deg, #ffd66b, #f6a329);
  box-shadow: 0 0 .14rem rgba(246, 163, 41, .45);
}
.gmsel__pill--endless.is-on {
  color: #160924;
  background: linear-gradient(135deg, #ffe299 0%, #d896ff 58%, #9b5cff 100%);
  box-shadow: 0 0 .16rem rgba(200, 139, 255, .52);
}
.gmsel__ro {
  display: inline-flex;
  align-items: center;
  gap: .06rem;
  height: 100%;
  padding: 0 .15rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--text-hi);
  font-size: calc(.16 * var(--t));
  font-weight: 800;
  white-space: nowrap;
  cursor: help;
}
.gmsel__ro.is-united {
  color: #ffd875;
  background: rgba(54, 34, 6, .85);
  border-color: rgba(246, 163, 41, .6);
}
.gmsel__ro.is-endless {
  color: #f0d6ff;
  background: rgba(42, 18, 64, .88);
  border-color: rgba(206, 146, 255, .62);
}
.gmsel__ro .icon {
  width: 1.05em;
  height: 1.05em;
}
.gmsel__info {
  display: grid;
  place-items: center;
  width: max(.36rem, 26px);
  height: max(.36rem, 26px);
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 163, 41, .45);
  background: rgba(28, 22, 10, .85);
  color: #ffd363;
  font-size: calc(.14 * var(--t));
  cursor: var(--sp-cursor-pointer, pointer);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.gmsel__info .icon {
  width: 62%;
  height: 62%;
}
.gmsel__info:hover, .gmsel__info:focus-visible {
  background: rgba(246, 163, 41, .24);
  border-color: #ffd363;
}

/* ---- 3. 联合卫戍 / 无尽模式 规则预览弹窗 (UnitedRulesModal) --------------------------------- */
.urules__nav {
  display: flex;
  gap: .08rem;
  margin-bottom: .12rem;
}
.urules__tab {
  flex: 1 1 0;
  min-height: max(.38rem, 28px);
  padding: .04rem .12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .06rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  color: var(--text-md);
  font-size: calc(.145 * var(--t));
  font-weight: 800;
  cursor: var(--sp-cursor-pointer, pointer);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.urules__tab:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, .08);
}
.urules__tab.is-on {
  color: #1d1202;
  background: linear-gradient(135deg, #ffd363, #f6a329);
  border-color: #ffe399;
}
.urules__tab--endless.is-on {
  color: #160924;
  background: linear-gradient(135deg, #ffe299 0%, #d896ff 58%, #9b5cff 100%);
  border-color: #f3dcff;
}
.urules {
  display: flex;
  flex-direction: column;
  gap: .14rem;
}
.urules__hero {
  padding: .12rem .14rem;
  background: linear-gradient(135deg, rgba(58, 38, 8, .72), rgba(16, 20, 19, .92));
  border: 1px solid rgba(246, 163, 41, .45);
  border-left: 4px solid #f6a329;
}
.urules__hero--endless {
  background: linear-gradient(135deg, rgba(54, 24, 82, .78), rgba(16, 18, 24, .94));
  border-color: rgba(206, 146, 255, .52);
  border-left-color: #d79eff;
}
.urules--endless .urules__hero-tag {
  color: #f3dcff;
}
.urules__card--endless {
  border-color: rgba(206, 146, 255, .34);
  background: linear-gradient(180deg, rgba(34, 18, 52, .56), rgba(14, 16, 20, .88));
}
.urules__card--endless .urules__code {
  color: #e4b8ff;
  border-color: rgba(215, 158, 255, .48);
  background: rgba(182, 112, 255, .18);
}
.urules__hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
  margin-bottom: .06rem;
}
.urules__hero-tag {
  font-size: calc(.13 * var(--t));
  font-weight: 700;
  color: #ffd982;
}
.urules__hero-sub {
  margin: 0;
  font-size: calc(.145 * var(--t));
  line-height: 1.55;
  color: var(--text-md);
}
.urules__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .1rem;
}
.urules__card {
  padding: .11rem .13rem;
  background: rgba(14, 18, 17, .9);
  border: 1px solid var(--line-2);
  border-top: 2px solid rgba(246, 163, 41, .65);
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.urules__card-head {
  display: flex;
  align-items: center;
  gap: .07rem;
}
.urules__code {
  flex: none;
  padding: .01rem .05rem;
  font-size: calc(.115 * var(--t));
  font-weight: 800;
  color: #1c1100;
  background: #f6a329;
}
.urules__title {
  font-size: calc(.155 * var(--t));
  color: #fff3d1;
  line-height: 1.3;
}
.urules__desc {
  margin: 0;
  font-size: calc(.135 * var(--t));
  line-height: 1.55;
  color: var(--text-md);
}

/* ---- 4. 局内休整期「复活战役」悬赏终端条 (ReviveBountyBar) --------------------------------- */
.ubounty {
  position: absolute;
  left: 50%;
  top: 1.84rem;
  transform: translateX(-50%);
  z-index: 7;
  width: min(8.8rem, calc(100vw - 5.8rem));
  min-width: min(4.8rem, 90vw);
  padding: .08rem .12rem .08rem .14rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .12rem;
  background: linear-gradient(90deg, rgba(36, 24, 6, .95) 0%, rgba(16, 18, 17, .95) 65%, rgba(28, 20, 6, .95) 100%);
  border: 1px solid rgba(246, 163, 41, .65);
  border-left: 4px solid #f6a329;
  box-shadow: 0 .08rem .28rem rgba(0, 0, 0, .62), 0 0 .2rem rgba(246, 163, 41, .2);
  clip-path: polygon(0 0, calc(100% - .1rem) 0, 100% .1rem, 100% 100%, .1rem 100%, 0 calc(100% - .1rem));
  pointer-events: auto;
  transition: opacity var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.ubounty.is-accepted {
  background: linear-gradient(90deg, rgba(58, 36, 6, .96) 0%, rgba(22, 30, 24, .96) 100%);
  border-color: #ffd466;
  border-left-color: #59f4ca;
  box-shadow: 0 .08rem .3rem rgba(0, 0, 0, .65), 0 0 .26rem rgba(255, 212, 102, .34);
}
.ubounty.is-guaranteed {
  border-color: #ff6a4d;
  border-left-color: #ffbd38;
}
/* 拖拽棋子或查看敌方预览围栏时自动避让，100% 不阻挡棋盘落点与视线 */
.ubounty.is-yielding {
  opacity: .22;
  pointer-events: none;
}
.ubounty--min {
  width: auto;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  clip-path: none;
}
.ubounty__pill {
  display: inline-flex;
  align-items: center;
  gap: .06rem;
  padding: .05rem .14rem;
  background: rgba(34, 22, 5, .94);
  border: 1px solid #f6a329;
  color: #ffd875;
  font-size: calc(.14 * var(--t));
  font-weight: 800;
  cursor: var(--sp-cursor-pointer, pointer);
  box-shadow: 0 .04rem .16rem rgba(0, 0, 0, .55);
}
.ubounty__main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: .03rem;
}
.ubounty__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .07rem;
}
.ubounty__kicker {
  display: inline-flex;
  align-items: center;
  gap: .04rem;
  font-family: var(--font-display);
  font-size: calc(.11 * var(--t));
  font-weight: 800;
  letter-spacing: .08em;
  color: #f6a329;
}
.ubounty__crest {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.ubounty__title {
  font-size: calc(.16 * var(--t));
  font-weight: 900;
  color: #fff5dc;
}
.ubounty__mult {
  padding: .01rem .07rem;
  font-size: calc(.135 * var(--t));
  font-weight: 800;
  color: #1f1200;
  background: #ffc845;
}
.ubounty__guar {
  padding: .01rem .07rem;
  font-size: calc(.125 * var(--t));
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, #d92b1e, #f06418);
  box-shadow: 0 0 .12rem rgba(255, 84, 54, .55);
  animation: ubanner-pulse 1.6s ease-in-out infinite;
}
.ubounty__state {
  padding: .01rem .05rem;
  font-size: calc(.115 * var(--t));
  color: #062118;
  background: var(--mint-400);
}
.ubounty__desc {
  margin: 0;
  font-size: calc(.125 * var(--t));
  line-height: 1.35;
  color: var(--text-md);
}
.ubounty__targets {
  color: #ffd37a;
  font-weight: 700;
}
.ubounty__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: .06rem;
}
.ubounty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .06rem;
  min-height: max(.42rem, 30px);
  padding: 0 .16rem;
  border: 1px solid #ffd466;
  background: linear-gradient(180deg, #ffd363, #ea9518);
  color: #1b1000;
  font-size: calc(.15 * var(--t));
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: var(--sp-cursor-pointer, pointer);
  transition: filter var(--t-fast), transform var(--t-fast);
}
.ubounty__btn .icon {
  width: 1.1em;
  height: 1.1em;
}
.ubounty__btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.ubounty__btn.is-on {
  background: rgba(15, 48, 38, .95);
  border-color: var(--mint-400);
  color: var(--mint-400);
}
.ubounty__btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.ubounty__fold {
  display: grid;
  place-items: center;
  width: max(.34rem, 26px);
  height: max(.42rem, 30px);
  padding: 0;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2);
  color: var(--text-lo);
  font-size: calc(.14 * var(--t));
  cursor: var(--sp-cursor-pointer, pointer);
}
.ubounty__fold .icon {
  width: .18rem;
  height: .18rem;
  transform: rotate(90deg);
}
.ubounty__fold:hover {
  color: var(--text-hi);
  border-color: var(--amber);
}

/* ---- 5. 「救援信标 · 选择复活队友」弹窗与折叠胶囊 (RevivePickModal) ------------------------ */
.urevive {
  display: flex;
  flex-direction: column;
  gap: .14rem;
}
.urevive__lead {
  margin: 0;
  font-size: calc(.15 * var(--t));
  line-height: 1.55;
  color: var(--text-md);
}
.urevive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 2.8rem), 1fr));
  gap: .1rem;
}
.urevive__card {
  display: flex;
  align-items: center;
  gap: .1rem;
  padding: .12rem .14rem;
  text-align: left;
  background: linear-gradient(135deg, rgba(44, 30, 8, .88), rgba(16, 22, 20, .95));
  border: 1px solid rgba(246, 163, 41, .55);
  border-left: 4px solid #ffd363;
  color: var(--text-hi);
  font-size: calc(.15 * var(--t));
  cursor: var(--sp-cursor-pointer, pointer);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.urevive__card:hover:not(:disabled),
.urevive__card:focus-visible {
  transform: translateY(-2px);
  border-color: #ffe28a;
  box-shadow: 0 .06rem .22rem rgba(246, 163, 41, .35);
}
.urevive__card:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.urevive__seat {
  flex: none;
  display: grid;
  place-items: center;
  width: .44rem;
  height: .44rem;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(246, 163, 41, .5);
  color: #ffd363;
  font-size: calc(.17 * var(--t));
  font-weight: 900;
}
.urevive__who {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .02rem;
}
.urevive__name {
  font-size: calc(.175 * var(--t));
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.urevive__kind {
  font-size: calc(.125 * var(--t));
  color: #e6c68a;
}
.urevive__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .05rem;
  padding: .05rem .11rem;
  background: linear-gradient(180deg, #ffd466, #ea9518);
  color: #1c1100;
  font-size: calc(.14 * var(--t));
  font-weight: 900;
  white-space: nowrap;
}
.urevive__crest {
  width: 1.1em;
  height: 1.1em;
}
.urevive-min {
  position: fixed;
  top: 1.08rem;
  right: .32rem;
  z-index: 45;
  pointer-events: auto;
}
.urevive-min__btn {
  display: inline-flex;
  align-items: center;
  gap: .07rem;
  padding: .07rem .16rem;
  background: linear-gradient(90deg, #ffd466, #f09819);
  border: 2px solid #fff3c4;
  color: #1c1000;
  font-size: calc(.15 * var(--t));
  font-weight: 900;
  box-shadow: 0 .06rem .24rem rgba(246, 163, 41, .55);
  cursor: var(--sp-cursor-pointer, pointer);
  animation: ubanner-pulse 1.5s ease-in-out infinite;
}
.urevive-min__icon {
  width: 1.2em;
  height: 1.2em;
}

/* ---- 6. 战场顶部史诗警报横幅：追剿联防 & 殊死一战 (UnitedBattleBanner) ---------------------- */
.ubanner {
  position: absolute;
  left: 50%;
  top: 1.02rem;
  transform: translateX(-50%);
  z-index: 6;
  max-width: min(11.4rem, 92vw);
  padding: .07rem .24rem;
  pointer-events: none;
  overflow: hidden;
  clip-path: polygon(.12rem 0, calc(100% - .12rem) 0, 100% 50%, calc(100% - .12rem) 100%, .12rem 100%, 0 50%);
}
.ubanner__stripe {
  position: absolute;
  inset: 0;
  opacity: .22;
  background: repeating-linear-gradient(-45deg, rgba(255, 212, 102, .5) 0 6px, transparent 6px 14px);
  pointer-events: none;
}
.ubanner__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  white-space: nowrap;
}
.ubanner__tag {
  flex: none;
  padding: .02rem .08rem;
  font-family: var(--font-num);
  font-size: calc(.12 * var(--t));
  font-weight: 900;
  letter-spacing: .1em;
}
.ubanner__text {
  font-size: calc(.155 * var(--t));
  font-weight: 900;
  letter-spacing: .03em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ubanner__who {
  font-style: normal;
  color: #ffe294;
}
.ubanner__crest {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  color: #ffd466;
}
.ubanner--pursuit {
  background: linear-gradient(90deg, rgba(56, 8, 8, .95), rgba(92, 14, 12, .96) 50%, rgba(56, 8, 8, .95));
  border-top: 2px solid #f6a329;
  border-bottom: 2px solid #f6a329;
  color: #fff1dc;
  box-shadow: 0 .06rem .26rem rgba(231, 49, 24, .5);
}
.ubanner--pursuit .ubanner__tag {
  background: #f6a329;
  color: #240804;
}
.ubanner--laststand {
  background: linear-gradient(90deg, rgba(78, 10, 6, .97), rgba(138, 22, 10, .97) 50%, rgba(78, 10, 6, .97));
  border-top: 2px solid #ffe07d;
  border-bottom: 2px solid #ffe07d;
  color: #fff8e6;
  box-shadow: 0 .08rem .34rem rgba(255, 68, 34, .68);
  animation: ubanner-pulse 1.3s ease-in-out infinite;
}
.ubanner--laststand .ubanner__tag {
  background: #ffe07d;
  color: #360702;
}
.ubanner--bounty {
  background: linear-gradient(90deg, rgba(28, 20, 6, .92), rgba(52, 36, 8, .94) 50%, rgba(28, 20, 6, .92));
  border-top: 1px solid rgba(246, 163, 41, .7);
  border-bottom: 1px solid rgba(246, 163, 41, .7);
  color: #ffe7ad;
}
@keyframes ubanner-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.16); }
}

/* ---- 7. 阵亡待援观战横幅与左侧队友状态角标 (FallenStatusBanner & UnitedTeamOverlay) ------- */
.ufallen-bar {
  position: absolute;
  left: 50%;
  bottom: 3.06rem;
  transform: translateX(-50%);
  z-index: 6;
  max-width: min(9.8rem, 92vw);
  padding: .08rem .2rem;
  display: flex;
  align-items: center;
  gap: .1rem;
  background:
    repeating-linear-gradient(-45deg, rgba(168, 28, 24, .22) 0 8px, rgba(36, 10, 10, .94) 8px 16px),
    rgba(32, 8, 8, .94);
  border: 1px solid rgba(246, 163, 41, .75);
  border-left: 4px solid #ff5a47;
  box-shadow: 0 .06rem .24rem rgba(0, 0, 0, .6);
  color: #ffeed9;
  font-size: calc(.15 * var(--t));
  pointer-events: none;
}
.ufallen-bar__badge {
  flex: none;
  padding: .02rem .07rem;
  background: #d92b24;
  border: 1px solid #ffb36b;
  color: #fff;
  font-size: calc(.135 * var(--t));
  font-weight: 900;
  white-space: nowrap;
}
.ufallen-bar__text {
  font-weight: 700;
  line-height: 1.35;
}

/* 左侧队友卡片叠加层与属性增强 */
.uteam-tags {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.uteam-tags__item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .04rem;
  pointer-events: none;
}
.utag {
  display: inline-flex;
  align-items: center;
  gap: .02rem;
  padding: .01rem .05rem;
  font-size: calc(.105 * var(--t));
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .72);
}
.utag i {
  font-style: normal;
}
.utag--fallen {
  color: #ffe8df;
  background: repeating-linear-gradient(-45deg, #9e1b16 0 5px, #6e100d 5px 10px);
  border: 1px solid #f6a329;
}
.utag--bounty {
  color: #1f1200;
  background: linear-gradient(135deg, #ffd875, #f6a329);
  border: 1px solid #fff2bd;
}
.team__row[data-united-fallen="1"] .team__name {
  color: #f3b5a8;
  text-decoration: none;
}
.team__row[data-united-fallen="1"] .pavatar {
  border-color: rgba(246, 163, 41, .75);
}
.team__row[data-united-bounty="1"] .pavatar {
  box-shadow: 0 0 0 2px #f6a329, 0 0 .16rem rgba(246, 163, 41, .45);
}

/* 局内顶栏左角联合卫戍徽标位 */
.gtop__united {
  margin-top: .02rem;
}

/* 结算页联合卫戍徽标间距微调 */
.sself__mode .ubadge,
.steam__tags .ubadge,
.result__summary .ubadge {
  margin-left: .06rem;
}

/* ---- 8. 响应式与无障碍降级 ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .urules__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ubanner__body {
    white-space: normal;
    text-align: center;
  }
  .ubounty {
    width: min(8.2rem, calc(100vw - 2.4rem));
  }
}
@media (max-height: 520px) {
  .gmsel--lobby,
  .gmsel--ally {
    padding: 4px 8px;
    gap: 3px;
  }
  .gmsel__chips {
    display: none;
  }
  .ubounty {
    top: 1.52rem;
    padding: 4px 8px;
  }
  .ubounty__desc {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ubounty__guar,
  .urevive-min__btn,
  .ubanner--laststand {
    animation: none;
  }
}
