/* ============================================================
 * css/screens/battle.css — 战斗页面补充样式（归属：jianghu 组）
 * 战斗主样式在 css/battle.css（battleView 组），这里只补页面层的东西：
 *   .bl-root       页面内容容器（#screen > .screen-content.full）
 *   .bl-has-bg     BattleLauncher 贴了 assets/bg/{bg}.webp 的战斗根元素
 *   .bl-title      顶部木条上的标题（战斗中与结算层都可见）
 *   .bl-empty      非法进入时的占位页
 * 不改 theme.css / screens.css / battle.css。
 * ============================================================ */

/* 页面容器：满屏 960，宣纸底（贴图未载入前的兜底色） */
.screen-content.bl-root {
  height: 960px;
  background: var(--paper, #e8d3a3);
  overflow: hidden;
}
/* 战斗中禁止顶栏 / 底栏（壳层已按 chrome:false 隐藏，这里双保险） */
#app.no-chrome #chrome-top,
#app.no-chrome #chrome-bottom { display: none !important; }

/* ---------- 贴图背景 ---------- */
.battle.bl-has-bg {
  background-size: 448px 960px;
  background-position: center top;
  background-repeat: no-repeat;
}
/* battleView 自己的宣纸渐变让位给贴图；贴图自带水墨竹影，去掉 SVG 竹影，只留极淡的纸纹 */
.battle.bl-has-bg > .bt-bg { background: transparent; }
.battle.bl-has-bg > .bt-bg::before { display: none; }
.battle.bl-has-bg > .bt-bg::after { opacity: .2; }

/* ---------- 顶部标题（覆在 26px 的顶部木条上，z-index 高于结算层 40） ---------- */
.battle .bl-title {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 26px;
  z-index: 41;
  pointer-events: none;
  text-align: center;
  line-height: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 9px, rgba(255, 200, 120, .06) 9px 11px, transparent 11px 23px),
    linear-gradient(180deg, #5a2f12 0%, #7a4419 30%, #4c2810 70%, #2e1608 100%);
  border-bottom: 2px solid #8a5a24;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.battle .bl-title-text {
  display: inline-block;
  max-width: 300px;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: top;
  font-family: var(--font-brush, 'Ma Shan Zheng', 'Zhi Mang Xing', 'STKaiti', 'KaiTi', 'Kaiti SC', serif);
  font-size: 17px;
  letter-spacing: 3px;
  color: var(--gold, #f2c245);
  text-shadow: 0 1px 0 #2a1508, 0 0 6px rgba(0, 0, 0, .55), 0 0 12px rgba(242, 194, 69, .25);
}
.battle .bl-title-text::before,
.battle .bl-title-text::after {
  content: '❖';
  display: inline-block;
  margin: 0 8px;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--gold-dark, #b8860b);
  vertical-align: 2px;
}

/* ---------- 占位页（未经 BattleLauncher 进入 / 推演出错） ---------- */
.bl-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(255, 250, 235, .55), rgba(232, 211, 163, 0) 70%),
    linear-gradient(180deg, #e2cb98 0%, #eddcb3 18%, #f0e1bd 50%, #e6d1a2 85%, #d8bd85 100%);
}
.bl-empty-seal {
  width: 96px; height: 96px;
  border: 4px solid var(--red, #a8261b);
  border-radius: 50%;
  line-height: 88px;
  font-family: var(--font-brush, 'Ma Shan Zheng', 'Zhi Mang Xing', 'STKaiti', 'KaiTi', serif);
  font-size: 56px;
  color: var(--red, #a8261b);
  transform: rotate(-12deg);
  opacity: .85;
  box-shadow: inset 0 0 0 2px rgba(168, 38, 27, .25);
}
.bl-empty-msg {
  font-family: var(--font-brush, 'Ma Shan Zheng', 'Zhi Mang Xing', 'STKaiti', 'KaiTi', serif);
  font-size: 22px;
  color: var(--ink, #2b1d12);
  letter-spacing: 2px;
}
.bl-empty-tip { font-size: 13px; color: var(--ink-soft, #5b4630); }
.bl-empty-btn { margin-top: 10px; min-width: 120px; }
