/* ===== 专业结算弹窗 - 完全匹配团队邀请弹窗背景样式 ===== */

.settlement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.settlement-overlay.show {
    opacity: 1;
    visibility: visible;
}

.settlement-popup {
    position: relative;
    width: 100%;
    max-width: 340px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popupIn 0.3s ease-out;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.settlement-bg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.3));
}

.settlement-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* 标题区域 - 上移到白色边框 */
.set-title-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10%;
}

.set-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #C62828;
    text-shadow: 
        -2px -2px 0 #FFD54F,
        2px -2px 0 #FFD54F,
        -2px 2px 0 #FFD54F,
        2px 2px 0 #FFD54F,
        -3px 0 0 #FFD54F,
        3px 0 0 #FFD54F,
        0 -3px 0 #FFD54F,
        0 3px 0 #FFD54F,
        0 4px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

@media (min-width: 414px) {
    .set-title {
        font-size: 32px;
    }
}

/* 统计数据区域 - 上移到白色边框区域 */
.set-stats-section {
    width: 100%;
    padding: 0 12%;
    margin-top: 2%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-card {
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(200, 180, 150, 0.3);
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(180, 160, 130, 0.25);
}

.stat-row.last {
    border-bottom: none;
}

.stat-label {
    color: rgba(80, 60, 40, 0.9);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-value {
    font-weight: 700;
    font-size: 16px;
}

.stat-value.gold {
    color: #1a1a1a;
}

.stat-value.white {
    color: #E53935;
}

.stat-unit {
    font-size: 12px;
    font-weight: 400;
}

/* 底部区域 - 在红色背景区域 */
.set-bottom-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    margin-bottom: 6%;
    padding: 0 10%;
}

/* 积分栏 - 透明背景 */
.score-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    width: 100%;
    padding: 8px 0;
    margin-top: 36px;
    margin-bottom: 12px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
}

.score-value {
    color: #FFD54F;
    font-weight: 700;
    font-size: 15px;
}

@media (min-width: 414px) {
    .score-label {
        font-size: 14px;
    }
    
    .score-value {
        font-size: 16px;
    }
}

.score-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 16px;
    border-radius: 2px;
}

/* 按钮组 */
.btn-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.set-btn {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    border: 1.5px solid;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.set-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 14px rgba(0, 0, 0, 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.set-btn:active {
    transform: scale(0.95);
}

/* 残忍离开按钮 - 蓝灰色 */
.btn-exit {
    background: linear-gradient(to bottom, #8C9BB4, #5A6B8C);
    border-color: #A3B3CC;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-exit:hover {
    background: linear-gradient(to bottom, #9CAEBF, #6A7B9C);
}

/* 下一局按钮 - 橙黄色 */
.btn-next {
    background: linear-gradient(to bottom, #FFD54F, #F57C00);
    border-color: #FFE082;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-next:hover {
    background: linear-gradient(to bottom, #FFE066, #FF8C00);
}

@media (min-width: 414px) {
    .set-btn {
        height: 48px;
        font-size: 16px;
    }
}

/* 响应式适配 */
@media (max-width: 375px) {
    .settlement-popup {
        max-width: 300px;
    }
    
    .set-title {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .stat-value {
        font-size: 15px;
    }
    
    .set-btn {
        height: 40px;
        font-size: 14px;
    }
}

/* 提示文字区域 */
.set-tip-section {
    width: 100%;
    margin-top: 28px;
    padding: 0 8%;
}

.tip-text {
    color: rgba(255, 220, 150, 0.95);
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: transparent;
}

@media (min-width: 414px) {
    .tip-text {
        font-size: 13px;
    }
}
