
/* ---------- 战斗 ---------- */
.battle-root { position: absolute; inset: 44px 0 0 0; display: flex; flex-direction: column; }
.battle-field {
  position: relative; flex: 1; overflow: hidden;
  border-bottom: 3px solid var(--wood-deep);
}
.battle-field.quake { animation: quake 0.4s; }
.battle-field.quake-hi { animation: quakeHi 0.5s; }
/* 屏幕震动克制在 2px(普通)/ 4px(暴击·克制),且可关(简报二.1) */
@keyframes quake {
  25% { transform: translate(2px, -1px); } 50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 1px); }
}
@keyframes quakeHi {
  20% { transform: translate(3px, -2px); } 45% { transform: translate(-4px, 2px); }
  70% { transform: translate(2px, 2px); } 88% { transform: translate(-1px, -1px); }
}
.round-tag {
  position: absolute; top: 52px; right: 14px; z-index: 5;
  color: var(--text-hi); background: rgba(36, 24, 18, 0.85);
  border: 1px solid var(--gold); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(230, 199, 102, 0.3);
  padding: 4px 12px; font-size: 14px; letter-spacing: 2px;
}

/* 战场态势常驻条(回合签之下):规则名字+一句话效果,全场可见;结阵被破后转灰 */
.field-rule {
  position: absolute; top: 86px; right: 14px; z-index: 5; max-width: 320px;
  color: #ffb37a; background: rgba(48, 22, 12, 0.88);
  border: 1px solid rgba(255, 138, 90, 0.65); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 122, 0.25);
  padding: 4px 10px; font-size: 13px; letter-spacing: 1px;
}
.field-rule.broken { color: #b9b2a4; border-color: rgba(185, 178, 164, 0.5); background: rgba(36, 24, 18, 0.8); }

.order-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background:
    repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.06) 0 4px, transparent 4px 10px),
    linear-gradient(180deg, rgba(58, 42, 28, 0.94), rgba(36, 24, 18, 0.75));
  border-bottom: 1px solid var(--gold);
}
.order-label { color: var(--gold-hi); font-size: 13px; letter-spacing: 2px; flex: none; text-shadow: 0 1px 1px #000; }
/* 时间轴:金色轨道线串起行动先后(简报一.4) */
.order-chips { display: flex; gap: 6px; overflow: hidden; position: relative; align-items: center; }
.order-chips::before {
  content: ''; position: absolute; left: 2px; right: 2px; top: 50%; height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(230, 199, 102, 0.75), rgba(201, 162, 39, 0.2));
}
.order-chip {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 4px;
  background: linear-gradient(180deg, rgba(84, 64, 44, 0.92), rgba(58, 42, 28, 0.92));
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 3px; padding: 2px 7px 2px 2px;
  transition: opacity 0.3s, border-color 0.3s;
}
.order-chip img { width: 26px; height: 26px; object-fit: contain; border-radius: 2px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(201, 162, 39, 0.4); }
.order-chip-name { color: var(--text-hi); font-size: 12px; text-shadow: 0 1px 1px #000; }
.order-chip.current {
  border-color: var(--gold-hi);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.55), rgba(138, 90, 46, 0.55));
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.6);
}
.order-chip.done { opacity: 0.35; }
.order-chip-spd { color: rgba(244, 234, 210, 0.7); font-size: 10px; margin-left: 2px; }
.order-chip.jumped { border-color: var(--gold-hi); animation: jumpFlash 1.2s ease-out; position: relative; }
@keyframes jumpFlash {
  0% { background: rgba(255, 215, 90, 0.75); }
  100% { background: rgba(242, 232, 213, 0.14); }
}
.jump-badge {
  position: absolute; top: -8px; right: -6px;
  background: linear-gradient(180deg, var(--zhu-hi), var(--zhu)); color: var(--text-hi);
  font-size: 10px; line-height: 1; padding: 2px 3px;
  border: 1px solid var(--gold); border-radius: 3px; text-shadow: 0 1px 1px #000;
}

