/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    font-family: 'Arial', sans-serif;
    color: white;
    overflow: hidden;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-panel {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    font-size: 1.2rem;
}

canvas {
    border: 2px solid #4cc9f0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Controles táctiles */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.middle-row {
    display: flex;
    gap: 20px;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

/* Pantalla de Game Over */
.game-over-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.game-over-panel.active {
    opacity: 1;
    pointer-events: all;
}

.game-over-content {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #4cc9f0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-over-content h1 {
    margin: 0;
    font-size: 3rem;
    color: #4cc9f0;
}

.game-over-content p {
    font-size: 1.5rem;
    margin: 10px 0 20px;
}

#restart-btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    background: #4cc9f0;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

#restart-btn:active {
    background: #48b5e0;
}

/* Responsive */
@media (max-width: 600px) {
    canvas {
        width: 90vw;
        height: 90vw;
    }

    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .middle-row {
        gap: 10px;
    }
}