/*
 * The Crowndoku result footer is fixed so Play again / Back to Missions are
 * always reachable. Reserve the same space inside the standings scroller: the
 * final competitor row and the player's own row can never end underneath it.
 */
.crowndoku-victory[data-result-phase="standings"] {
  --ctg-result-footer-clearance: calc(96px + env(safe-area-inset-bottom));
}

.crowndoku-victory[data-result-phase="standings"] .contest-board-scroll {
  scroll-padding-block-end: var(--ctg-result-footer-clearance);
}

.crowndoku-victory[data-result-phase="standings"] .contest-board-rows {
  padding-bottom: calc(9px + var(--ctg-result-footer-clearance));
}

.crowndoku-victory[data-result-phase="standings"] .contest-board-row.me {
  scroll-margin-block-end: var(--ctg-result-footer-clearance);
}

@media (max-width: 380px) {
  .crowndoku-victory[data-result-phase="standings"] {
    --ctg-result-footer-clearance: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .crowndoku-victory[data-result-phase="standings"] .contest-board-scroll {
    scroll-behavior: auto;
  }
}