/* 五行相克环(常驻指令台右格,简报 T8:不再占舞台左下角) */
.wuxing-ring {
  flex: none; align-self: center; margin-left: 12px;
  display: flex; align-items: center; gap: 3px;
  background: rgba(36, 24, 18, 0.85);
  border: 1px solid var(--gold); border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(230, 199, 102, 0.25);
  padding: 4px 10px; pointer-events: none;
}
.ring-el {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: bold; color: #fff; text-shadow: 0 1px 1px #000;
  border: 1.5px solid rgba(230, 199, 102, 0.85);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}
.ring-el[data-el="金"] { background: #b8912a; }
.ring-el[data-el="木"] { background: #3e7d3a; }
.ring-el[data-el="水"] { background: #2a6b8a; }
.ring-el[data-el="火"] { background: #b03a24; }
.ring-el[data-el="土"] { background: #7d5a34; }
.ring-arrow { color: var(--gold-hi); font-size: 12px; }

/* 战斗内换阵按钮 */
.formation-btn {
  position: absolute; top: 52px; right: 150px; z-index: 6;
  padding: 4px 12px; font-size: 13px; letter-spacing: 1px;
}

/* 目标五行预览标 */
.preview-badge {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  z-index: 12; pointer-events: none;
  font-size: 15px; font-weight: bold; white-space: nowrap;
  padding: 2px 10px; border-radius: 3px; border: 2px solid currentColor;
  background: rgba(20, 12, 6, 0.85);
  animation: bannerIn 0.18s ease;
}
.preview-badge.good { color: #7ad76a; }
.preview-badge.bad { color: #ff7a5a; }
.preview-badge.none { color: #cfc8ba; }

.unit-card {
  position: absolute; width: 168px; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.18s ease, filter 0.3s, opacity 0.5s;
}
.unit-card .float-anchor { position: absolute; left: 0; right: 0; top: -26px; height: 0; z-index: 9; }
.unit-shadow {
  /* 名牌血条栈高固定 79px(见 .buff-chips/.unit-card.enemy .unit-bars),阴影贴着脚线 */
  position: absolute; bottom: 73px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 16px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  z-index: -1;
}
.unit-portrait {
  width: 140px; height: 178px; object-fit: contain;
  /* 底对齐:源图宽高比不一(258×600~799×600),垂直居中会让脚线永远不共线 */
  object-position: 50% 100%;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.45));
  border-radius: 4px;
}
.unit-card.party .unit-portrait { transform: scaleX(-1); }
.unit-card.big .unit-portrait { width: 240px; height: 290px; }
.unit-card.big { width: 260px; }
.unit-card.big .unit-shadow { width: 190px; height: 26px; bottom: 73px; }
.unit-name {
  margin-top: 2px; color: var(--text-hi); font-size: 14px; letter-spacing: 2px;
  background: linear-gradient(180deg, #54402c, var(--wood));
  border: 1.5px solid var(--gold); border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(230, 199, 102, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
  padding: 1px 12px; text-shadow: 0 1px 1px #000;
}
.elem-badge {
  position: absolute; top: -6px; left: 2px; z-index: 8;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: bold; color: #fff;
  border: 2px solid var(--gold-hi);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 2px #000;
}
.elem-badge[data-el="金"] { background: radial-gradient(circle at 35% 30%, #d8b84a, #8a6a1a); }
.elem-badge[data-el="木"] { background: radial-gradient(circle at 35% 30%, #5a9d4a, #2a5a24); }
.elem-badge[data-el="水"] { background: radial-gradient(circle at 35% 30%, #4a8aaa, #1a4a66); }
.elem-badge[data-el="火"] { background: radial-gradient(circle at 35% 30%, #d05a34, #7e241e); }
.elem-badge[data-el="土"] { background: radial-gradient(circle at 35% 30%, #9d7a44, #5a3e20); }

.unit-bars { width: 132px; margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
/* 竹简/卷轴质地细长条,两端铜扣收头(简报一.1) */
.bar {
  position: relative; height: 15px;
  background:
    repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.09) 0 11px, transparent 11px 22px),
    linear-gradient(180deg, rgba(43, 30, 20, 0.92), rgba(20, 12, 6, 0.88));
  border: 1.5px solid var(--wood);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.7), 0 1px 2px rgba(0, 0, 0, 0.4);
  border-radius: 7px;
  overflow: visible;
}
.bar-cap {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), #7a5a16);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.8), inset 0 0 1px #fff2c0;
}
.bar-cap.l { left: -3px; }
.bar-cap.r { right: -3px; }
.bar-fill {
  position: absolute; inset: 0; width: 100%;
  border-radius: 6px;
  overflow: hidden;
  transition: none; /* 宽度变化由 setBar 内联驱动(两段式) */
}
.bar-fill::after {
  /* 竹节分段刻度 */
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 11px, rgba(0, 0, 0, 0.28) 11px 12px);
}
.bar-ghost {
  /* 暗红残层:掉血时留在原地缓慢追上,看得见「刚才挨了多少」 */
  position: absolute; inset: 0; width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #96352a, #5e1710);
  transition: none;
}
.bar.hp .bar-fill { background: linear-gradient(180deg, #d0523a, var(--zhu) 60%, #7e241e); }
.bar.mp .bar-fill { background: linear-gradient(180deg, #4a8ab8, #2a5a80 60%, #1a3e5a); }
.bar.mp .bar-ghost { background: linear-gradient(180deg, #2c4e68, #16303f); }
/* 低血:转朱色并轻微搏动 */
.bar.low .bar-fill {
  background: linear-gradient(180deg, #ff7a54, var(--zhu-hi) 55%, var(--zhu));
  animation: lowPulse 0.9s infinite;
}
@keyframes lowPulse { 50% { filter: brightness(1.55); } }
.bar-text {
  position: absolute; inset: 0; text-align: center;
  /* 等宽衬线数字,不用系统默认字 */
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-variant-numeric: tabular-nums;
  font-size: 10px; line-height: 14px; color: #fff; text-shadow: 0 1px 1px #000;
  z-index: 2; letter-spacing: 0.5px;
}
.buff-chips {
  display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; justify-content: center; max-width: 150px;
  /* 固定一行高度:状态签出现/消失不再让脚线上下跳(站位按卡底锚定) */
  min-height: 17px;
}
/* 敌方没有法力条:补出与我方等高的牌条区,敌我脚线用同一个 79px 栈高对齐 */
.unit-card.enemy .unit-bars { padding-bottom: 18px; }
.buff-chip {
  font-size: 10px; color: var(--text-hi);
  background: linear-gradient(180deg, #54402c, var(--wood));
  border: 1px solid var(--gold); border-radius: 2px; padding: 0 4px;
  text-shadow: 0 1px 1px #000;
}
.buff-chip[data-buff="enrage"] {
  color: #ffe0c6; border-color: #ff7a4a;
  background: rgba(126, 34, 22, 0.90);
  box-shadow: 0 0 8px rgba(255, 94, 48, 0.55);
}

.unit-card.dead { opacity: 0.18; filter: grayscale(1); pointer-events: none; }
/* 阵亡/被收服:名牌、血条、五行徽、状态签一并撤下,只留一具淡出的灰立绘——
   18% 不透明度下金框名牌依然可读,会在半空挂成「幽灵名牌」(记录缺陷 R1) */
.unit-card.dead .unit-name,
.unit-card.dead .unit-bars,
.unit-card.dead .elem-badge,
.unit-card.dead .buff-chips { display: none; }
.unit-card.commanding .unit-portrait {
  filter: drop-shadow(0 0 12px rgba(201, 162, 39, 1)) drop-shadow(0 0 26px rgba(201, 162, 39, 0.5));
  animation: breathe 1.4s ease-in-out infinite;
}
/* 我方立绘带 scaleX(-1) 镜像,呼吸帧必须带上镜像,否则插值过 scaleX(0) 把立绘压成竖条 */
.unit-card.party.commanding .unit-portrait { animation-name: breatheFlip; }
@keyframes breathe { 50% { transform: scale(1.045); } }
@keyframes breatheFlip { 50% { transform: scaleX(-1) scale(1.045); } }
.unit-card.commanding::after {
  content: '▼'; position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  color: var(--gold-hi); font-size: 22px; animation: bob 0.7s infinite alternate;
  text-shadow: 0 2px 3px #000;
}
@keyframes bob { to { transform: translate(-50%, 7px); } }
.unit-card.targetable { cursor: pointer; }
.unit-card.targetable .unit-portrait { outline: 3px solid var(--gold-hi); outline-offset: 2px; animation: pulse 0.8s infinite alternate; }
@keyframes pulse { to { outline-color: #fff; } }
.unit-card.transformed .unit-portrait { filter: drop-shadow(0 0 8px rgba(90, 180, 120, 0.9)); }
.unit-card.flash .unit-portrait { animation: flash 0.5s; }
@keyframes flash { 0%,100% { filter: none; } 50% { filter: brightness(2.2) drop-shadow(0 0 16px #fff); } }
/* 受击短促位移 3-4px(简报二.1);暴击/克制用 shake-hard 更重 */
.unit-card.shake { animation: ushake 0.32s; }
@keyframes ushake {
  25% { transform: translate(-4px, 2px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, -1px); }
}
.unit-card.shake-hard { animation: ushakeHard 0.45s; }
@keyframes ushakeHard {
  20% { transform: translate(-6px, 3px); } 45% { transform: translate(6px, -3px); }
  70% { transform: translate(-3px, -2px); } 88% { transform: translate(2px, 1px); }
}
.unit-card.charging .unit-portrait {
  outline: 3px solid var(--zhu-hi); outline-offset: 3px; border-radius: 6px;
  animation: chargePulse 0.7s infinite alternate;
}
@keyframes chargePulse { to { outline-color: #ff9a7a; filter: drop-shadow(0 0 14px rgba(200, 60, 40, 0.9)); } }
.unit-card.blown { animation: blowAway 1.3s ease-in forwards; }
.unit-card.retreat { animation: retreatGo 1.1s ease-in forwards; }
@keyframes retreatGo {
  20% { transform: translate(30px, -10px); }
  100% { transform: translate(700px, -200px); opacity: 0; }
}
@keyframes blowAway {
  20% { transform: translate(-60px, -30px) rotate(-8deg); }
  100% { transform: translate(-900px, -420px) rotate(-38deg); opacity: 0; }
}
.unit-portrait.hit-flash { animation: hitFlash 0.38s; }
@keyframes hitFlash { 30% { filter: brightness(1.8) sepia(1) hue-rotate(-40deg) saturate(3); } }

/* 飘字(木刻描边字) */
.float-text {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: 22px; font-weight: bold; pointer-events: none; z-index: 20;
  animation: floatUp 1.35s ease-out forwards;
  white-space: nowrap;
  text-shadow:
    -1px -1px 0 var(--ink), 1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink), 1px 1px 0 var(--ink),
    0 2px 3px rgba(0, 0, 0, 0.6);
}
@keyframes floatUp {
  0% { opacity: 0; margin-top: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; margin-top: -64px; }
}
/* 飘字层次(简报二.2):普通小号白字 / 克制大号金字 / 暴击加粗拖影 / 治疗绿字上飘 */
.float-text.dmg { color: #f4ead2; font-size: 20px; }
.float-text.ke-big {
  color: #ffd75a; font-size: 34px;
  text-shadow: 0 0 12px rgba(255, 200, 60, 0.8), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink);
}
.float-text.crit {
  color: #ff5a3a; font-size: 34px; font-weight: 900;
  animation: critBounce 1.2s ease-out forwards;
  /* 拖影:同色系残影向左拉出速度感 */
  text-shadow:
    -4px 0 0 rgba(255, 90, 58, 0.35), -9px 0 0 rgba(255, 90, 58, 0.16),
    0 0 14px rgba(255, 80, 40, 0.7),
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
}
@keyframes critBounce {
  0% { opacity: 0; margin-top: 0; transform: translateX(-50%) scale(1.7); }
  18% { opacity: 1; transform: translateX(-50%) scale(0.92); }
  30% { transform: translateX(-50%) scale(1.08); }
  100% { opacity: 0; margin-top: -72px; transform: translateX(-50%) scale(1); }
}
.float-text.beike { color: #b9b2a4; font-size: 16px; animation: floatSink 1.1s ease-out forwards; }
@keyframes floatSink {
  0% { opacity: 0; margin-top: -4px; }
  20% { opacity: 1; }
  100% { opacity: 0; margin-top: 22px; }
}
.float-text.huge { font-size: 42px; }
.float-text.heavy {
  color: #ff8a5a; font-size: 40px;
  animation: critBounce 1.3s ease-out forwards;
}
.float-text.ke { color: var(--gold-hi); font-size: 24px; }
.float-text.beike-label { color: #b9b2a4; font-size: 14px; }
.float-text.heal { color: #7ad76a; }
.float-text.miss { color: #cfc8ba; font-size: 18px; }
.float-text.buff { color: #9ad0f0; font-size: 15px; }
.float-text.mpup { color: #6aaad0; font-size: 15px; }
.float-text.info { color: var(--text-hi); font-size: 17px; letter-spacing: 3px; }
.float-text.combo-dmg { color: #ffe9b0; font-size: 24px; }
/* 战场态势·地火灼伤:焰色下沉飘字,与「被克」同向(坠)以区别于攻击伤害 */
.float-text.burn {
  color: #ff9a4a; font-size: 20px; animation: floatSink 1.1s ease-out forwards;
  text-shadow:
    0 0 10px rgba(255, 120, 40, 0.7),
    -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink);
}

/* 「克!」「暴击」「连击」印章 */
.float-stamp {
  position: absolute; left: 50%; top: -30px; transform: translateX(-50%) rotate(-8deg);
  z-index: 21; pointer-events: none;
  font-weight: bold; white-space: nowrap;
  border: 2px solid currentColor; border-radius: 4px; padding: 1px 8px;
  animation: stampIn 1.05s ease-out forwards;
  background: rgba(20, 12, 6, 0.6);
}
@keyframes stampIn {
  0% { opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(2.4); }
  22% { opacity: 1; transform: translateX(-50%) rotate(-8deg) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(0.9); }
}
.ke-stamp { color: #ffd75a; font-size: 26px; }
.crit-stamp { color: #ff5a3a; font-size: 24px; }
.combo-stamp { color: #ffe9b0; font-size: 20px; }
.heavy-stamp { color: #ff8a5a; font-size: 24px; letter-spacing: 4px; }
.burn-stamp { color: #ff9a4a; font-size: 20px; letter-spacing: 2px; }

/* 技能名横幅 */
.skill-banner {
  position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%);
  z-index: 15; pointer-events: none;
  color: var(--text-hi); font-size: 34px; letter-spacing: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.08) 0 4px, transparent 4px 10px),
    rgba(36, 24, 18, 0.92);
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(230, 199, 102, 0.4), 0 6px 20px rgba(0, 0, 0, 0.5);
  padding: 10px 34px;
  text-shadow: 0 2px 4px #000;
  animation: bannerIn 0.25s ease;
}
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } }
.skill-banner.phase-banner { color: #ffb0a0; border-color: var(--zhu-hi); font-size: 26px; letter-spacing: 4px; }
.skill-banner.fan-banner { color: #b9e8c9; border-color: #6ac76a; }
.skill-banner.telegraph-banner { color: #ffd75a; border-color: var(--zhu-hi); font-size: 24px; letter-spacing: 3px; animation: telegraphBlink 0.5s ease 3; }
@keyframes telegraphBlink { 50% { filter: brightness(1.5); } }

/* 众神围剿 */
.god-overlay {
  position: absolute; inset: 0; z-index: 24;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.25), rgba(20, 12, 6, 0.55));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  animation: godIn 0.5s ease;
}
.god-overlay img {
  width: 220px;
  filter: drop-shadow(0 0 18px rgba(230, 199, 102, 0.9));
  animation: godIn 0.6s ease;
}
@keyframes godIn { from { opacity: 0; transform: translateY(-40px) scale(1.15); } }

/* 化虫入腹 */
.finisher-overlay {
  position: absolute; inset: 0; z-index: 25;
  background: rgba(20, 12, 6, 0.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.finisher-overlay img {
  width: 260px; animation: insectFly 1.3s ease-in-out;
  filter: drop-shadow(0 0 14px rgba(201, 162, 39, 0.8));
}
@keyframes insectFly {
  0% { transform: translate(-320px, -140px) scale(0.5); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(60px, 30px) scale(1.05); }
}
.finisher-text {
  color: var(--text-hi); font-size: 20px; letter-spacing: 3px;
  background: rgba(36, 24, 18, 0.92); border: 1px solid var(--gold); border-radius: 4px;
  padding: 10px 24px; text-shadow: 0 1px 2px #000;
}

/* ---------- 战斗指令台(卷轴式) ---------- */
.battle-bottom {
  flex: none; height: 176px;
  display: flex; gap: 12px;
  padding: 12px 14px;
  border-top: 3px solid var(--wood);
  box-shadow: inset 0 1px 0 var(--gold);
  background:
    repeating-linear-gradient(90deg, rgba(58, 42, 28, 0.05) 0 4px, transparent 4px 10px),
    linear-gradient(180deg, #e9dcbb, var(--paper-dim));
}
/* 左侧:当前单位小卷轴牌 */
.cmd-status {
  flex: none; width: 252px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 2px solid var(--wood); border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--gold), 0 2px 6px rgba(20, 12, 6, 0.3);
  background:
    repeating-linear-gradient(0deg, rgba(58, 42, 28, 0.05) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #f4e9cd, #e2d3ac);
}
.cmd-avatar {
  width: 52px; height: 62px; object-fit: contain; flex: none;
  border: 2px solid var(--wood); border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--gold);
  background: #d8cdb4;
}
.cmd-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cmd-who-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: bold; letter-spacing: 2px; color: var(--text-de);
}
.cmd-who-tip { font-size: 12px; color: var(--zhu); letter-spacing: 1px; }
.cmd-menu { flex: 1; display: flex; }
.cmd-grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr;
  gap: 10px;
}
.cmd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 19px; letter-spacing: 4px; font-weight: bold;
}
.cmd-list { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; overflow: auto; }
.cmd-item { padding: 8px 16px; font-size: 15px; letter-spacing: 1px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cmd-item-name { font-size: 15px; font-weight: bold; }
.cmd-item-meta { font-size: 11px; color: #6a5a48; letter-spacing: 0; }
.cmd-item.counter { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 0 8px rgba(201, 162, 39, 0.5); }
.cmd-empty { color: var(--disabled); padding: 8px; }

/* ---------- 战况卷轴(简报 T8:结算/对话时段的底栏空态填充) ---------- */
.battle-report {
  flex: 1; display: flex; align-items: center; gap: 18px;
  padding: 6px 10px; overflow: hidden;
}
.battle-report-title {
  flex: none; writing-mode: vertical-rl;
  font-size: 20px; letter-spacing: 6px; font-weight: bold; color: var(--zhu);
  border: 1.5px solid var(--gold); border-radius: 3px; padding: 6px 3px;
  background: linear-gradient(180deg, #f4e9cd, #e2d3ac);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.5);
}
.battle-report-lines { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.battle-report-line {
  font-size: 14px; letter-spacing: 2px; color: var(--text-de);
  border-bottom: 1px dashed rgba(138, 90, 46, 0.55); padding-bottom: 3px;
  white-space: nowrap;
}

/* 模态/战斗对话在场时,底部指令台随遮罩一并压暗,不再比面板还亮(简报 T8) */
.battle-bottom { transition: filter 0.2s ease; }
body.modal-open .battle-bottom,
body.dlg-open .battle-bottom { filter: brightness(0.55); }
