/**
 * 消息提示样式
 */

/* 比赛结果 */
#matchResult {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 3px solid rgba(243, 156, 18, 0.6);
    backdrop-filter: blur(10px);
    min-width: 500px;
    z-index: 2000;
    pointer-events: auto;
    overflow: hidden; /* 确保圆角正确显示 */
}

#matchResult::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    pointer-events: none;
}

.result-title {
    font-size: 42px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-subtitle {
    font-size: 18px;
    color: #95a5a6;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.result-score {
    font-size: 72px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.result-winner {
    font-size: 24px;
    font-weight: bold;
    color: #ecf0f1;
    padding: 15px 30px;
    background: rgba(243, 156, 18, 0.2);
    border-radius: 10px;
    display: inline-block;
}

/* 半场休息 */
#halftimeMessage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 3px solid rgba(52, 152, 219, 0.4);
    backdrop-filter: blur(10px);
    min-width: 380px;
    z-index: 2000;
    pointer-events: auto;
    overflow: hidden; /* 确保圆角正确显示 */
}

#halftimeMessage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    pointer-events: none;
    border-radius: 0; /* 背景遮罩不需要圆角 */
}

.message-title {
    font-size: 42px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.message-subtitle {
    font-size: 18px;
    color: #95a5a6;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.message-score {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

/* 进球消息 */
#goalMessage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 50px 100px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 3px solid rgba(243, 156, 18, 0.6);
    animation: goalPulse 0.5s ease-in-out;
    backdrop-filter: blur(10px);
    min-width: 400px;
    z-index: 2000;
    pointer-events: none;
}

@keyframes goalPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.goal-text {
    font-size: 80px;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 0 0 30px rgba(243, 156, 18, 0.8),
                 3px 3px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.goal-team {
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* 游戏结束按钮 */
#gameEndButtons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    pointer-events: auto;
}

.game-end-button {
    padding: 14px 35px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(39, 174, 96, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    flex: 1;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-end-button:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 1), rgba(39, 174, 96, 1));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
}

.game-end-button.replay {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
}

.game-end-button.replay:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 1), rgba(41, 128, 185, 1));
    box-shadow: 0 8px 25px rgba(41, 128, 185, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    #matchResult,
    #halftimeMessage {
        min-width: 300px;
        padding: 30px 40px;
    }
    
    .result-title,
    .message-title {
        font-size: 32px;
    }
    
    .result-score {
        font-size: 56px;
    }
    
    .goal-text {
        font-size: 60px;
    }
    
    #gameEndButtons {
        flex-direction: column;
    }
}
