.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: #fff;
    min-height: calc(100vh - 120px);
}

.game-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    align-items: center;
}

.game-header h2 {
    color: #0ff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin: 0;
}

.scores {
    display: flex;
    gap: 1rem;
    font-weight: bold;
    color: #f0f;
}

.canvas-container {
    position: relative;
    width: 400px;
    height: 400px;
    background-color: rgba(0, 0, 30, 0.6);
    border: 2px solid #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 20, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay h3 {
    font-size: 2rem;
    color: #0ff;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px #0ff;
}

.glass-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.glass-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.mobile-controls {
    margin-top: 2rem;
    display: none;
}

@media (max-width: 600px) {
    .mobile-controls {
        display: block;
    }
    
    .canvas-container {
        width: 300px;
        height: 300px;
    }
    
    .game-header {
        max-width: 300px;
    }
}

.d-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.d-pad-middle {
    display: flex;
    gap: 3rem;
}

.d-pad-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid #f0f;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
    user-select: none;
    -webkit-user-select: none;
}

.d-pad-btn:active {
    background: rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}
