/* Difficulty Selection and Other Game Features */

.difficulty-selector {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 8px;
    margin-bottom: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.difficulty-title {
    display: none; /* 隐藏标题以节省空间 */
}

.difficulty-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: nowrap;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    padding: 4px;
}

.difficulty-btn {
    background: transparent;
    color: #667eea;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.difficulty-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.difficulty-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* Game Summary Modal Styles */
.game-summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
}

.game-summary-content {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-summary-modal.active {
    display: flex;
}

.game-summary-modal.active .game-summary-content {
    transform: scale(1);
    opacity: 1;
}

.game-summary-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.game-summary-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 15px;
}

.summary-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-stat-item .stat-label {
    font-size: 1em;
    color: #a0aec0; /* Lighter text for label */
    margin-bottom: 8px;
}

.summary-stat-item .stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
}

.game-summary-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn.btn-secondary {
    background: #718096;
}
.btn.btn-secondary:hover {
    background: #4a5568;
}
