{
  "namespace": "late_join",

  "animation_panel": {
    "type": "panel",
    "anchor_to": "bottom_left",
    "anchor_from": "bottom_left",
    "size": [ "50% - 75px", 32 ],
    "offset": [ 0, "-10%" ],
    "controls": [
      {
        "stacked_column": {
          "type": "stack_panel",
          "size": [ "100%", "100%" ],
          "offset": [ "5%", 0 ],
          "anchor_from": "top_left",
          "anchor_to": "top_left",
          "orientation": "horizontal",
          "controls": [
            {
              "waiting_animating_text": {
                "size": [ "default", "100%" ],
                "max_size": [ "100%", "100%" ],
                "type": "label",
                "color": "$main_header_text_color",
                "text": "#animating_text",
                "bindings": [
                  {
                    "binding_name": "#animating_text_visible",
                    "binding_name_override": "#visible"
                  },
                  {
                    "binding_name": "#animating_text"
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },

  "gamepad_helpers": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "offset": [ 0, "40%" ],
    "size": [ "100%c", 26 ],
    "controls": [
      {
        "gamepad_helper_b_and_padding": {
          "type": "panel",
          "size": [ "100%c + 10px", "100%c" ],
          "controls": [
            {
              "gamepad_helper_b@common.gamepad_helper_b": {
                "offset": [ 10, 0 ],
                "anchor_to": "left_middle",
                "anchor_from": "left_middle"
              }
            }
          ]
        }
      }
    ]
  },


  //---------------------------------------------------------------------------
  // Screens
  //---------------------------------------------------------------------------

  "late_join_pregame_screen@common.base_screen": {
    "$screen_content": "late_join.late_join_screen_content",
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.leave",
        "mapping_type": "global"
      }
    ]
  },

  "late_join_screen_content": {
    "type": "panel",
    "controls": [
      {
        "animation_panel@late_join.animation_panel": {}
      },
      {
        "gamepad_helpers@late_join.gamepad_helpers": {}
      }
    ]
  }
}