{
  "Type": "Grid",
  "Id": "main_menu",
  "Width": "100%",
  "Height": "100%",
  "HorizontalAlignment": "Stretch",
  "VerticalAlignment": "Stretch",
  "Children": [
    {
      "Type": "StackPanel",
      "Id": "main_layout",
      "Orientation": "Vertical",
      "HorizontalAlignment": "Center",
      "VerticalAlignment": "Center",
      "Gap": 0,
      "Children": [
        {
          "Type": "StackPanel",
          "Id": "title_container",
          "Orientation": "Vertical",
          "HorizontalAlignment": "Center",
          "Margin": "0 0 48px 0",
          "Children": [
            {
              "Type": "StackPanel",
              "Id": "title_group",
              "Orientation": "Vertical",
              "HorizontalAlignment": "Center",
              "Children": [
                {
                  "Type": "StackPanel",
                  "Id": "title_row",
                  "Orientation": "Horizontal",
                  "HorizontalAlignment": "Center",
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "lbl_title_mark",
                      "FontSize": "60px",
                      "AllowHtml": true,
                      "Text": "<svg class='ps-title-mark__svg' viewBox='0 0 100 100' aria-hidden='true'><g transform='rotate(-24 50 50)'><ellipse cx='50' cy='50' rx='43' ry='13' fill='none' stroke='#5ec4e0' stroke-width='3.2'/><ellipse cx='50' cy='50' rx='43' ry='13' fill='none' stroke='#3a9ebf' stroke-width='1' opacity='0.5'/><circle class='ps-title-mark__mote' r='2.6' fill='#9fd8ec'/></g><circle class='ps-title-mark__core' cx='50' cy='50' r='9' fill='#f0f8fc'/></svg>",
                      "Classes": [
                        "ps-title-mark"
                      ]
                    },
                    {
                      "Type": "Label",
                      "Id": "lbl_title",
                      "Text": "Pr<span class='ps-title-glyph'>✦</span>tostar",
                      "Style": "Label.Title",
                      "FontSize": "60px",
                      "AllowHtml": true
                    },
                    {
                      "Type": "Label",
                      "Id": "lbl_title_suffix",
                      "Text": "4X",
                      "Style": "Label.Title",
                      "Classes": [
                        "ps-label--accent",
                        "ps-title-suffix"
                      ]
                    }
                  ]
                },
                {
                  "Type": "Label",
                  "Id": "lbl_title_version",
                  "Text": "v0.1 · Early Access",
                  "Style": "Mono",
                  "HorizontalAlignment": "Center",
                  "Classes": [
                    "ps-title-version"
                  ]
                },
                {
                  "Type": "Separator",
                  "Id": "title_accent_line",
                  "Variant": "AccentStrong",
                  "Fade": true,
                  "Thick": true,
                  "Spacing": "Default"
                }
              ]
            },
            {
              "Type": "Label",
              "Id": "lbl_subtitle",
              "Text": "A community driven modular space 4X game",
              "Style": "Label.Caption",
              "HorizontalAlignment": "Center"
            }
          ]
        },
        {
          "Type": "StackPanel",
          "Id": "panels_and_footer",
          "Orientation": "Vertical",
          "Children": [
            {
              "Type": "StackPanel",
              "Id": "panels_row",
              "Orientation": "Horizontal",
              "HorizontalAlignment": "Center",
              "Gap": 24,
              "Children": [
                {
                  "Type": "Panel",
                  "Id": "main_menu_content",
                  "HorizontalAlignment": "Stretch",
                  "VerticalAlignment": "Center",
                  "Padding": "40px",
                  "Classes": [
                    "ps-panel--accent-strip"
                  ],
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Id": "container_buttons",
                      "Orientation": "Vertical",
                      "Gap": 12,
                      "Children": [
                        {
                          "Type": "Button",
                          "Id": "btn_quick_start",
                          "Text": "Quick Start",
                          "Command": "p4x.game.quick_start",
                          "TooltipText": "Jump straight into the Sol System with all default settings. You play as the Terran Confederation, with various fleets on hand to test game features — including a hostile fleet lurking near Venus.",
                          "Width": "300px"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_resume",
                          "Text": "Resume",
                          "Command": "p4x.game.resume",
                          "TooltipText": "Continue your most recent session. Available once a game is in progress.",
                          "Width": "300px"
                        },
                        {
                          "Type": "Separator",
                          "Id": "sep_play",
                          "Variant": "subtle",
                          "Fade": true,
                          "Spacing": "compact"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_new_galaxy",
                          "Text": "New Game",
                          "Command": "p4x.game.new",
                          "TooltipText": "Choose a starting scenario and set up a new game.",
                          "Width": "300px"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_load_game",
                          "Text": "Load Game",
                          "Command": "core.persistence.show_browser",
                          "TooltipText": "Browse saved games and pick one to continue.",
                          "Width": "300px"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_save_game",
                          "Text": "Save Game",
                          "Command": "core.persistence.show_save_dialog",
                          "TooltipText": "Save your current session to a named slot. Available once a game is in progress.",
                          "Width": "300px"
                        },
                        {
                          "Type": "Separator",
                          "Id": "sep_utility",
                          "Variant": "subtle",
                          "Fade": true,
                          "Spacing": "compact"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_mods",
                          "Text": "Mod Manager",
                          "Command": "core.toggle_mod_manager",
                          "TooltipText": "Enable, disable, and configure installed mods.",
                          "Width": "300px"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_settings",
                          "Text": "Settings",
                          "Command": "core.settings",
                          "TooltipText": "Adjust audio, interface, controls, and graphics options.",
                          "Width": "300px"
                        },
                        {
                          "Type": "Separator",
                          "Id": "sep_exit",
                          "Variant": "subtle",
                          "Fade": true,
                          "Spacing": "compact"
                        },
                        {
                          "Type": "Button",
                          "Id": "btn_exit",
                          "Text": "Exit",
                          "Style": "Danger",
                          "Command": "core.exit",
                          "TooltipText": "Quit Protostar and return to the desktop.",
                          "Width": "300px"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Type": "Panel",
                  "Id": "dispatch_feed",
                  "Width": "380px",
                  "VerticalAlignment": "Center",
                  "Padding": "16px",
                  "Classes": [
                    "ps-panel--accent-strip",
                    "ps-panel--pulse-glow"
                  ],
                  "Children": [
                    {
                      "Type": "Label",
                      "Id": "dispatch_header",
                      "Text": "// SYS.DISPATCH.LOG",
                      "Style": "Mono",
                      "Margin": "0 0 12px 0"
                    },
                    {
                      "Type": "Label",
                      "Id": "dispatch_content",
                      "Style": "Mono",
                      "AllowHtml": true,
                      "Classes": [
                        "ps-text--wrap"
                      ],
                      "Text": "<span class=\"ps-text-muted\">// Loading dispatches…</span>"
                    }
                  ]
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Id": "footer",
              "Orientation": "Vertical",
              "HorizontalAlignment": "Right",
              "Gap": 4,
              "Margin": "48px 0 0 0",
              "Children": [
                {
                  "Type": "Button",
                  "Id": "btn_about_alpha",
                  "Text": "⚠ Early Access Info",
                  "Command": "core.alpha.show",
                  "Style": "Warning",
                  "Classes": [
                    "ps-btn--small"
                  ],
                  "HorizontalAlignment": "Right",
                  "Margin": "0 0 10px 0"
                },
                {
                  "Type": "Label",
                  "Id": "lbl_footer_links",
                  "AllowHtml": true,
                  "Style": "Label.Caption",
                  "HorizontalAlignment": "Right",
                  "Margin": "0 0 10px 0",
                  "Text": "<a class=\"ps-link\" href=\"https://protostar4x.com\" target=\"_blank\" rel=\"noopener\">Hub</a>  ·  <a class=\"ps-link\" href=\"https://protostar4x.com/roadmap\" target=\"_blank\" rel=\"noopener\">Roadmap</a>  ·  <a class=\"ps-link\" href=\"https://protostar4x.com/issues\" target=\"_blank\" rel=\"noopener\">Issues</a>  ·  <a class=\"ps-link\" href=\"https://community.protostar4x.com/\" target=\"_blank\" rel=\"noopener\">Community</a>"
                },
                {
                  "Type": "Label",
                  "Id": "lbl_credits",
                  "Text": "by Pascal Blanchet",
                  "Style": "Label.Caption"
                },
                {
                  "Type": "Label",
                  "Id": "lbl_inspiration",
                  "Text": "Based on <a class=\"ps-link\" href=\"https://www.aurora4x.com/\" target=\"_blank\">Aurora 4X</a> by Steve Walmsley",
                  "AllowHtml": true,
                  "Style": "Label.Caption"
                },
                {
                  "Type": "StackPanel",
                  "Id": "version_container",
                  "Orientation": "Horizontal",
                  "HorizontalAlignment": "Right",
                  "Gap": 8,
                  "Margin": "4px 0 0 0",
                  "Children": [
                    {
                      "Type": "Badge",
                      "Id": "badge_core",
                      "Text": "Core Mod {Sys:CoreModVersion}",
                      "Variant": "neutral",
                      "Shape": "square",
                      "Size": "small"
                    },
                    {
                      "Type": "Badge",
                      "Id": "badge_engine",
                      "Text": "Engine {Sys:EngineVersion}",
                      "Variant": "neutral",
                      "Shape": "square",
                      "Size": "small"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "new_galaxy_confirm_modal",
      "Title": "New Game",
      "IsVisible": false,
      "CloseOnEscape": true,
      "CloseOnBackdropClick": false,
      "CloseCommand": "p4x.game.new.cancel",
      "Width": "480px",
      "Height": "220px",
      "BadgeText": "Warning",
      "BadgeVariant": "warn",
      "AccentVariant": "Warning",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "Label",
          "Id": "lbl_new_galaxy_confirm",
          "Text": "Starting a new galaxy will abandon the current session. Unsaved progress will be lost, and the current scenario will restart from its initial state.",
          "Margin": "0 0 16px 0",
          "Classes": [
            "ps-modal-message"
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Id": "new_galaxy_confirm_footer",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "btn_new_galaxy_confirm",
              "Text": "New Game",
              "Style": "Warning",
              "Command": "p4x.game.new.confirm"
            },
            {
              "Type": "Button",
              "Id": "btn_new_galaxy_cancel",
              "Text": "Back",
              "Command": "p4x.game.new.cancel"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "quick_start_confirm_modal",
      "Title": "Quick Start",
      "IsVisible": false,
      "CloseOnEscape": true,
      "CloseOnBackdropClick": false,
      "CloseCommand": "p4x.game.quick_start.cancel",
      "Width": "480px",
      "Height": "220px",
      "BadgeText": "Warning",
      "BadgeVariant": "warn",
      "AccentVariant": "Warning",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "Label",
          "Id": "lbl_quick_start_confirm",
          "Text": "Starting a quick start will abandon the current session. Unsaved progress will be lost, and the current scenario will restart from its initial state.",
          "Margin": "0 0 16px 0",
          "Classes": [
            "ps-modal-message"
          ]
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Id": "quick_start_confirm_footer",
          "Orientation": "Horizontal",
          "Gap": 8,
          "HorizontalAlignment": "Right",
          "Children": [
            {
              "Type": "Button",
              "Id": "btn_quick_start_confirm",
              "Text": "Quick Start",
              "Style": "Primary",
              "Command": "p4x.game.quick_start.confirm"
            },
            {
              "Type": "Button",
              "Id": "btn_quick_start_cancel",
              "Text": "Back",
              "Command": "p4x.game.quick_start.cancel"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "alpha_warning_modal",
      "Title": "Before you begin — a friendly heads-up",
      "IsVisible": false,
      "CloseOnEscape": false,
      "CloseOnBackdropClick": false,
      "Width": "600px",
      "Height": "600px",
      "BadgeText": "Early Access",
      "BadgeVariant": "warn",
      "AccentVariant": "Warning",
      "DisplayMode": "Glow",
      "Children": [
        {
          "Type": "Label",
          "Id": "lbl_alpha_warning",
          "AllowHtml": true,
          "Classes": [
            "ps-modal-message"
          ],
          "Text": "<div class=\"ps-alpha-icon\">⚠</div>Welcome to Protostar! The game is under active, early development and is <strong>not yet considered fully playable</strong>. You're welcome to jump in, explore, and follow along — just go in with the right expectations. Here's a sample of what to expect right now:<br><br><ul class=\"ps-alpha-list\"><li>Bugs and rough edges</li><li>Incomplete or missing features</li><li>Visual and technical placeholders</li><li>NPRs should be considered placeholders</li><li>Inconsistencies compared to Aurora</li><li>Incorrect or unbalanced formulas</li><li>Save games are frequently lost to frequent updates and game-breaking changes</li><li>The game is not yet playable from start to finish</li></ul><br>If you're curious to watch it unfold, you're in the right place. If you'd rather wait for a more complete experience, the <a class=\"ps-link\" href=\"https://protostar4x.com/roadmap\" target=\"_blank\">roadmap</a> tracks where things stand and what's coming next."
        }
      ],
      "FooterChildren": [
        {
          "Type": "StackPanel",
          "Id": "alpha_warning_footer",
          "Orientation": "Horizontal",
          "HorizontalAlignment": "Right",
          "Gap": 8,
          "Children": [
            {
              "Type": "Button",
              "Id": "btn_alpha_ack",
              "Text": "I Understand",
              "Style": "Primary",
              "Command": "core.alpha.acknowledge"
            }
          ]
        }
      ]
    }
  ]
}