/* Team Wars loading cover. Same restrained typography and progress style as CAMP. */
#page-battle .team-wars-loading-screen {
  position: absolute;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  background: #000;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 300ms ease, visibility 0s linear 0s;
}
#page-battle .team-wars-loading-screen[hidden] { display: none !important; }
#page-battle .team-wars-loading-screen.tw-loading-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
#page-battle .tw-loading-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}
#page-battle .tw-loading-progress {
  position: absolute;
  bottom: clamp(24px, 6vh, 65px);
  left: 50%;
  width: min(310px, 72vw);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
#page-battle .tw-loading-label {
  margin: 0 0 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  color: #72ffab;
  text-shadow: 0 2px 7px #000, 0 0 12px #000;
}
#page-battle .tw-loading-track {
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: rgba(45,86,58,.72);
  box-shadow: 0 1px 8px rgba(0,0,0,.85);
}
#page-battle .tw-loading-fill {
  width: 0%;
  height: 100%;
  background: #4af78d;
  transition: width 100ms linear;
}
#page-battle .tw-loading-error {
  margin-top: 14px;
  font-size: 10px;
  color: #ffae9d;
  text-shadow: 0 2px 7px #000;
  pointer-events: auto;
}
#page-battle .tw-loading-error[hidden] { display: none !important; }
#page-battle .tw-loading-retry {
  display: block;
  margin: 9px auto 0;
  padding: 6px 10px;
  font-size: 10px;
  color: #e2f7e9;
  background: #103024;
  border: 1px solid #357957;
}
@media (prefers-reduced-motion: reduce) {
  #page-battle .team-wars-loading-screen,
  #page-battle .team-wars-loading-screen.tw-loading-done,
  #page-battle .tw-loading-fill { transition: none; }
}
