body {
    margin: 0;
    overflow: hidden;
    background: black;
    color: white;
    font-family: Arial, sans-serif;
    height: 100vh; /* 保持畫面高度 */
    display: flex;
    justify-content: center;
    align-items: center;
}

#lobby {
    position: absolute;
    width: 80%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#leaderboard-container {
    width: 100%;
    height: 200px; /* 限制排行榜高度 */
    overflow-y: hidden; /* 隱藏滾動條 */
    border: 1px solid white;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

#leaderboard {
    list-style: none;
    padding: 0;
    margin: 0;
}

#leaderboard li {
    padding: 8px;
    border-bottom: 1px solid white;
}

#startGame {
    margin-top: 15px;
    padding: 10px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
	display : none;
	pointer-events: auto; /* 確保按鈕可點擊 */
    z-index: 10; /* 提高層級，避免被 canvas 蓋住 */
    position: relative; /* 避免被父層 display: none 影響 */
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 1000;
    display: none; /* 預設隱藏 */
}

