.game-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

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

.score-board {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.canvas-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 20px;
    background-color: #f0f0f0;
    border: 4px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
}

.overlay.hidden {
    display: none;
}

.overlay h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.overlay p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.primary-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

.primary-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.primary-btn:active {
    transform: scale(0.95);
}

/* Controls for mobile */
.controls {
    display: none;
    /* Hidden by default on desktop */
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.horizontal-controls {
    display: flex;
    gap: 20px;
}

.control-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: #eee;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.control-btn:active {
    background-color: #ddd;
    transform: scale(0.95);
}

@media (max-width: 450px) {
    .canvas-wrapper {
        width: 300px;
        height: 300px;
    }

    .controls {
        display: flex;
    }
}