/* Scoped, non-destructive leaderboard positioning for Icon Quiz and Name That Starship.
   Keep the backdrop fixed to the viewport; position only the panel relative to the game.
   JS clamps to the visible viewport when the game is partially off-screen. */
#icon-quiz #records-modal {
  /* Override the production TOP-ANCHORED layout: centre panel in viewport first. */
  place-items: center;
  padding: 12px;
}
#icon-quiz #records-modal .modal-panel {
  transform: translate(var(--ptf-dialog-dx, 0px), var(--ptf-dialog-dy, 0px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
