Source code for game.ui.main_menu

"""The main menu screen for language selection, instructions, and starting the game."""

import pygame
import os
import math
from ..utils.constants import SCREEN_WIDTH, SCREEN_HEIGHT, PACKAGE_DIR
from ..utils.localization import localization_manager

# ── Unified colour palette ──────────────────────────────────────────────────
[docs] C_PANEL = (20, 15, 10, 200) # semi-transparent dark panel
[docs] C_TITLE = (255, 220, 100) # warm gold
[docs] C_TEXT = (240, 230, 210) # warm off-white
[docs] C_MUTED = (180, 165, 140) # secondary text
[docs] C_BTN_NORMAL = ( 80, 55, 25) # dark brown button fill
[docs] C_BTN_HOVER = (120, 85, 35) # lighter brown on hover
[docs] C_BTN_BORDER = (220, 160, 60) # gold border
[docs] C_DIFF_EASY = ( 30, 120, 50)
[docs] C_DIFF_MEDIUM = (170, 120, 10)
[docs] C_DIFF_HARD = (160, 30, 30)
[docs] C_SELECTED = (255, 255, 255) # white highlight for selected button
[docs] C_EXIT_NORMAL = (110, 35, 35)
[docs] C_EXIT_HOVER = (160, 55, 55)
[docs] RADIUS = 12 # universal border-radius for all buttons / panels