/* Presentation comes from the approved Arcade tiles; these rules only fit
   them into the trainers' existing result containers. */
.trainer-next-host > .trainer-next-step {
  width: min(430px, 100%);
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}
.trainer-next-host:not(#ast-results) {
  align-content: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.trainer-next-host > p[role="status"]:empty { min-height: 0; margin: 0; }
/* Only completed results need the extra space; practice and active runs retain
   their existing dimensions. Long feedback can still scroll inside the results. */
.trainer-next-stage:has(> .trainer-next-results:not(.hidden)) { min-height: 560px; }
@media (max-width: 600px) {
  .trainer-next-stage:has(> .trainer-next-results:not(.hidden)) { min-height: 640px; }
}
.bd-game-over-card.trainer-next-host {
  max-height: min(100%, calc(100dvh - 40px));
}
