/* Estilos específicos del juego Serpiente */

.game-controls {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.game-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    text-align: center;
}

#score {
    color: var(--success);
}

#best-score {
    color: var(--primary-color);
}

.game-status {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.25rem;
    font-weight: 600;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-status.win {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 2px solid var(--success);
}

.game-status.lose {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 2px solid var(--danger);
}

.game-status.hidden {
    display: none;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

#game-canvas {
    border: 3px solid var(--surface-light);
    border-radius: var(--border-radius);
    background: var(--background);
    box-shadow: var(--shadow-lg);
    display: block;
}

.game-instructions {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.game-instructions p {
    margin: 0.5rem 0;
}

.touch-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.touch-controls-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.touch-btn {
    width: 60px;
    height: 60px;
    background: var(--surface-light);
    border: 2px solid var(--surface-light);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.touch-btn:active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(0.95);
}

.touch-btn:focus {
    outline: none;
}

/* Mostrar controles táctiles solo en móviles */
@media (max-width: 768px) {
    .touch-controls {
        display: flex;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .game-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .game-stats {
        justify-content: space-around;
    }

    #game-canvas {
        max-width: 100%;
        height: auto;
    }
}

