/* 修复所有类选择器，添加缺失的点号 */
.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-over h2 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.game-over p {
    color: #666;
    margin-bottom: 20px;
}

.game-over button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.game-over button:hover {
    background-color: #2980b9;
}

.game-container {
    position: relative;
    width: 400px;
    margin: 0 auto;
}

/* 保留其他已正确设置的选择器 */
.score-container {
    font-size: 20px;
    margin: 10px 0;
    color: #333;
}

canvas {
    border: 2px solid #333;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}