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

.canvas-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    background: #000;
    border: 4px solid var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
}

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

#game-canvas {
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay-content {
    text-align: center;
    padding: 20px;
}

.stats-row {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 10px;
}

.dark-theme .stats-row {
    background: rgba(255, 255, 255, 0.05);
}

.stat-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.control-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 5px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.d-none {
    display: none !important;
}
