@media (max-width:700px), (max-width:1000px) and (pointer:coarse) {
 .battlefoot #preparation-path { display:none; }
 body[data-battle-phase="preparation"][data-has-battle-report="false"] .battlefoot > div:first-child { display:none; }
 .battlefoot:has(#formation-toggle:not([hidden])):not(:has(#show-report:not([hidden]))) #formation-toggle { grid-column:1 / -1; }
 .battlefoot #retry-preparation {
  grid-column:1 / -1;
  padding:12px;
  border:1px solid #597057;
  border-radius:9px;
  background:#23382d;
 }
 .underworld .battlefoot #retry-preparation { background:#2e3045; border-color:#616486; }
 .battlefoot #retry-formations { display:grid; width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
 .battlefoot #retry-formations button { min-width:0; min-height:44px; padding:8px; font-size:12px; white-space:normal; overflow-wrap:anywhere; }
 .battlefoot #preparation-formation-info { display:block; font-size:12px; line-height:1.5; }
}
