/* ==========================================
   [LOBBY] 認領大廳 - 領隊通行證風格
   ========================================== */
.lobby-container .item-title {
    background-color: transparent !important;
    color: rgb(5, 71, 0) !important;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px !important;
    border-bottom: 5px solid rgb(5, 71, 0);
    padding-bottom: 10px !important;
    display: inline-block !important;
    /* 讓底線跟著文字長度 */
}

/* 聯盟大標題：三太子與土地公聯盟 */
.league-label {
    font-weight: 800 !important;
    /* 🌟 極粗體，跟頁面大標對齊 */
    color: rgb(5, 71, 0) !important;
    margin: 30px 0 15px 0 !important;
    border-left: 8px solid rgb(5, 71, 0);
    /* 🌟 加粗左邊的裝飾線 */
    padding-left: 15px !important;
    font-size: 26px !important;
    /* 字體加大，更有領袖氣勢 */
    letter-spacing: 1px;
}

.team-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    /* 卡片間的呼吸空間 */
    justify-content: flex-start;
    /* 👈 靠左排隊，剩餘空間留白，不准拉大卡片 */
    width: 100%;
}

.team-card {
    background: #ffffff;
    border: 2px solid #bbbaba !important;
    /* 保持您要的深灰色粗邊框 */
    border-radius: 12px;

    /* 🌟 鎖定寬度 210px：大氣、穩重，不再是小名片 */
    width: 230px !important;
    flex: 0 0 230px !important;

    /* 🌟 強制比例 1:1，高度會自動鎖在 210px */
    aspect-ratio: 1 / 1 !important;

    /* 🌟 關鍵：用 flex 讓內容在正方形裡面垂直置中 */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    /* 🌟 內距稍微回調一點，讓版面不擁擠 */
    padding: 0px 0px !important;
    box-sizing: border-box;
    overflow: hidden;
    /* 防止內容溢出撐高 */
}

.team-card.claimed {
    background: #f5fcf4 !important;
    /* 🌟 舊版質感：有人領的球隊顯示淡灰色 */
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(159, 160, 159) !important;
    /* 懸停時變深綠邊框 */
}

.team-id {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: rgb(5, 71, 0);
}

.team-name {
    font-size: 20px !important;
    /* 稍微放大的字體 */
    font-weight: 800 !important;
    /* 霸氣加粗 */
    margin-bottom: 8px;
    /* 跟下方領隊名字的間距 */
    display: block;
    /* 確保佔據獨立一行 */
    transition: color 0.2s ease;
    /* 換色時比較滑順 */
}

.claim-btn {
    width: 60%;
    background: rgb(5, 71, 0);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.claim-btn:hover {
    background: #006405;
    color: #fcfcfc;
}

/* 1. 調整 Logo 與隊名的行距 */
.team-card>div:first-child {
    margin-bottom: 5px !important;
    /* 🌟 縮小 Logo 下方的空隙 */
}

/* 2. 鎖死隊名的行距 */
.team-name {
    margin: 5px 0 8px 0 !important;
    /* 🌟 上 5px, 下 2px，極度緊湊 */
    line-height: 1.1 !important;
    /* 🌟 文字行高縮小，不佔垂直空間 */
    font-size: 18px !important;
}

/* 3. 鎖死領隊狀態與按鈕的行距 */
.status {
    margin-bottom: 10px !important;
    /* 🌟 這是您剛才找到的那個，設為 8px 剛剛好 */
    font-size: 14px !important;
    line-height: 1 !important;
}

/* 4. 確保按鈕本身不帶多餘間距 */
.claim-btn {
    margin-top: 0 !important;
    padding: 5px 15px !important;
}