/* 弹射球游戏样式 */

#game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

#game-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

#score-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.score-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    min-width: 100px;
    box-shadow: var(--shadow-sm);
}

.score-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

#score, #level {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

#game-header {
    margin-bottom: 1.5rem;
}

#game-header .instructions {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

#new-game-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--glow-blue);
}

#new-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#canvas-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

#game-canvas {
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    cursor: crosshair;
}

#game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 2rem 3rem;
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 600;
    display: none;
    text-align: center;
    white-space: pre-line;
}

#game-message.show {
    display: block;
}

.game-footer {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 520px) {
    #game-container h1 {
        font-size: 1.5rem;
    }

    #score-container {
        gap: 1rem;
    }

    .score-box {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }

    #score, #level {
        font-size: 1.4rem;
    }
}
