/* 游戏内弹窗样式 */
.game-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.game-modal {
    background-color: #ffffff;
    border-radius: 12px;
    min-width: 400px;
    max-width: 600px;
    max-height: 80vh;
    display: none;
    z-index: 1001;
    border: 6px solid #1e90ff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f0f8ff;
    border-bottom: 3px solid #1e90ff;
}

.game-modal-title {
    color: #1e90ff;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
}

.game-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666666;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.game-modal-close:hover {
    background-color: #ff4444;
    color: #ffffff;
}

.game-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
}

/* 游戏确认弹窗 */
.game-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.game-confirm-modal {
    background-color: #ffffff;
    border-radius: 12px;
    min-width: 300px;
    display: none;
    z-index: 1001;
    border: 6px solid #1e90ff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-confirm-content {
    padding: 30px;
    text-align: center;
}

.game-confirm-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #333333;
    font-weight: bold;
}

.game-confirm-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.game-confirm-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    min-width: 80px;
    transition: all 0.2s;
    font-weight: bold;
}

#game-confirm-yes {
    background-color: #1e90ff;
    color: #ffffff;
}

#game-confirm-yes:hover {
    background-color: #0066cc;
    transform: translateY(-2px);
}

#game-confirm-no {
    background-color: #f0f0f0;
    color: #666666;
}

#game-confirm-no:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
}
/* ==================== 结算画面样式 ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeInDot {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

#settlement-overlay {
    animation: fadeIn 1s ease-in;
}

#settlement-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white;
    animation: typewriter 3s steps(20, end);
}

#settlement-dots span {
    display: inline-block;
    animation: fadeInDot 0.5s ease-out forwards;
    opacity: 0;
}

#settlement-dots span:nth-child(1) { animation-delay: 0s; }
#settlement-dots span:nth-child(2) { animation-delay: 0.5s; }
#settlement-dots span:nth-child(3) { animation-delay: 1s; }
#settlement-dots span:nth-child(4) { animation-delay: 1.5s; }
#settlement-dots span:nth-child(5) { animation-delay: 2s; }