/* ============ 战场区 ============ */
#battle-wrap {
  position: relative;
  height: 46%;
  min-height: 280px;
  background: var(--ink-0);
  overflow: hidden;
  border-bottom: 1px solid var(--ink-4);
}
#battle {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
#battle-wrap.shake { animation: shakeHard .35s; }
#battle-wrap.shake-soft { animation: shakeSoft .25s; }
@keyframes shakeHard {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-7px,4px); }
  40% { transform: translate(6px,-5px); }
  60% { transform: translate(-5px,-3px); }
  80% { transform: translate(4px,5px); }
}
@keyframes shakeSoft {
  0%, 100% { transform: translate(0,0); }
  30% { transform: translate(-3px,2px); }
  60% { transform: translate(3px,-2px); }
}
#battle-top {
  position: absolute; top: 6px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
  z-index: 5;
}
#depth-label {
  font-family: var(--font-kai);
  font-size: 14px;
  color: var(--paper);
  letter-spacing: 2px;
  text-shadow: 0 1px 4px #000;
}
#wave-label {
  font-size: 12px;
  color: var(--paper-dim);
  text-shadow: 0 1px 3px #000;
  font-variant-numeric: tabular-nums;
}
#dive-label {
  margin-left: auto;
  font-family: var(--font-kai);
  font-size: 13px;
  color: var(--malachite);
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(47,163,138,.5);
}
#loot-toast {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  display: flex; flex-direction: column-reverse; gap: 3px;
  pointer-events: none; z-index: 6;
}
.loot-line {
  font-size: 12px;
  font-family: var(--font-kai);
  text-shadow: 0 1px 3px #000;
  background: rgba(8,6,4,.55);
  padding: 1px 8px;
  border-radius: 3px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: lootIn .2s, lootOut .5s 3.2s forwards;
}
@keyframes lootIn { from { opacity: 0; transform: translateX(-12px); } }
@keyframes lootOut { to { opacity: 0; } }
#light-pillar {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 7;
  opacity: 0;
}
#light-pillar.show { animation: pillar 1.4s ease-out; }
@keyframes pillar {
  0% { opacity: 0; background: radial-gradient(ellipse 30% 90% at 50% 100%, rgba(255,200,90,.55), rgba(255,170,40,.18) 45%, transparent 70%); }
  15% { opacity: 1; }
  100% { opacity: 0; background: radial-gradient(ellipse 46% 100% at 50% 100%, rgba(255,210,100,.3), transparent 65%); }
}
#respawn-overlay {
  position: absolute; inset: 0;
  background: rgba(5,4,3,.82);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  backdrop-filter: blur(2px);
}
.respawn-box { text-align: center; }
.respawn-title {
  font-family: var(--font-kai);
  font-size: 24px;
  color: var(--cinnabar);
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(194,59,34,.6);
  animation: respawnBlink 1.2s infinite;
}
@keyframes respawnBlink { 50% { opacity: .55; } }
.respawn-sub { color: var(--paper-dim); font-size: 12px; margin: 8px 0 14px; letter-spacing: 2px; }
.respawn-count {
  font-family: var(--font-kai);
  font-size: 44px;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(212,175,55,.5);
}
