* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background: #050508; /* Fondo casi negro para resaltar el neón */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.contenedor-juego {
    width: 100%;
    max-width: 720px;
    background: #090910;
    border-radius: 20px;
    padding: 24px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 15px #00ffff, inset 0 0 20px rgba(0, 255, 255, 0.2);
    text-align: center;
}

h1 {
    margin-bottom: 10px;
    font-size: 32px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

.descripcion {
    margin-bottom: 18px;
    color: #e0e0e0;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.panel-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tarjeta-info {
    flex: 1;
    min-width: 150px;
    background: #000;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #39ff14;
    box-shadow: 0 0 10px #39ff14, inset 0 0 10px rgba(57, 255, 20, 0.2);
}

.tarjeta-info span {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.tarjeta-info strong {
    font-size: 24px;
    color: #39ff14;
    text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14;
}

canvas {
    width: 100%;
    max-width: 600px; /* Cambiado de 500px a 600px para que encaje el nuevo tamaño */
    background: #000;
    border: 3px solid #ff00ff;
    border-radius: 16px;
    box-shadow: 0 0 15px #ff00ff, 0 0 30px rgba(255, 0, 255, 0.4);
    display: block;
    margin: 0 auto 20px auto;
}
.controles {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.controles button,
.acciones button {
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 12px 16px;
    background: transparent;
    color: #00ffff;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 5px #00ffff;
    box-shadow: 0 0 10px #00ffff, inset 0 0 10px rgba(0, 255, 255, 0.3);
    transition: 0.3s all;
}

.controles button:hover,
.acciones button:hover {
    transform: scale(1.05);
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
    text-shadow: none;
}

.vacio {
    visibility: hidden;
}

.acciones {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.acciones .secundario {
    border-color: #ff0055;
    color: #ff0055;
    text-shadow: 0 0 5px #ff0055;
    box-shadow: 0 0 10px #ff0055, inset 0 0 10px rgba(255, 0, 85, 0.3);
}

.acciones .secundario:hover {
    background: #ff0055;
    color: #000;
    box-shadow: 0 0 20px #ff0055, 0 0 40px #ff0055;
}

.mensaje {
    margin-top: 14px;
    color: #fff;
    min-height: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px #fff, 0 0 20px #00ffff;
}

@media (max-width: 520px) {
    h1 {
        font-size: 24px;
    }

    .controles {
        grid-template-columns: repeat(3, 75px);
    }

    .controles button,
    .acciones button {
        padding: 10px;
    }
}